$link = mysql_connect("freelinuxhost.com",$username,$password);
@mysql_select_db($database, $link) or die( "Unable to select database");
$query = "INSERT INTO Entry VALUES ('$name','$date','$quote')";
$result = mysql_query($query, $link) or die(mysql_error());
$num = mysql_affected_rows();
mysql_close();
$arr = mysql_fetch_row($result);
I get the error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
[web] Invalid resource from mysql_query
With this code:
You closed the connection to mysql before executing mysql_fetch_row - it's likely that's the culprit (from my rusty php knowledge)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement