|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77906 Update feature not working
Submitted: 2019-04-16 13:02 UTC Modified: 2019-04-16 19:03 UTC
From: lynnehorne at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 7.2.17 OS: Windows 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lynnehorne at gmail dot com
New email:
PHP Version: OS:


 [2019-04-16 13:02 UTC] lynnehorne at gmail dot com
I am running on Windows 10 with MySQL Community Server edition and PHP 7.3.3 using Xampp Apache. I have also rolled back to PHP 7.3.2 and 7.2, without success. When I run the code to update any of the information from my tables, I don't get any error message in the browser (Firefox, Chrome and Explorer) but the database does not update.

Test script:
function update(){
  $query = "UPDATE
    " . $this->table_name . "
    city = :city,
    provinceid = :provinceid,
    countryid  = :countryid

    id = :id";

$stmt = $this->conn->prepare($query);

// posted values

// bind parameters
$stmt->bindParam(':city', $this->city);
$stmt->bindParam(':provinceid', $this->provinceid);
$stmt->bindParam(':countryid', $this->country_d);
$stmt->bindParam(':id', $this->id);
    // execute the query

        return true;
     return false;

Expected result:
I expect to see that the data in my database has updated with the changes.

Actual result:
Nothing happens. I just get the message from my code that the database is not updated.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-16 13:11 UTC]
-Status: Open +Status: Feedback
 [2019-04-16 13:11 UTC]
> I just get the message from my code that the database is not updated

What message? As it currently stands there is not nearly enough information for a bug report.
 [2019-04-16 19:03 UTC]
-Status: Feedback +Status: No Feedback
 [2019-04-16 19:03 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Feb 24 02:01:28 2024 UTC