Jump to content
php.lv forumi

Kas nepareizs insertā


false

Recommended Posts

Kods

$niks = mysql_real_escape_string(md5($_POST['niks']));
$pw = mysql_real_escape_string($_POST['pw']);
$mem_id = mysql_real_escape_string($id);
$nauda = mysql_real_escape_string("50");
mysql_query("INSERT INTO game_nicks(mem_id, niks, parole, nauda, kad, termins) VALUES('$mem_id', '$niks', '$pw', '$nauda', NOW(), DATE_ADD(NOW(), INTERVAL 30 DAY)") or die(mysql_error());

 

errors

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

 

Kas nepareizs insertā?

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...