|
Posted by tony on 08/07/06 13:13
Hi guys
I'm new to PHP and I'm trying the following:
<?php
mysqli_connect ("localhost","root","mypassword",);
mysqli_select_db (mads);
$result=mysqli_query (SELECT * FROM clients);
print ($result);
?>
According to me (no great authority I know) this should print the array
from the clients table. I can execute the query from the command line
and it works fine. However, when I try to run the script nothing
happens. I've tried everything I can think of-PHP, Mysql and Apache are
all working (I can use PHPmyAdmin).
I must be doing something wrong. What is it?
btw
suse 10.1 with standard installs of everything.
Navigation:
[Reply to this message]
|