lordaya
09-29-2007, 11:35 AM
hi all
i have an error in my code.
the code is :
$query1 = "SELECT * from setting WHERE id = 1";
$sql1 = @mysql_query($query1);
$results2 = array();
$c=0;
while ($row2=mysql_fetch_array($sql1)) {
$tmp2 = array(
'sitename' => $row2['sitename'],
'siteslogan' => $row2['siteslogan'],
'footermsg' => $row2['footermsg']
);
$results2[$c++] = $tmp2;
}
@mysql_free_result($sql1);
the error message is :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/public_html/eqary/index.php on line 63
line 63 is :
while ($row2=mysql_fetch_array($sql1)) {
im just checking my code and the setting table is not set i think
so any thing related to that?
whats wrong out there!??
i have an error in my code.
the code is :
$query1 = "SELECT * from setting WHERE id = 1";
$sql1 = @mysql_query($query1);
$results2 = array();
$c=0;
while ($row2=mysql_fetch_array($sql1)) {
$tmp2 = array(
'sitename' => $row2['sitename'],
'siteslogan' => $row2['siteslogan'],
'footermsg' => $row2['footermsg']
);
$results2[$c++] = $tmp2;
}
@mysql_free_result($sql1);
the error message is :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/public_html/eqary/index.php on line 63
line 63 is :
while ($row2=mysql_fetch_array($sql1)) {
im just checking my code and the setting table is not set i think
so any thing related to that?
whats wrong out there!??
