Date: 01/31/00
- Next message: Chester McLaughlin: "Re: [PHPLIB] Importing Users: moderately urgent."
- Previous message: Leif Jakob: "Re: [PHPLIB] Importing Users: moderately urgent."
- In reply to: Leif Jakob: "Re: [PHPLIB] Importing Users: moderately urgent."
- Next in thread: Chester McLaughlin: "Re: [PHPLIB] Importing Users: moderately urgent."
- Reply: Chester McLaughlin: "Re: [PHPLIB] Importing Users: moderately urgent."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I need to create a variable to hold the name of a table column. How do I use
the variable in a query? For example, with a variable called
"$current_theme", I want to do something like:
mysql_query("select * from themes where name = $current_theme", $db);
For reasons dictated by my purposes, I can't just type in the name of the
column - it must go through a variable. What is the correct way to do this?
Thanks...
-- Damien J. Moody Technology Coordinator damienm <email protected>Think about it: Plato was an object-oriented programmer.
- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Chester McLaughlin: "Re: [PHPLIB] Importing Users: moderately urgent."
- Previous message: Leif Jakob: "Re: [PHPLIB] Importing Users: moderately urgent."
- In reply to: Leif Jakob: "Re: [PHPLIB] Importing Users: moderately urgent."
- Next in thread: Chester McLaughlin: "Re: [PHPLIB] Importing Users: moderately urgent."
- Reply: Chester McLaughlin: "Re: [PHPLIB] Importing Users: moderately urgent."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

