sliede Posted July 2, 2009 Report Share Posted July 2, 2009 man ir shaads koods <? $kods= 'Kods '; $simbols= ': '; $r1=rand(0,9); $r2=rand(0,9); $r3=rand(0,9); $r4=rand(0,9); $r5=rand(0,9); $r6=rand(0,9); $randcode="$r1$r2$r3$r4$r5$r6"; echo $kods,$simbols,$randcode; $con = mysql_connect("kas te javada?","kas te javada?","kas te javada?"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("kas te javada?", $con); mysql_query("INSERT INTO code (code) VALUES ('$randcode')"); mysql_close($con); ?> shajos tekstos kur takstiits kas te javada? varat pateikt kur javada db name,username,pw,host! Quote Link to comment Share on other sites More sharing options...
indoom Posted July 2, 2009 Report Share Posted July 2, 2009 http://lv.php.net/manual/en/function.mysql-connect.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.