There is no PHP native function
there is one that you would use instead which is
Also let it be noted
And like M_E said, [mysql_error]s not a PHP statement.
I did not take that from his post and there most certainly is a mysql_error() function read from the manual about that function PHP: mysql_error-Manual
I use it all the time when first testing scripts I use it a little differently than they did but this is some of my code
$connect = mysql_connect($host,$user,$pass) //Now connect to the server
or die("Could not connect to server".mysql_error());
$db = mysql_select_db($Db,$connect)
or die("Could not select database $Db".mysql_error());
He just need to get his syntax correct, but hey we all learn from our mistakes. Also there shoul be no space between <? and php and it is a good practice to always use <?php
instead of short tags like <?
because not all servers have them turned on and when XML became in use it confuses the XML as well as PHP future version of PHP will come with short tags turned off as a default.
In the forums at PHP Builder where I answer question about failing scripts occasionally one of the most common errors is using short tags with a test server then the code does not work on the live web server, or they put the code on a different server and it doesn't work anymore. Another common problem is usage of checkboxes which to process with PHP should be written as an array by simply adding  to the checkbox name.
Given more time lonebyrd
will learn from these errors and know in the future how to properly query the database. lonebyrd I would make a practice of using <?php to ensure that you code will work. A great online resource for learning PHP is a book called Practical PHP Programming