hi all wapmasters...have a nice day... i just tried to add a new thing in lavalair register form..when some one try to register it will automatic chek users email address...if they provide unique email then it will succees otherwise it will exit();
here is the php code ///////////
//////////////////ibwf reg page
$dupemail=mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users where email ='$email'"));
if ($_REQUEST['email'] !=$dupemail[0])
{
echo"regiter ok";
/////////////register process
}else{
echo"this email is already used try another";
exit();
}
note: i cant run it....what is the problem in this code??
any1 recode it..
shakil420 wrote:
note: i cant run it....what is the problem in this code??
$dupemail=mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users where email ='".htmlspecialchars(mysql_real_escape_string($_REQUEST['email']) ."'"));
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______…
only one minor update to change it to lavalair ???
change:
$checkemail = mysql_query("SELECT email FROM users WHERE email = '$email'") or die(mysql_error());
to:
$checkemail = mysql_query("SELECT email FROM **ibwf_**users WHERE email = '$email'") or die(mysql_error());
confusing?????
if u still cant get it working there is a pre-scripted one for lavalair somewhere in forum 😛
Added after 8 minutes:
or another alternative if you still cant do it is to open up your database and enter this in your sql box:
that is a good idea but then how would i print error message using those switch case from core.php and print it on regsiter.php that email already registered etc?
iv already posted a complete version of this for lavalair somewhere in this forum (not to long ago).... so i cant be bothered to code it again 😛
use this:
http://coding-talk.com/search.php
ok the topic has been deleted lol however i did find it in googles cache
case 16: //what ever is number
$errl = "<img src=\"../images/point.gif\" alt=\"!\"/> Email Already in use";
$ue = "<img src=\"../images/point.gif\" alt=\"!\"/>";
break;
$emailcheck = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE name='".$email."'"));
//then a bit thurther down
}else if($emailcheck[0]>0){
echo registerform(16);//what ever number is
something else wrote:
ok the topic has been deleted lol however i did find it in googles cache
case 16: //what ever is number
$errl = "<img src=\"../images/point.gif\" alt=\"!\"/> Email Already in use";
$ue = "<img src=\"../images/point.gif\" alt=\"!\"/>";
break;
$emailcheck = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE name='".$email."'"));
//then a bit thurther down
}else if($emailcheck[0]>0){
echo registerform(16);//what ever number is
it still registering same email, guess query wrong?
something else wrote:
ok the topic has been deleted lol however i did find it in googles cache
case 16: //what ever is number
$errl = "<img src=\"../images/point.gif\" alt=\"!\"/> Email Already in use";
$ue = "<img src=\"../images/point.gif\" alt=\"!\"/>";
break;
$emailcheck = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE name='".$email."'"));
//then a bit thurther down
}else if($emailcheck[0]>0){
echo registerform(16);//what ever number is
it still registering same email, guess query wrong?