
Prosty skrypt, pobranie wyniku z bazy.
Baza update:
jest w niej jeden wpis
id, id_owner, id_cel, time, pozostalo_dni
1, 3, 432, 01:30, 12
Kod php:
include ("config.php"); if ($aktualizacje == 0){ }else{ echo("<p><div class=\"mws-form-message2 update\">$record[time] - Cel <b>$update_cel[nazwa]</b> został zaaktalizowany przez <b>$update_nick[nick]</b>, do osiągnięcia celu pozostało $record[pozostalo_dni] dni.</div></p>"); } }
Wywala błędy:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/vhosts/dupa.pl/httpdocs/dashboard2.php on line 154 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 'update' at line 1