Menu

updateTable.php bug

Anonymous
2004-09-03
2004-09-13
  • Anonymous

    Anonymous - 2004-09-03

    Great work, gives me a good starting point to learn about object php.

    the crud updateTable.php has a small bug after it is generated.

    <quote>
        $thisUser_id = addslashes($_POST['thisUser_idField']);
        $thisUsername = addslashes($_POST['thisUsernameField']);
        $thisPwd = addslashes($_POST['thisPwdField']);
        $thisReal_name = addslashes($_POST['thisReal_nameField']);

        $thisUser_id = $_REQUEST['user_id'];   

        $thisUsersManager = new UsersManager();
        $thisUsersInfo = $thisUsersManager->getUsersByPK($thisUser_id);
        if ($thisUsersInfo == false)
        {

    </quote>

    if  <b>$thisUser_id = $_REQUEST['user_id'];  </b> is not omitted, then there'll be no update done.

    Also, is there any other way to avoid editing php.ini or using .htaccess to include the conf.php file ? like prefixing the absolute path automatically to this file ?

    regards.

     
    • Nilesh Dosooye

      Nilesh Dosooye - 2004-09-13

      wil be fixed in next version

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.