|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
Help : MYSQL_QUERY($sql)
In PHP&MYSQL.
AS we know, we can use MYSQL_QUERY('select * from test') but I need a var to replace the query language, like mysql_query($sql), but i meet error information. Any one can tell me how to realize it? Cheers |
|
#2
|
|||
|
|||
|
Post your code and the error you are recieving.
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#3
|
||||
|
||||
|
did you say MYSQL_QUERY('select * from test') works, but MYSQL_QUERY($variable) doesn't work?
i trust you're casting it into a variable... such as: $result = MYSQL_QUERY($variable); if you're positive this is the line giving you the error, perhaps your query is wrong... i always find this debugging trick works: $result = MYSQL_QUERY($variable) or DIE("error with query: $variable"); otherwise, post your code and perhaps the exact error... |
|
#4
|
||||
|
||||
|
PHP Code:
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Help : MYSQL_QUERY($sql) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|