Jump to content

Repeat region


pumaf1

Recommended Posts

Hia All (again),

I can get a list of what i want like this:

http://www.pumaf1.org.uk/res/infobase/driverall.php (but it need tweaking - under another topic)

 

now i have got it to go to the results page (took me ages)

the code:

 <?php   
   // connect to the server
   mysql_connect( 'localhost', '', '' )
      or die( "Error! Could not connect to database: " . mysql_error() );
   
   // select the database
   mysql_select_db( '' )
      or die( "Error! Could not select the database: " . mysql_error() );
   
   // get the id from the URL request
   $name = $_REQUEST['name'];

   // retrieve the row from the database
   $query = "SELECT * FROM `infobase` WHERE `name`='$name'";
   
   $result = mysql_query( $query );

   // print out the results
   if( $result && $contact = mysql_fetch_object( $result ) )
   {
      // print out the info
      $name = $contact -> name;
      ?>

 

no what i want it to do is query the db and bring out all of the records for that driver as defined in $name, for the wholeof that drivers career but limited to a certain number of records.

 

again anyone that can help please do!

 

thanks

Link to comment
Share on other sites

sorry this is what I mean

 

1 - you select a driver - for example Berger, Gerhard from this page - http://www.pumaf1.org.uk/res/infobase/driverall.php

2 - the system then takes you to a page - (which it does)

3 - what it should do is - select ALL the races the driver has driven. (I want to expand on this to limit it to say 50 records per page)

 

hope that helps show you want i want it to do.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.