Results 1 to 3 of 3

Thread: mysql_query expects parameter 2 to be resource

  1. #1
    Join Date
    Feb 2012
    Location
    Dhaka, Bangladesh
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question mysql_query expects parameter 2 to be resource

    I can't seem to figure out why is this error occurring -
    Warning: mysql_query() expects parameter 2 to be resource, string given on line 62(marked red)

    Code:
    <?php  include ('config.php');
    					  
    		$sqlget = "SELECT * FROM customer";
       line 62    $sqldata = mysql_query($select_db, $sqlget) or die('Error');
    
    .......
    Last edited by Priyo; 02-21-2012 at 07:40 PM. Reason: Solved in in a different way.

  2. #2
    Join Date
    Feb 2012
    Location
    Dhaka, Bangladesh
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I solved this problem in a different way. Thanks for not helping.

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If you want help, you can post more information. There's no need to be rude. From what you posted, it's not possible to figure out what is wrong-- your query probably does not match the database structure.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •