View Single Post
  #7  
Old 09-01-2003, 04:56 PM
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then this is the main file that displays the results (I haven't worked on it too much).

PHP Code:
<?php
require('./global.php');
include (
"mainfile.php"); 
$index 1;
global 
$menu_id,$menu,$Pmenu,$activeusers;
$Pmenu="P_thememenu_homepage";
include(
"header.php");
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#333D4D" width="100%">
    <tr>
      <td width="100%" bgcolor="f5f5f5">
<div align="center">
  <center>
      </center>
    </div>
    <div align="center"> 
      <center>
      </center>
    </div>
    <div align="center"> 
      <center>
      </center>
    </div>
    <div align="center"> 
      <p><font size="2" face="Arial, Helvetica, sans-serif"><a href="timeslipadd.php"><font color="123642" class="nf"><b>Add 
        your Timeslip to the Database</b></font></a> </font></p>
    </div> 
<tr> 
  <td width="100%"> <table width="98%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#000000">
      <tr bgcolor="0072BC"> 
        <th> 
          <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a href="TIMESLIP.php?sortby=DRIVER">Driver</a> 
            </font></div></th>
        <!-- the other six headers omitted... -->
        <th> 
          <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a href="TIMESLIP.php?sortby=MAKE">Make</a> 
            </font></div></th>
        <th> 
          <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a href="TIMESLIP.php?sortby=Model">Model</a> 
            </font></div></th>
        <th> 
          <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a href="TIMESLIP.php?sortby=Year">Year</a> 
            </font></div></th>
        <th> 
          <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a href="TIMESLIP.php?sortby=Induction">Power 
            Adder</a> </font></div></th>
        <th> 
          <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a href="TIMESLIP.php?sortby=ET">1/4 
            Mile ET</a> </font></div></th>
        <th> 
          <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a href="TIMESLIP.php?sortby=Trap">Trap 
            Speed</a> </font></div></th>
        <th> 
          <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a href="TIMESLIP.php?sortby=LOCATION">Track 
            Name</a> </font></div></th>
      </tr>
      <? 
if(empty($sortby)) $sortby = "ET"; 
$dbh=mysql_connect ("localhost", "xxx_xx", "xxxxxx") or die ('I cannot connect to the database.');  
mysql_select_db ("xxx_forums");   
$result = @mysql_query("SELECT * FROM TIMESLIPS ORDER BY $sortby");    
if (!$result)  
{      
  echo("<p>Error performing query: " . mysql_error() . "</p>");  
  exit();    
}    
while ($row = mysql_fetch_array($result))  
{  
  $driver = $row["DRIVER"]; 
  $make = $row["MAKE"];
  $model = $row["MODEL"];
$year = $row["YEAR"];
$induction = $row["INDUCTION"];
$et = $row["ET"];
$trap = $row["TRAP"];
$trackname = $row["LOCATION"]; 
?>
      <tr bgcolor="f5f5f5"> 
        <td> 
          <div align="center"> <font color="000000" size="2" face="Arial, Helvetica, sans-serif"> 
            <?=$driver?>
            </font></div></td>
        <!-- six other columns here...-->
        <td> 
          <div align="center"> <font color="000000" size="2" face="Arial, Helvetica, sans-serif"> 
            <?=$make?>
            </font></div></td>
        <td> 
          <div align="center"> <font color="000000" size="2" face="Arial, Helvetica, sans-serif"> 
            <?=$model?>
            </font></div></td>
        <td> 
          <div align="center"> <font color="000000" size="2" face="Arial, Helvetica, sans-serif"> 
            <?=$year?>
            </font></div></td>
        <td> 
          <div align="center"> <font color="000000" size="2" face="Arial, Helvetica, sans-serif"> 
            <?=$induction?>
            </font></div></td>
        <td> 
          <div align="center"> <font color="000000" size="2" face="Arial, Helvetica, sans-serif"> 
            <?=$et?>
            </font></div></td>
        <td> 
          <div align="center"> <font color="000000" size="2" face="Arial, Helvetica, sans-serif"> 
            <?=$trap?>
            </font></div></td>
        <td> 
          <div align="center"> <font color="000000" size="2" face="Arial, Helvetica, sans-serif"> 
            <?=$trackname?>
            </font></div></td>
      </tr>
      <? 

?>
    </table><font size="2" face="Arial, Helvetica, sans-serif"></body></font> 
<font size="2" face="Arial, Helvetica, sans-serif"> 
<?php
echo "<br>"
include(
"footer.php");
?>
</font>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01514 seconds
  • Memory Usage 1,824KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete