Jump to content
php.lv forumi

jautājums par datubāzēm


Vecteevs

Recommended Posts

Sveiki, man tāds neliels jautājums. Kad piereģistrējos savā test lapā, it kā viss ir labi, bet datubāzē man uzrāda tukšumu pie vārda un uzvārda, bet visus pārējos datus rāda. Pārbaudīju, bet viss it kā ir kā vajag

Link to comment
Share on other sites

te ir datubāzes values

mysql_query("INSERT INTO users
              (`full_name`,`user_email`,`user_pwd`,`country`,`joined`,`activation_code`)
			  VALUES
			  ('$_POST[full_name]','$_POST[email]','$md5pass','$_POST[country]',now(),'$activ_code')") or die(mysql_error());

 

un te ir html

 

<table width="65%" border="0" cellpadding="0" cellspacing="0">
 <tr> 
   <td bgcolor="d5e8f9" class="mnuheader"><strong><font size="5">Register Account</font></strong></td>
 </tr>
 <tr> 
   <td bgcolor="e5ecf9" class="forumposts"><form name="form1" method="post" action="register.php" style="padding:5px;">
       <p><br>
          Name: 
         <input name="name" type="text" id="name">
         Piem. Jānis Bērziņš</p>
       <p>Email: 
         <input name="email" type="text" id="email">
         Piem. john@domain.com</p>
       <p>Parole: 
         <input name="pass1" type="password" id="pass1">
         vismaz 5 simboli</p>
       <p>Atkārtot paroli: 
         <input name="pass2" type="password" id="pass2">
       </p>
       <p>Valsts: 
         <select name="country" id="select8">
           <option value="Afghanistan">Afghanistan</option>
           <option value="Albania">Albania</option>
         </select>
       </p>
       <p> 
         <input name="user_code" type="text" size="10">
         <img src="pngimg.php" align="middle">  </p>
       <p align="center"> 
         <input type="submit" name="Submit" value="Register">
       </p>
     </form></td>
 </tr>
</table>

 

datubāze:

pohu0w8r8qga1l2r924d.jpg

 

Edit: visu man uzkopē izņemot to vārdu :(

Edited by Vecteevs
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...