Posts: 234
Location: Sharpsville, PA
|
PHP Code:
$query="SELECT foo FROM table WHERE bar = '$var'";
I guess this should be a simple question... but it's early...
If $var doesn't equal a value in the table, the code spits out:
Warning: Unable to jump to row 0 on MySQL result index 2
Is there a way I can prevent this message? I'm already using "isset" to make sure the $var is present, it's just having the two NOT match up that is giving me the error.
|