

















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































Supply ausernameand apasswordwhenprompted
'mysql_user', 'mysql_password')or^ die^ ('Not^ connected^ :^ '^.^ mysql_error()); //^ make^ foo^ the^ current
db mysql_select_db('foo',
$lnk)^ or^ die^ ('Can't
use^ foo :^ '^.^ mysql_error());?>
"mysql_user", "mysql_password");mysql_select_db("nonexistentdb");echo^ mysql_errno()
.^ ":^ "^.^ mysql_error().
**"\n"; mysql_select_db("kossu");mysql_query("SELECT ***^ FROM^ nonexistenttable"); echo^ mysql_errno()^
.^ ":^ "^.^ mysql_error() .^ "\n"; ?>
my_col^ FROM^ my_tbl") or^ die("Invalid^ query:
"^.^ mysql_error()); ?>
"books"); $num_columns^ =^ mysql_num_fields($fields);
"books"); $isbn^ =^ mysql_field_name($fields,