SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru ujjwal's Avatar
    Join Date
    Oct 2004
    Location
    kolkata
    Posts
    821
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Needing help,Sql Problem

    Hi all,
    I cannot print my data into a table from Rdbms table desination.
    The pulling sql is
    "SELECT * FROM `destination` where areaid=$dest and budgetid=$bud and durid=$dura and ddate=$ddate";
    Is it wrong in any where?
    mysql told that can you find out what would be the wright sql in that purpose?

  2. #2
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this...
    Code:
    SELECT 
    	* 
    FROM 
    	`destination` 
    WHERE 
    	areaid = '$dest' 
    AND 
    	budgetid = '$bud'
    AND 
    	durid = '$dura'
    AND
    	ddate = '$ddate'
    Lats...


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
  •