[Help][Mysql]While
#1

Hi all. I need a script. I do not know as I write. I want to echo everything from the table. The PHP script is as follows:
Код:
$sql = "SELECT id, nick FROM ziaci ORDER BY id";
$vysledok = mysql_query($sql);
if (!$vysledok) { die("Chyba pri dotaze do databбzy."); }
while ($riadok=mysql_fetch_array($vysledok)) {
echo "<a href=\"ziaci.php?profilid=".$riadok['id']."\"> ".$riadok['nick']."</a><br>";
}
And I do not know how can I do to Pawn.
Thanks.
Reply
#2

Sorry for spam. Please help me. I need it.
Reply
#3

SAMP has special functions for that. Check the plugins section for a mysql plugin and the corrosponding functions are in that topic

Hope I helped,
mamoru
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)