Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.70K
1 Posted Topic
My Code: <?php include("validation.php"); include("conection.php"); if(isset($_POST["button"])) $pwde = md5($_POST[password]); $sql="INSERT INTO administrator (adminid, adminname, password, address, contactno) VALUES ('$_POST[adminid]','$_POST[adminname]','$pwde','$_POST[address]','$_POST[contactno]')"; if (!mysql_query($sql,$con)) die('Error: ' . mysql_error()); else echo "1 record Inserted Successfully..."; $result = mysql_query("SELECT * FROM administrator"); while($row1 = mysql_fetch_array($result)) $adminid = $row1["adminid"]+1; } if(isset($_POST["button2"])) $pwde = md5($_POST[password]); mysql_query("UPDATE administrator …
The End.