|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
hi there!! i´m new up here and new in PHP and MYSQL.
My problem it´s a rookie problem. i´m having troubles using the UPDATE statement. my table is the primeirapagina, and i´d like to modify the fields texto, titulo,tipo, mes. UPDATE primeirapagina SET texto='$texto',titulo='$titulo',tipo='$tipo',mes=' $mes' WHERE tipo='e' Whats the problem with this script??? Thankx |
|
#2
|
||||
|
||||
|
What kind of error message are you getting?
|
|
#3
|
|||
|
|||
|
Quote:
The problem its that the database its not updated. It stays the same. The register is not updated. Any sugestion??? |
|
#4
|
|||
|
|||
|
Hey Mascalito,
Did you ever get a response or a solution to your problem. I having the same issue, although my query code is embedded in a web form. The form processes fine, the result page shows the data as being changed, but in the DB nothing is changed. Here's my query code: PHP Code:
|
|
#5
|
|||
|
|||
|
Update
Hi! friend
pliz try this. UPDATE primeirapagina SET texto='$texto',titulo='$titulo',tipo='$tipo',mes=' $mes' WHERE tipo='e' try to print tipo variable and confirm whether it has a value or not. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Mysql Update |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|