Jump to content

p2grace

Members
  • Posts

    1,024
  • Joined

  • Last visited

    Never

Posts posted by p2grace

  1. Try the following, it'll display mysql errors and php errors.

     

    <?php
    
    /* Enable displaying of errors */
    error_reporting(E_ALL);
    ini_set('display_errors', 'On');
    
    $cat = (int) $_GET['cat'];
    $get_items = "SELECT * FROM poj_products WHERE cat='$cat'";
    $get_items = mysql_query($get_items);
    if($get_items){
    $item_row = mysql_fetch_assoc($get_items);
    echo '<a href="'.$sitelocation.$item_row['url'].'?item_desc='.$item_row['id'].'>view details/order</a>';
    }else{
    die("Unable to connect to database.".mysql_error());
    }
    
    ?>
    

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.