I've read the newbies sticky, yet it doesn't work. here's the code:
<?php
$mysql_link=mysql_connect('localhost','root','')
or die("ERROR: cannot connect to MySQL server.<br>");
echo "connected successfully to MySQL server.<br>";
if (mysql_select_db('lespaul',$mysql_link))
echo "DB selected.<br>";
else
echo "Could not select the DB.<br>";
echo "Model 1111<br>";
$out=mysql_db_query("lespaul", "SELECT name,id FROM models WHERE id>100", $mysql_link);
echo $_POST['out'];
?>
Output:
connected successfully to MySQL server.
DB selected.
Model 1111
PHP Notice: Undefined index: out in C:\Program Files\EasyPHP1-8\www\main.php on line 13