$pot = mysql_fetch_array(mysql_query("SELECT pid FROM ibwf_albumpic WHERE private='0' ORDER BY rand() LIMIT 1"));
$new = mysql_fetch_array(mysql_query("SELECT MAX(pid) FROM ibwf_albumpic WHERE private='0'"));
is that correct?
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kendee/public_html/wap/v2/album.php on line of $pot
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kendee/public_html/wap/v2/album.php on line of $new
for $pot
i just want to get random pid in ibwf_albumpic for 1day (picture of the day)
and for $new
i just want to get the maximum value of pid to get the newest pid or order by time
$new = mysql_fetch_array(mysql_query("SELECT MAX(pid) FROM ibwf_albumpic WHERE private='0'"));
is that correct?
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kendee/public_html/wap/v2/album.php on line of $pot
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kendee/public_html/wap/v2/album.php on line of $new
for $pot
i just want to get random pid in ibwf_albumpic for 1day (picture of the day)
and for $new
i just want to get the maximum value of pid to get the newest pid or order by time
Comment