You are here: newbie problem « PHP SQL « IT news, forums, messages
newbie problem

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация