Jump to content
php.lv forumi

mysql


sliede

Recommended Posts


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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...