ulvis.paste.net - pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
ulvis.paste.net - pastebin
Paste Search Dynamic
Recent pastes
Crash log
1 hour ago
new Hat
1 hour ago
Formularz CSS odpoczyne
9 hours ago
SimulationCraft SimC Addon
15 hours ago
easy
17 hours ago
TextAnalysis
1 day ago
Tomb of Mirrors
1 day ago
HOT!!! PAYPAL TRANSFER WESTERN
1 day ago
Legit Bank Wire Transfer Weste
1 day ago
discord roles
2 days ago
result
<?php
$result
=
mysql_query
(
"SELECT id,email FROM people WHERE id = '42'"
)
;
if
(
!
$result
)
{
echo
'Could not run query: '
.
mysql_error
(
)
;
exit
;
}
/* Use the result, assuming we're done with it afterwards */
$row
=
mysql_fetch_assoc
(
$result
)
;
/* Now we free up the result and continue on with our script */
mysql_free_result
(
$result
)
;
echo
$row
[
'id'
]
;
echo
$row
[
'email'
]
;
?>
<?php
$db_link
= @
mysql_connect
(
'localhost'
,
'mysql_user'
,
'mysql_pass'
)
;
if
(
!
$db_link
)
{
die
(
'Can
\'
t connect : '
.
mysql_error
(
)
)
;
}
?>
Or even:
<?php
$db_link
= @
mysql_connect
(
'localhost'
,
'mysql_user'
,
'mysql_pass'
)
or
die
(
'Can
\'
t connect : '
.
mysql_error
(
)
)
;
}
?>
<?php
// prints: mysql link
$c
=
mysql_connect
(
)
;
echo
get_resource_type
(
$c
)
.
"
\n
"
;
// prints: file
$fp
=
fopen
(
"foo"
,
"w"
)
;
echo
get_resource_type
(
$fp
)
.
"
\n
"
;
// prints: domxml document
$doc
= new_xmldoc
(
"1.0"
)
;
echo
get_resource_type
(
$doc
->
doc
)
.
"
\n
"
;
?>
<?
// prints: the true
$s
=
"The Future is Tricolor (PAN)"
;
echo
$s
;
?>
Parsed in 0.035 seconds
Please enable JavaScript to view the
comments powered by Disqus.