You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id=3826' at line 1
W bazie jest zdefiniowany id=3826
$sql1 = "SELECT * FROM dodane ORDER BY id DESC LIMIT ".$start1.",".($end1 - $start1 + 1); $zapytanie3 = mysql_query($sql1) or die('Wystapil blad przy zapytaniu paginatora w zmiennej sql: ' . mysql_error()); $wartosc_bool = szukaj($row2['url']); if(!$wartosc_bool) {$zdjecie = '<img float="left" display="inline" src="'.SITE.'images/index.png" alt="strona zaindeksowana" height="16" width="16">'; $idd = $row2['id']; $pyta77 = "INSERT INTO dodane (tick) VALUES (1) WHERE id=$idd"; } else $zdjecie = '<img float="left" display="inline" src="'.SITE.'images/index_no.png" alt="strona niezaindeksowana" height="16" width="16">'; $link = '<a target="_blank" href="'.$row2['url'].'">'.$row2['url'].'</a>'; $podstaw = '<input type="checkbox" name="checkbox_name[]" id="checkbox_id_'.$row2['url'].'" value="'.$row2['url'].'<:'.$row2['id'].'" />';
echo '<p>' . $podstaw. ' ' .$zdjecie. ' <a target="_blank" href="'.$row2['url'].'">'.$row2['url'].'</a> </p>'; }