LamerNo1 Posted May 3, 2005 Report Share Posted May 3, 2005 (edited) ir taa, ka pirms registraacijas jaapaarbauda vai nav jau ar taadu lietotaajvaardi pieregistreejies, kaa to var izdariit??? sorry, pats izpiipeeju, man sanaaca shitaa, mosh kaadam labaaks i? $res = mysql_query("select * from jskRegData WHERE login LIKE '$a1'"); if(mysql_fetch_array($res)) die ("Lietotājvārds jau ir aizņemts."); Edited May 3, 2005 by LamerNo1 Link to comment Share on other sites More sharing options...
hu_ha Posted May 3, 2005 Report Share Posted May 3, 2005 a nafig "LIKE"? Link to comment Share on other sites More sharing options...
LamerNo1 Posted May 3, 2005 Author Report Share Posted May 3, 2005 a nafig "LIKE"? 17158[/snapback] a ko citu? es tak knapi iesaacejs esmu... Link to comment Share on other sites More sharing options...
bubu Posted May 3, 2005 Report Share Posted May 3, 2005 $res = mysql_query("select count(*) from jskRegData WHERE login='$a1'"); list($cnt) = mysql_fetch_row($res); if ($cnt!=0) die ("Lietotājvārds jau ir aizņemts."); Link to comment Share on other sites More sharing options...
LamerNo1 Posted May 3, 2005 Author Report Share Posted May 3, 2005 $res = mysql_query("select count(*) from jskRegData WHERE login='$a1'"); list($cnt) = mysql_fetch_row($res); if ($cnt!=0) die ("Lietotājvārds jau ir aizņemts."); 17160[/snapback] tnx Link to comment Share on other sites More sharing options...
Recommended Posts