|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this 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
|
|||
|
|||
|
mysql query using variables
im running a mysql query which will display only rows of data of a certain catagory. Ive got it working when i state the catagory in the query :
$result = mysql_query ("SELECT * FROM mytablename WHERE catagory = 'catagory1' order by id"); Id like 'catagory1' to be replaced by a variable called $chosencatagory but dont know the correct syntax. im sure this is really easy when you know how, but im stuck.... thanks! |
|
#2
|
|||
|
|||
|
forget it, all sorted now, i was getting my quotes mixed up!
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > mysql query using variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|