Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2008
    Posts
    682
    Thanks
    114
    Thanked 2 Times in 2 Posts

    Help with mimicking a script

    I'm trying to mimick this script that I found on a web page and wondered if anyone can help me.

    The page that I'm trying to mimmick is located here: http://epw.e-wrestling.org/titlehistories.php?id=1

    PHP Code:
    <?php
    // Connects to your Database
    $link mysql_connect("?""?""?") or die(mysql_error());
    mysql_select_db("?",$link) or die(mysql_error());
     
    if (!
    mysql_select_db("?"$link)) {
    echo 
    'Could not select database';
    exit;
    }

    //Define the query
    $query "SELECT * FROM titlehistory";

    if (
    $r mysql_query ($query)){ // Run the query. 


    print '<table border=0 cellspacing="0" cellpadding=3 width=575>';
    print 
    '<tr><td background="images/bg_bar4.gif" height=35>&nbsp;<font color="white">Title Histories</font></td></tr>';
    print 
    '<tr><td></td></tr>';
    print 
    '</table>';
    print 
    '<table border=0 cellspacing="0" cellpadding=3 width=575>';
    print 
    '<tr><td background="images/bg_bar3.gif" height=35 colspan=2>&nbsp;KOW '.$row['titlename'].'</td></tr>';
    print 
    '<tr><td width=200><img src="/images/' $row['titleimage'] . '" width=208px height=156px border=0 alt="View KOW '.$row['titlename'].' History"></td><td valign=top>';
    print 
    '<table cellpadding="2" cellspacing="0" border="0" width=100%>';
    print 
    '<tr><td align=center bgcolor=#E0E0E0><b>Date Created</b></td></tr><tr><td align=center>'.$row['datecreated'].'</td></tr>';
    print 
    '<tr><td bgcolor=#E0E0E0 align=center><b>Status</b></td></tr>';
    print 
    '<tr><td align=center>'.$row['status'].'</font></td></tr>';
    print 
    '<tr><td bgcolor=#E0E0E0 align=center><b>Longest Reign</b></td></tr>';
    print 
    '<tr><td align=center><a href=bio.php?'.$row['longestreign'].'><b>'.$row['longestreign'].'</b></a> ('.$row['numdays'].')</td></tr>';
    print 
    '<tr><td bgcolor=#E0E0E0 align=center><b>Most Successful Defenses</b></td></tr>';
    print 
    '<tr><td align=center><a href=bio.php?'.$row['sucessdefenses'].'><b>'.$row['sucessdefenses'].'</b></a> ('.$row['numdef'].')</td></tr>';
    print 
    '</table>';


    } else {
    die (
    '<p>Could not retrieve the data because <b>' mysql_error() . '</b>. The query was $query.</p>');
    //End of query IF 
    ?>

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Is that code you provided ripped from the website? Or if not then what part are you trying to copy? If its the whole site, your talking months of work and over 50,000 lines of coding I am sure.

  • #3
    Regular Coder
    Join Date
    Jun 2008
    Posts
    682
    Thanks
    114
    Thanked 2 Times in 2 Posts
    I'm just trying to do just that script and yes I took it from the website and things that would be taken from the database I made a space in mine for it.

  • #4
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    So which part of the website are you trying to copy?

  • #5
    Regular Coder
    Join Date
    Jun 2008
    Posts
    682
    Thanks
    114
    Thanked 2 Times in 2 Posts
    That's just one script. Well for now I guess. http://kansasoutlawwrestling.com/titlehistory.php

    That page shows all my titles and when you scroll over one is shows http://kansasoutlawwrestling.com/tit...?id="whatever"

    I want that to show all the titles info just like i did on http://kansasoutlawwrestling.com/titlehistory3.php


  •  

    Posting Permissions

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