www.webdeveloper.com
Results 1 to 2 of 2

Thread: SQL and PHP variable , _GET problems

  1. #1
    Join Date
    Mar 2012
    Posts
    18

    SQL and PHP variable , _GET problems

    my problem is when i print the id it shows up but when i want to use it in my sql it doesnt want to?
    Code:
        if (isset($_GET["tabsid"])) { 
    
    $newsid = $_GET["tabsid"];
                    
    cms_pr($newsid);
            
        $mediaSql = db_get_by_sql("SELECT * FROM media_player WHERE media_player_category_id='$newsid' and media_default = 1");
            $mediaSql = $mediaSql[0];

  2. #2
    Join Date
    Mar 2012
    Posts
    63
    "SELECT * FROM media_player WHERE media_player_category_id=".$newsid." and media_default = 1"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles