Jump to content
php.lv forumi

info no sql tikai 1 reizi...


PacStyle

Recommended Posts

taisu ircphp botu.. un itkā uzrakstot komandu .akna parāda vārdu dienu tajā datumā, bet ja raksta otru reizi - nerāda..

 

Kods:

if ($komanda[0] == ".akna") {

while($linija = mysql_fetch_assoc($konee)){

$m = date("m");

$d = date("d");

if (($m == $linija[menesis]) && ($d == $linija[datums])) {

socket_write($socket, "NOTICE $nick :Varda dienu svin \002 $linija[vards]\n");

}

else {

socket_write($socket, "NOTICE $nick :\002Sviests... Datubāzē laikam nav ieliktas visas vardadienas!\n");

}

}

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...