1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    This is actually a follow up on a tread I did today but really took a new twist. Hope I didn't inapropriately start a new post here.

    I have this mini PHP prog that had these 2 MySQL statements:

    $mysql_select_db('joesauto', $mysql_link);

    My host provider indicated that the "$" signs shouldn't be here on the front. But all the examples I see everywhere has them.

    The omission did indeed fix the problem, but how do I know when to exclude these and when to include them.


  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    You shouldn't have the "$" signs infront of those two statements EVER. mysql_select_db() and mysql_close() are functions, and the "$" sign only precedes variables.

    I'd re-look at your examples....if they have the dollar sign proceeding them then their code is wrong.

Similar Threads

  1. [NEW USERS] - How to post a question.
    By JeffCT in forum PHP Development
    Replies: 39
    Last Post: December 2nd, 2010, 08:13 AM
  2. PHP data retrieval question with MySQL
    By gursharn in forum PHP Development
    Replies: 7
    Last Post: December 31st, 2003, 09:43 AM
  3. Javascript question mark question?
    By tajmiester in forum JavaScript Development
    Replies: 3
    Last Post: November 30th, 2003, 05:36 PM
  4. Radio Buttons
    By Ulysses Freeman in forum HTML Programming
    Replies: 4
    Last Post: November 15th, 2003, 09:57 PM
  5. Associative array question - newbie
    By square in forum PHP Development
    Replies: 7
    Last Post: January 25th, 2002, 11:29 AM

IMN logo majestic logo threadwatch logo seochat tools logo