MySQL Forums
Forum List  »  PHP

Re: error
Posted by: eaju aizudin
Date: November 18, 2012 09:47PM

i,hv put the mysql_error()
then the output is

Warning: mysql_select_db() expects parameter 2 to be resource, null given in /home/bananaca/public_html/mohdaizudin/index.php on line 41

i,dont know which one is wrong..
idont hv idea..

41-mysql_select_db($database_feedback, $feedback)or die(mysql_error());
42-$query_Recordset1 = "SELECT * FROM homeupdate ORDER BY id DESC";
43-$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
44-$Recordset1 = mysql_query($query_limit_Recordset1, $feedback);
45-$row_Recordset1 = mysql_fetch_assoc($Recordset1);

Options: ReplyQuote


Subject
Written By
Posted
November 17, 2012 06:21PM
November 18, 2012 08:33AM
Re: error
November 18, 2012 09:47PM
November 18, 2012 10:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.