In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > The button "Email Comments" links to the following page: > > <?include ("../config.inc.php"); ?> > > <?php > > // setup SQL statement to retrieve link that we want to edit > $SQL = " SELECT * FROM $tablename1 "; > $SQL = $SQL . " WHERE id = $id "; > > // execute SQL statement > $ret = mysql_db_query($dbname,$SQL,$link); > > // retrieve values > $row = mysql_fetch_array($ret); > $email = $row["email"]; > $title = $row["title"]; > $comments = $row["comments"]; > $title = $row["title"]; > > else {echo(mysql_error()); > > I get an error at $row = mysql_fetch_array($ret);
Wiyhout seeing the message this is a guess, but have you considered using mysql_error to check the status of your query? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php