|
|
|
| |||||||||
![]() |
|
|
«
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 there!
I have some problems when trying to update a table... This is what I want to do: $queryStr2 = "UPDATE Contents SET information=$text WHERE userId=$id and year=$year and month=$month and day=$day"; It just dont work out. And Yes i have UPDATE rights. Anyone? ------------------ -ulrik- |
|
#2
|
|||
|
|||
|
You need to place quotes around the variables unless you know the information to be numeric.
$queryStr2 = "update Contents set information='$text' where userId='$id' and year='$year' and month='$month' and day='$day'"; |
|
#3
|
|||
|
|||
|
Thanks!
I should have thought of that. ------------------ -ulrik- |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Problems with UPDATE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|