Jump to content

jaganguys

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jaganguys's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi i am getting error Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\mywork\unique.php on line 19 Warning: mysql_fetch_array() expects parameter 1 to be resource, string given in C:\xampp\htdocs\mywork\unique.php on line 21 Thanks for Register! $sql1=mysql_fetch_array($sql); $result="SELECT * FROM users WHERE regno='$regno'"; while($row = mysql_fetch_array($result))
  2. Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\mywork\unique.php on line 15 <html> <head> <title> </title> </head> <body bgproperties="fixed"> <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $con = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'mywork'; mysql_select_db($dbname, $con); $sql=mysql_query(insert into users (regno,name,gender,date,month,year,emailid,cell,paddress,caddress,incometype,incomeamt,dad,fyes,dadocup,mom,myes,momocup,password) VALUES ('$_POST[regno]','$_POST[name]','$_POST[gender]','$_POST[date]','$_POST[month]','$_POST[year]','$_POST[emailid]','$_POST[cell]','$_POST[paddress]','$_POST[caddress]','$_POST[incometype]','$_POST[incomeamt]','$_POST[dad]','$_POST[fyes]','$_POST[dadocup]','$_POST[mom]','$_POST[myes]','$_POST[momocup]','$_POST[password]')"); $sql1=mysql_fetch_array($sql); $result = @mysql_query($SQl1); $result="SELECT * FROM users WHERE regno='$regno'"; while($row = mysql_fetch_array($result)) { //echo $row['regno']."regno<br>"; //echo $row['name']."name<br>"; //echo $row['gender']."gender<br>"; //echo $row['date']."date<br>"; //echo $row['month']."month<br>"; //echo $row['year']."year<br>"; //echo $row['emailid']."emailid<br>"; //echo $row['cell']."cell<br>"; //echo $row['paddress']."paddress<br>"; //echo $row['caddress']."caddress<br>"; //echo $row['incometype']."incometype<br>"; //echo $row['incomeamt']."incomeamt<br>"; //echo $row['dad']."dad<br>"; //echo $row['fyes']."fyes<br>"; //echo $row['dadocup']."dadocup<br>"; //echo $row['mom']."mom<br>"; //echo $row['myes']."myes<br>"; //echo $row['momocup']."momocup<br>"; //echo $row['password']."password<br>"; } echo "Thanks for Register!"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con); ?> <form name="security" action="index.php" method="post"> <input type="submit" value="click here to login"> </form> </body> </html>
  3. Hi friends, i don't know even a simple program in php.. but i need a registration,login in, forgot password with mysql coding.. pls help me please help me In registration form 1.email id(primary key)* 2.confirm email id* 3.password* 4.confirm password* 5.full name* 6.country* 7.date of birth* 8.sex(radio)* 9.mobile number 10.Occupation* 11.i agree the terms and condition(check box but not mark when appearing user should mark it)* 12. submit after submiting thank you for registering http://www.example.com if you can email to the user as ur successfully registered to http://www.example.com and my email id of sending is support@example.com please validate the email id.. LOgin in 1.email id 2.password 3.submit 4.forgot password 5.new user? Register forgot password 1. email id 2. submit the password in the database has to be submitted to the user entered email id. if email id is not available in the database show error THnax thanx thanx thanx.......in advance.................
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.