Web Analytics Made Easy -
StatCounter Help needed using variables in sql query - CodingForum

Announcement

Collapse
No announcement yet.

Help needed using variables in sql query

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help needed using variables in sql query

    Problem solved... where can I deleted this?
    Last edited by twomt; Sep 27, 2006, 06:29 AM.
    Nemesis War
    Online browser based space combat game.
    It's free, it's great, you'll love it.
    Come join us at http://www.nemesiswar.net/

  • #2
    Ideally you'd leave the original question and post the solution; that way people searching for a similar issue can see how you solved your problem.

    Comment


    • #3
      Originally posted by Fumigator View Post
      Ideally you'd leave the original question and post the solution; that way people searching for a similar issue can see how you solved your problem.
      absolutely right other then that the query would have worked if my big fingers wouldn't have made a mess out of the statements :P

      basically you can do $query = "SELECT $abc, $def FROM ......"
      but I just entered abc, def without the $ and never spotted it.

      I shall leave the original message in there next time to make a fool outta myself.
      Nemesis War
      Online browser based space combat game.
      It's free, it's great, you'll love it.
      Come join us at http://www.nemesiswar.net/

      Comment


      • #4
        my sugestion is:

        PHP Code:
        $sql "SELECT field FROM table WHERE field='".$var['field']."' ORDER BY field DESC" 
        Free php image upload script
        Personal web developing blog

        Comment

        Working...
        X