php form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • devavrat90
    New Member
    • Jan 2012
    • 2

    php form

    i got this error in index.php file:
    Code:
    Add entry
    
    0 ) { $i=0; while ($i < $num) { $firstname = stripslashes(mysql_result($result,$i,"firstname")); $lastname = stripslashes(mysql_result($result,$i,"lastname")); $email = stripslashes(mysql_result($result,$i,"email")); $password = stripslashes(mysql_result($result,$i,"password")); $messege = stripslashes(mysql_result($result,$i,"messege")); $id = stripslashes(mysql_result($result,$i,"id")); $row .= " FirstName Delete "; ++$i; }} else { $row .= " Nothing found"; }' ?>
    *************** *************** *************** *****
    and in add.php each input field contain a statement:
    Code:
    <?php echo stripslashes($firstname) ?>
    <?php echo stripslashes($lastname) ?>
    <?php echo stripslashes($email) ?>
    <?php echo stripslashes($password) ?>
    <?php echo stripslashes($messege) ?>
    please give me the proper and correct solution....
    Last edited by Rabbit; Mar 20 '12, 03:25 PM. Reason: Please use code tags when posting code.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Please use code tags when posting code.

    You didn't say what the error was.

    Comment

    Working...