Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    help question Blank Page :O Please HELP

    I have created the following PHP file in order to get some information, after i extract this info i will make some more modifications in order to have the following data in a marquee on my homepage .

    When i call the PHP file i get only a blank page....

    Can you please help?????

    PHP Code:
    <?php

     
    require('includes/application_top.php');

     
        global 
    $db;
          
    $gal_sql "SELECT T0.products_id, T1.products_name, T0.products_model, T0.products_image, T0.products_price
    FROM zc_products T0 inner join zc_products_description T1 on T0.products_id = T1.products_id
    WHERE T0.products_model NOT LIKE  '#%' "
    ;

       
          
        
         
    $gal_sql_result = @mysql_query ($gal_sql) or die (mysql_error()); 
        
          
         
    while (
    $row mysql_fetch__array($gal_sql_result)) {
          
    $gal_prod_id $row['T0.products_id'];
          
    $gal_prod_name $row['T1.products_name'];
          
    $gal_prod_model $row['T0.products_model'];
          
    $gal_prod_img $row['T0.products_image'];
          
    $gal_prod_prc $row['T0.products_price'];
          
          echo 
    "<TR><TD>$gal_prod_id</TD><TD>$gal_prod_name</TD><TD>$gal_prod_model</tr><tr><td>$gal_prod_img</td></tr><tr><td> $gal_prod_prc</td></tr>";
    }   
     
    ?>

  2. #2
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    red flag Blank Page :O Please HELP

    I have created the following PHP file in order to get some information, after i extract this info i will make some more modifications in order to have the following data in a marquee on my homepage .

    When i call the PHP file i get only a blank page....

    Can you please help?????

    PHP Code:
    <?php

     
    require('includes/application_top.php');

     

     global 
    $db;
        
          
    $gal_sql mysql_query("SELECT T0.products_id, T1.products_name, T0.products_model, T0.products_image, T0.products_price
    FROM zc_products T0 inner join zc_products_description T1 on T0.products_id = T1.products_id
    WHERE T0.products_model NOT LIKE  '#%' "
    ) or sqlerr(__FILE____LINE__);

     
    $gal_sql_result mysql_fetch_assoc($gal_sql) or die("No Products");
         while (
    $gal_sql_result mysql_fetch_array($gal_sql)) {
          
    $gal_prod_id $gal_sql_result[T0.products_id];
          
    $gal_prod_name $gal_sql_result[T1.products_name];
          
    $gal_prod_model $gal_sql_result[T0.products_model];
          
    $gal_prod_img $gal_sql_result[T0.products_image];
          
    $gal_prod_prc $gal_sql_result[T0.products_price];
          
          echo 
    "<TR><TD>$gal_prod_id</TD><TD>$gal_prod_name</TD><TD>$gal_prod_model</tr><tr><td>$gal_prod_img</td></tr><tr><td> $gal_prod_prc</td></tr>";

          }

    ?>
    <tr>
    <td align='center'><?=$gal_prod_id;?><?=$gal_prod_name;?></td>
    </tr>

  3. #3
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    Default Re: Blank Page :O Please HELP

    i have changed it to this but still nothing....

    PHP Code:
    <?php 

     
    require('includes/application_top.php'); 

      

     global 
    $db
         
          
    $gal_sql mysql_query("SELECT T0.products_id, T1.products_name, T0.products_model, T0.products_image, T0.products_price 
    FROM zc_products T0 inner join zc_products_description T1 on T0.products_id = T1.products_id 
    WHERE T0.products_model NOT LIKE  '#%' "
    ) or sqlerr(__FILE____LINE__); 

     
    $gal_sql_result mysql_fetch_assoc($gal_sql) or die("No Products"); 
         while (
    $gal_sql_result mysql_fetch_array($gal_sql)) { 
          
    $gal_prod_id $gal_sql_result[T0.products_id]; 
          
    $gal_prod_name $gal_sql_result[T1.products_name]; 
          
    $gal_prod_model $gal_sql_result[T0.products_model]; 
          
    $gal_prod_img $gal_sql_result[T0.products_image]; 
          
    $gal_prod_prc $gal_sql_result[T0.products_price]; 
           
          echo 
    "<TR><TD>$gal_prod_id</TD><TD>$gal_prod_name</TD><TD>$gal_prod_model</tr><tr><td>$gal_prod_img</td></tr><tr><td> $gal_prod_prc</td></tr>"

          } 

    ?> 
    <tr> 
    <td align='center'><?=$gal_prod_id;?><?=$gal_prod_name;?></td> 
    </tr>

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Blank Page :O Please HELP

    There's a Tutorial/FAQ on finding the causes of blank pages, which can be found by searching the Tutorials section for "blank page" ... pretty neat, huh? https://www.zen-cart.com/tutorials/index.php?article=82

    Your use of short-open-tags is probably a contributor to the problem.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    Default Re: Blank Page :O Please HELP

    Quote Originally Posted by DrByte View Post

    Your use of short-open-tags is probably a contributor to the problem.
    What is short-open-tags ???

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Blank Page :O Please HELP

    Googling "short open tags php" brings up this link as the first result, which answers that question: http://php.net/manual/en/ini.core.ph...short-open-tag
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    Default Re: Blank Page :O Please HELP

    i do not understand why using <?php and ?> might cause any problems.... is there any other way that i should do it ?

 

 

Similar Threads

  1. v150 Admin page Blank - Please Help!
    By missnura_com in forum General Questions
    Replies: 4
    Last Post: 16 Feb 2012, 11:13 PM
  2. Blank store page Please help
    By EagerStudent in forum General Questions
    Replies: 4
    Last Post: 4 Sep 2009, 07:42 PM
  3. Blank Page Please Help!!!
    By waterfire in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 May 2009, 06:26 PM
  4. Urgent.. Please Help Blank Page
    By mthem2003 in forum General Questions
    Replies: 3
    Last Post: 5 May 2008, 10:53 PM
  5. Page is blank please help
    By simetra in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 21 Jan 2007, 02:23 AM

Posting Permissions

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