I'm trying to use mysql_result to extract data from one particular field
in a record. So I suppose the most viable solution is to use
mysql_result. But when I do this:

$sqlstmt="SELECT * FROM dept WHERE shortname=$shortname";
$temp=mysql_result($result,0,"shortname"); <-- This will give me an

Did I do anything wrong here?

Thanks in advance.

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to