Activity Stream
48,167 MEMBERS
61001 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1.     
    #11
    Member
    Quote Originally Posted by Cory View Post
    He made a typo;

    Find:
    PHP Code: 
    $G_GET['id'
    Change:
    PHP Code: 
    $_GET['id'
    It yet gives me that error.


  2.   Sponsored Links

  3.     
    #12
    Member
    Website's:
    EastsideHosting.com MediaONAIR.com ImgWiz.com cPadmin.net EastsidePCWorks.com HostedTalk.com
    Try:
    PHP Code: 
    if(isset($_GET['id']) && is_numeric($_GET['id']) && strlen($_GET['id'] < 7)) { 
    EastsideHosting - (Web Hosting, Proxy Hosting, Reseller Program)
    MediaONAIR - (SHOUTcast Servers, ICEcast Servers, Reseller Program)
    Server Administrator - (Dedicated Servers, VPS Management, One Time Services)
    ImgWiz - (Free Image Hosting)

  4.     
    #13
    Member
    Quote Originally Posted by Cory View Post
    Try:
    PHP Code: 
    if(isset($_GET['id']) && is_numeric($_GET['id']) && strlen($_GET['id'] < 7)) { 
    Hello,

    Thanks for your help,

    I also wanted to clarify, that i have two id fields on the table.

    1 is "id" which is the id for a user who posts to the database
    2 is "iid" which is the id for the post


    I am now using this code:

    <?php
    include 'dbc.php';
    ?>
    <?php
    // First check if we have a id of a download to show in detail
    if(isset($_GET['iid']) && is_numeric($_GET['iid']) && strlen($_GET['iid'] < 7)) {
    $sql = mysql_query("SELECT id, title,description,download,date FROM index WHERE iid=".$_GET['iid']);
    // output your detailed info here. Smart to check if it exists first. Throw a message if it doesn't exist and if it does show the download.
    }
    // if no download number then we'll just show the list as normal
    else
    {
    $sql = mysql_query("SELECT id, title FROM index LIMIT 30");
    while($row = mysql_fetch_assoc($sql))
    {
    echo '<tr><td>'.$row['id'].'</td><td><a href="index.php?id='.$row['id'].'">'.$row['title'].'</a></td><td>'.$row['description'].'</td><td>'.$row['download'].'</td></tr>';
    }
    }
    ?>


    After i execute it i get this:

    Just a blank screen:



  5.     
    #14
    Member
    Website's:
    LulzCovers.com LulzTroll.com
    using <tr><td> without table defined :/

    add
    Code: 
    echo '<table><tbody>';
    before the while loop.

    and
    Code: 
    echo '</tbody></table>';
    after the while loop ends.

    and then give it a try.
    Contact me for Traffic, SEO, WCDDL, Wordpress, IPB related Services or queries.
    Template Designing, PSD to HTML, Wordpress


  6.     
    #15
    Member
    Ok well things work well now, but another small issue i have a doubt on this code somehow:

    lol just edited this post like 5 times now:

    Nevermind it works

    THanks guys will see if i get any other error will post it up.

    Cheerz


Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating tables in RVSiteBuilder
    By Areon in forum Server Management
    Replies: 0
    Last Post: 3rd Mar 2014, 03:15 PM
  2. How Should I Organize My SQL Tables?
    By Robin Hood in forum Web Development Area
    Replies: 7
    Last Post: 22nd Aug 2012, 03:54 PM
  3. Exporting tables from one to another [help req]
    By xtone in forum Web Development Area
    Replies: 6
    Last Post: 27th Sep 2011, 11:05 PM
  4. help me mysql tables are corupted
    By awaisdik2003 in forum vBulletin
    Replies: 0
    Last Post: 21st Sep 2010, 12:38 PM
  5. IP tables warning..how to fix it
    By lucy fox in forum Server Management
    Replies: 2
    Last Post: 22nd Apr 2010, 11:04 AM

Tags for this Thread

BE SOCIAL