|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
hi,
i'm having a problem with and update query using mysql... the query is: "update db1 set name='$name' && email='$email' && address='$address' where ID='$ID'"; when i take out the "and" and ask mysql to update only one column, it works fine though ;( Does anyone know why this is, and if there's a way around it ? Of course i could always make up 3 different queries but i was going to try to make it a bit cleaner ;P thanks for any help, nick |
|
#2
|
|||
|
|||
|
Use a comma
> update db1 > SET name='$name', > email='$email', > address='$address' > where id = '$id'; |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > update query and "and" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|