Skip to main content

All Questions

Tagged with
-1 votes
2 answers
105 views

Increment my variable in a database with UPDATE in PHP

I get the variable 'stock' from my database. I would like increment my variable with an update with this code: $stock = $_POST['stock'] $nom = 'salade'; $req=("UPDATE ingredients SET stock=$stock+1 ...
mario_nsport's user avatar
-2 votes
1 answer
43 views

getting issue in update query in laravel

Guys i am facing an issue in laravel on update i want to update 2 values in single column but its update only one value i want to update both values please help also please see my code and image link ...
digi soft's user avatar
0 votes
2 answers
744 views

Updating record in phpmyadmin with php code

I have a reservation form where once it is filled out, the rooms available for a certain building are decreased by one. I am using Cloud9 ide with php to update the record for that building in the ...
Katie's user avatar
  • 19
-2 votes
1 answer
55 views

mysql updates not working

I have a mysql insert function that works whenever I insert data into a database, but my mysql update function for some reason doesn't seem to work... it doesn't return any data... just zilch... not ...
Jose josemartinez Martinez's user avatar
0 votes
1 answer
612 views

syntax for check debug in php codeigniter

I want to ask. why my update script doesn't work or doesn't fit with what I want. strangely this script doesn't save to the database when I click the update button but the pages move like this script ...
harelut98's user avatar
0 votes
1 answer
126 views

Upgrading old code to newer MySQL version

I'm very much an amatuer at this kind of thing, but I am trying to teach myself about PHP and MySQL databases. I'm trying to build my own local copy of the lesson talked about here: https://www....
Ads's user avatar
  • 15
2 votes
0 answers
1k views

How to update production database with development one?

I have built a web app using MySQL and php and I'm at the moment trying to figure out the best approach to make a script to automatically update the customers based on the new changes on my ...
Aramil's user avatar
  • 411
-1 votes
2 answers
62 views

Update Multiple data [closed]

I can't fix this: $data=array( for($i=1; $i<=$tot+1; $i++){ array( 'id_jenisjadwal' => $this->input->post('jenis_jadwal'), 'bulan_tahunkp' => $bln_thn, '...
user2560828's user avatar
4 votes
4 answers
4k views

Keep track of database column value changes

I am working on a web based application using Zend framework. I am looking for a way to keep history of updates made to a bunch of columns. Use-case: User can add an item with 5 properties. The ...
panxpress's user avatar