SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Link

  1. #1
    SitePoint Addict joyce's Avatar
    Join Date
    Aug 2001
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link

    i have link, which link to another page. when i try it on localhost, it works but when i upload, it didn't work. when i clicked on that link, it goes to a blank page. no errors..nothing at all. wat caused that problem?

  2. #2
    SitePoint Zealot sonique's Avatar
    Join Date
    Sep 2001
    Location
    Missouri [U.S.]
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    show us the code
    jmulder[THE MENTOR]'s nice guy online!
    Rig: AMD Athlon 800mhz; 384mb SDRam; 32mb nVidia @ 1024x768; ie 6; Windows ME; 15 gig; Cd-RW

  3. #3
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup it' help so much more if you could show us the code...

  4. #4
    SitePoint Addict joyce's Avatar
    Join Date
    Aug 2001
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is the url when i clicked:

    http://www.certifyexpress.com/review...cc509a6f75849b

    and this is the code:

    echo "<a href=\"edit_admin_img.php?id=".$data[$i][0]."&image=".$data[$i][2]."&cat=".$data[$i][1]."&subcat=".$data[$i][2]."&flag=$flag\">Edit Image</a";

  5. #5
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, how bout the whole code, not just that link.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*

  6. #6
    SitePoint Addict joyce's Avatar
    Join Date
    Aug 2001
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is the whole code:

    <?

    include("../includes/dbConnect.php");
    include("../includes/reviewClass.php");
    echo "<form name=disimage method=post>";
    if ($flag==md5(1))
    {
    echo "<div align=right><font face=verdana size=1><a href=../admin/ad_main.php?flag=$flag>Add Categories</a> | \n";
    echo "<a href=../admin/crt_mod.php>Create Moderator</a> | \n";
    echo "<a href=../admin/user_review.php>User's Review</a> | \n";
    echo "<a href=../admin/mod_review.php>Moderator's Reviews</a> | \n";
    echo "<a href=../admin/ad_login.php>LogOut</a> \n</font></div>";
    }else if ($flag == md5(2))
    {
    echo "<div align=right><font face=verdana size=1><a href=../admin/ad_main.php?flag=$flag>Add Categories</a> | \n";
    echo "<a href=../admin/ad_login.php>LogOut</a> \n</font></div>";
    }

    echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
    echo "<tr>";
    echo "<td width=65% valign=top>";
    echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
    echo "<tr>";
    echo "<td width=100%>";
    echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
    echo "<tr>";
    echo "<td width=100%>";
    echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
    echo "<tr>";
    echo "<td width=150 bgcolor=#000000><font color=#FFFFFF size=2 face=verdana, arial><b>&nbsp;</b></font><b><font size=2 face=Verdana color=#FFFFFF>Reviewed Books&nbsp;</font></b></td>";
    echo "<td>&nbsp;</td>";
    echo "</tr>";
    echo "</table>";
    echo "</td>";
    echo "</tr>";
    echo "<tr>";
    echo "<td width=100% height=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
    echo "</tr>";
    echo "</table>";
    echo "</td>";
    echo "</tr>";
    echo "</table>";
    echo "</td>";
    echo "</tr>";
    echo "</table>";


    if ($flag == md5(1) || $flag == md5(2))
    {
    array_cat();
    if ($cat == '')
    $cat = "---- Books ----";

    echo "<table border=0 width=100%><tr><td width=30%><font face='verdana' size='1'>Please select a category and a sub category/font></td>";
    echo "<input type=hidden name=history1 value='$cat'>";
    echo "<input type=hidden name=history2 value='$subcat'>";
    }

    echo "<td>";
    if ($flag== md5(1) || $flag==md5(2))
    select_subcat($cate,"cat","onchange='this.form.submit()'",$cat, 1);

    if (($flag == md5(3)) || ($cat != "---- Books ----" && $cat != "--- Hardware ---" && $cat != " "))
    {
    if ($flag== md5(1) || $flag==md5(2))
    {
    if ($history1 != $cat)
    {
    select_subcat($subcate,"subcat","onchange='this.form.submit()'",$cat, 0);
    $subcat = '';
    }
    else
    select_subcat($subcate,"subcat","onchange='this.form.submit()'",$cat, 0, $subcat);
    }

    $table = "cat_review";
    $field = "*";
    $criteria = "where cat_cat='$cat' ";
    if ($subcat != '')
    $criteria .= " and cat_subcat='$subcat' ";
    $criteria .= "order by ID desc";
    $getdata=$review_obj->get_data($table, $field, $criteria);
    $data=$getdata[0];
    $numrows=$getdata[1];


    }else
    $numrows = 0;

    echo "</td></tr></table>";

    if ($numrows > 0)
    {
    for ($i=0; $i < $numrows; $i++)
    {
    $id = $data[$i][0];
    $cat = $data[$i][1];
    $subcat = $data[$i][2];
    $title = $data[$i][3];
    $desc = $data[$i][4];
    $image = $data[$i][5];

    echo"<table width=100% border=0 cellpadding=0 cellspacing=0>";
    if ($flag == md5(1))
    {
    echo "<div align=right><font face=verdana size=1><a href =\" http://www.certifyexpress.com/review...eview.php?gid=$id&cat=$cat&title=$title&subcat=$subcat\">Write a review</a>&nbsp;|&nbsp;</font>";
    echo "<font face=verdana size=1><a href=\"edit_admin_main.php?id=".$data[$i][0]."&cat=".$data[$i][1]."&subcat=".$data[$i][2]."&title=".$data[$i][3]."&desc=".$data[$i][4]."&flag=$flag\">Edit</a>&nbsp;|&nbsp;</font>";
    echo "<font face=verdana size=1><a href=\"edit_admin_img.php?id=".$data[$i][0]."&image=".$data[$i][2]."&cat=".$data[$i][1]."&subcat=".$data[$i][2]."&flag=$flag\">Edit Image</a>&nbsp;|&nbsp;</font>";
    echo "<font face=verdana size=1><a href=\"del_admin_main.php?id=".$data[$i][0]."&flag=$flag&do='Delete'\">Delete</a></font></div>";
    echo "</table>";
    }
    else if ($flag == md5(2))
    {
    echo "<div align=right><font face=verdana size=1><a href =\" http://www.certifyexpress.com/review...eview.php?gid=$id&cat=$cat&title=$title&subcat=$subcat\">Write a review</a>&nbsp;|&nbsp;</font>";
    echo "<font face=verdana size=1><a href=\"edit_mod_main.php?id=".$data[$i][0]."&cat=".$data[$i][1]."&subcat=".$data[$i][2]."&title=".$data[$i][3]."&desc=".$data[$i][4]."&flag=$flag\">Edit</a>&nbsp;|&nbsp;</font>";
    echo "<font face=verdana size=1><a href=\"edit_admin_img.php?id=".$data[$i][0]."&image=".$data[$i][2]."&cat=".$data[$i][1]." &subcat=".$data[$i][2]."&flag=$flag\">Edit Image</a></font>";
    echo "</table>";
    }
    else
    echo "<tr><td colspan=3 align=right><font face=verdana size=1><a href =\" http://www.certifyexpress.com/review..._main.php?gid=$id&cat=$cat&title=$title&subcat=$subcat\">Write a review</a></font>";
    echo "</td></tr></table>";
    echo"<table width=100% border=0 cellpadding=1 cellspacing=1>";
    echo "<tr><td width=13%>";
    echo"<table width=100% border=0 cellpadding=1 cellspacing=1>";
    $image = "/review/img/".$data[$i][5];
    echo "<tr><td width=100% rowspan=2><img src=\"$image\" border=0></a>\n</td></tr>";
    echo "</table>";
    echo "<td width=87% valign=top>";
    echo "<table width=100% border=0>";
    echo "<tr><td width=100%>";
    echo "<font face=verdana size=1><b><u>$title</u></b></font>&nbsp;<font face=verdana size=1>($subcat-$cat)</font></td></tr>";
    //echo "<tr><td width=100%><font face=verdana size=1><b><i>$title</i></b></font></td></tr>";
    echo "<tr><td><font face=verdana size=1>$desc</font></td></tr>";

    echo "</table>";
    echo "</td></td></tr>";
    echo "</table>";


    //admin_view($id);
    //mod_view($id);
    //user_view($id);

    }

    }
    else if (($numrows==0) && ($cat != "---- Books ----" && $cat != "--- Hardware ---" && $cat != " "))
    {
    echo "<br><table border=0 width=100%><tr><td align=center><font face=verdana size=1>No records are found!</font></td></tr></table>";
    }
    echo "</form>";
    ?>


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
  •