MySQL problem
| From: | Caleb Walker | Date: | Fri, 22 Feb 2002 07:37:46 +0000 |
| Subject: | MySQL problem | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17183@lists.php.net to get a copy of this message | ||
I keep on getting this error statement:
Warning: Supplied argument is not a valid MySQL result resource in
/usr/local/www/data/phone/insert2.php on line 10
2
Can someone tell me what is wrong with the code below, I just cannot figure
it out... Thank you very much in advance. I am using php4.
<html>
<?
session_start();
include("info.inc.php");
mysql_connect("$host","$user","$pass") || die(mysql_error());
mysql_select_db("$db") || die(mysql_error());
$q = mysql_query("SELECT FName, LName FROM user_info WHERE (FName='$FName' &&
LName='$LName')") || die(1);
$view = mysql_fetch_array($q) || die(2);
?>
<?=$view[0]?>
</html>