Jump to content
php.lv forumi

Rada tikai 1 nepareizo tekstu


homers

Recommended Posts

Kods:

<?
$epasts = isset($_POST['epasts']);
$check = mysql_query("SELECT epasts FROM lietotaji WHERE epasts=$epasts");
$epastss = $check[0];
$niks = isset($_POST['uzvards']);
$check1 = mysql_query("SELECT niks FROM lietotaji WHERE niks=$niks");
$nikss = $check1[0];
if($epasts == $epastss){
if($niks == $nikss){
if($_POST['epasts'] == $_POST['epasts_conf']){
if($_POST['parole'] == $_POST['parole_conf']){
if(!empty($_POST['vards']) and !empty($_POST['uzvards']) and !empty($_POST['epasts']) and !empty($_POST['parole']))
{
// insert

	'Tagad vari ielogoties!';
}
else
{
	 "Aizpildi visus laukus!<br />";
}
}else{
echo "Paroles nesakrīt!<br />";
}
}else{
echo "E-pasti nesakrīt!<br />";
}
}else{
echo "Niks jau aizņemts!<br />";
}
}else{
echo "E-pasts jau ir aizņemts!<br />";
}
?>

Bet rada tikai šo tekstu E-pasts jau ir aizņemts!

Esmu meiģinājis ievadīt daudzus citus variantus kuru nav datubāzē, bet rada tikai to tekstu..

Kas par problēmu?

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