NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Warning: mysql_fetch_array() ... index.php?id=3


Joined: 01 Oct 2004
Posts: 1
Reply with quote
Dear Sir or Madame,

I have a problem. I generated a form using the DB Wizard inside PHPEd. When trying to update the record, I get the following error:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/scgis-si-org/www/clani/db_myutil.inc on line 16

I copied the file db_myutil.inc from the Program files of PHPEd. the code in that section is:

<?
/*
Misc MySQL utils to use with PHPEd generated scripts

*/
function dbconnect($dbhost, $dbuser, $dbpass, $dbname) {
mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
mysql_select_db($dbname) or die(mysql_error());
}

function dbquery($sql){
return mysql_query($sql);
}

function dbnext($res){
return mysql_fetch_array($res);
}


Please help!
View user's profileFind all posts by ssddgregSend private message
Warning: mysql_fetch_array() ... index.php?id=3
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic