SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Help Need

  1. #1
    SitePoint Member
    Join Date
    Sep 2004
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help Need

    My problem is where should I add the google ad code if I want the ad to diaplay just on top of the "The Chase Travel Rewards" at the page of
    http://www.creditcardi.org/list.php?card=Airline

    My coding of list.php as below :
    <?
    require_once("functions/db_connect.php");
    //Featured card stuff

    require_once("functions/newsletter.php");
    require_once("functions/display_card.php");
    require_once("sitevars.php");

    $result_cardlist = mysql_query("SELECT * FROM cardlist WHERE status != 2 ");
    $disp = "all cards";

    if (isset($card) && $card!="all")
    {
    $result_cardlist = mysql_query("SELECT * FROM cardlist WHERE category='$card' AND status != 2 OR subcategory_1='$card' OR subcategory_2='$card' ORDER BY srank ASC");
    $disp = $card;
    }

    if (isset($credit))
    {
    $result_cardlist = mysql_query("SELECT * FROM cardlist WHERE rating='$credit' AND status != 2 ORDER BY srank ASC");
    $disp = $credit;
    }

    if (isset($type))
    {
    $result_cardlist = mysql_query("SELECT * FROM cardlist WHERE issuer='$type' AND status != 2 ORDER BY srank ASC");
    $disp = $type;
    }

    if (isset($apr))
    {
    if ($apr == 0)
    $result_cardlist = mysql_query("SELECT * FROM cardlist WHERE apr >= 0 AND apr < 5 AND status != 2 ORDER BY srank ASC");
    if ($apr == 5)
    $result_cardlist = mysql_query("SELECT * FROM cardlist WHERE apr >= 5 AND apr < 10 AND status != 2 ORDER BY srank ASC");
    if ($apr == 10)
    $result_cardlist = mysql_query("SELECT * FROM cardlist WHERE apr >= 10 AND apr < 15 AND status != 2 ORDER BY srank ASC");
    if ($apr == 15)
    $result_cardlist = mysql_query("SELECT * FROM cardlist WHERE apr >= 15 AND status != 2 ORDER BY srank ASC");

    $disp = "APR";
    }


    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title><? echo $sitename; ?></title>
    <meta name="title" content="Online Credit Card List">
    <meta http-equiv="Content-Type" content="text/html; iso-8859-1">
    <meta http-equiv="Pragma" content="cache">
    <meta http-equiv="Content-Language" content="en">
    <meta name="ROBOTS" content="INDEX,FOLLOW">
    <meta name="description" content="Credit Card Applications for every occassion. Student, low interest, prepaid and more!">
    <meta name="keywords" content="credit card applications">
    <meta name="publisher" content="<? echo $sitename2; ?>">
    <meta name="copyright" content="ęCopyright 2004, <? echo $sitename2; ?>">
    <meta name="rating" content="General">
    <meta name="creation_Date" content="05/03/2004">
    <meta name="revisit-after" content="2 days">
    <meta name="doc-rights" content="Copywritten Work">
    <meta name="doc-class" content="Completed">
    <meta name="MSSmartTagsPreventParsing" content="true">
    </head>
    <link href="main.css" rel="stylesheet" type="text/css">
    <body leftmargin="0" topmargin="0" bgcolor="#5F6378" style="background-repeat: repeat-x">
    <div align="center">
    <table width="765" border="0" cellspacing="0" cellpadding="0" style="border:solid;border-width:1;border-color:#000000">
    <tr>
    <td><? require_once("top.php"); ?></td>
    </tr>
    <tr>
    <td background="images/credit-card-8.gif"><table width="765" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="104" style="border-bottom:solid;border-bottom-width:1;border-bottom-color:#000000"><img src="images/credit-card-4.gif"></td>
    <td bgcolor="#FFFFFF" style="border-bottom:solid;border-bottom-width:1;border-bottom-color:#000000">view
    credit cards (<? echo $disp; ?>) </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td bgcolor="#FFFFFF"><table width="765" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="<? echo $leftwidth; ?>" valign="top" align="center"><? require_once("main_menu.php"); ?></td>
    <td align="center" valign="top" width="<? echo $mainwidth; ?>"><table width="<? echo $mainwidth; ?>" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="<? echo $mainwidth; ?>" height="7"></td>
    </tr>
    <tr>
    <td bgcolor="#FFFFFF" align="right" valign="top"><table width="583" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td align="center"><br>
    <table width="510" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><div align="center">
    <table width="90%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <?
    $cardnum = mysql_num_rows($result_cardlist);
    if ($cardnum > 0)
    for($i=0;$i<$cardnum;$i++)
    {
    $temp_array = mysql_fetch_array($result_cardlist);
    display_card($temp_array);
    }
    else
    echo "No cards found.";
    ?>
    </td>
    </tr>
    </table>
    </div></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table> </td>
    </tr>
    </table></td>
    </tr>
    </table>

    </td>
    </tr>
    </table>

    </td>
    </tr>
    <tr>
    <td bgcolor="#FFFFFF"><div align="center"><br>
    <? require_once("functions/footer.php"); ?></div></td>
    </tr>
    </table>
    </div>
    <div align="center">
    <? require_once("functions/popup.php"); ?>
    <font size="1">
    <?
    $email_result = mysql_query("SELECT data FROM misc WHERE id='2'");
    $email = mysql_result($email_result,0,"data");

    ?>
    <a href="mailto? echo $email; ?>"><font color="#FFFFFF">Contact Us</font></a><font color="#FFFFFF">
    - Copyright 2004, <? echo $sitename; ?><br>
    <br>
    </font></font></div>
    </body>
    </html>

  2. #2
    SitePoint Evangelist luxinterior's Avatar
    Join Date
    Aug 2004
    Location
    Here, there and everywhere!
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will take a bit of trial and error but if you put another row above this line

    <tr>
    <td><? require_once("top.php"); ?></td>
    </tr>

    you'll be in the right area.

    regards

    Lux

  3. #3
    SitePoint Member
    Join Date
    Sep 2004
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much Lux, will try to see whether it works

    thanks again


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
  •