fera holy kina
Ubuntu 10.04
- Joined
- Jan 27, 2009
- Messages
- 192
- Reaction score
- 5
The following error appears when I see a video posted by the players
Line 113
Anyone have idea what it is?
not understand php
PHP:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\videos.php on line 213
Line 113
PHP:
while ($sql = mysql_fetch_array($limite)) {
PHP:
$sql = "SELECT * FROM comentarios WHERE videoid='$videoid' ORDER BY data ASC";
$limite = mysql_query("$sql");
while ($sql = mysql_fetch_array($limite)) {
$id = $sql["id"];
$videoid = $sql["videoid"];
$charnick = $sql["charnick"];
$servidor = $sql["servidor"];
$comentariox2 = $sql["comentario"];
$account_comment = $sql["account"];
$data = $sql["data"];
$data2 = date('d/m/Y - H:i:s', $data);
if ($account_login == $account_comment){
$owner = "1";
$delmsg = "<a href='?subtopic=videos&action=delcomment&videoid=$videoid&idcoment=$id'><img src=layouts/tibiacom/images/news/delete.png />";
} else {
$owner = "0";
$delmsg = "";
}
Anyone have idea what it is?
not understand php