Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
Dawg
RavenNuke(tm) Development Team



Joined: Nov 07, 2003
Posts: 928

PostPosted: Tue Mar 03, 2009 10:40 pm Reply with quote

I am just starting to work on a Drag Strip MOD and I want to make sure I have this right before I rock on. Would someone point me in the right direction. I know how to do it the old way....but this conversion thing has me scratching my head and I want to do it right....

Is this correct?
Code:
$querystr = "SELECT Car_id,date,quarter_et,eighth_et,quarter_mph,eighth_mph,three_ft,sixty_ft,slip_one,track FROM ".$prefix."_drag_times ORDER BY Car_id" ;

   $resultcars = $db->sql_query($querystr)
   or die ("invalid query in car display");
while (list($Car_id,$date,$quarter_et,$eighth_et,$quarter_mph,$eighth_mph,$three_ft,$sixty_ft,$slip_one,$track) = mysql_fetch_row($resultcars)) {
   $h=count($resultcars);
   $i=0;
      while($i < count($resultcars)) {
   
 
View user's profile Send private message
horrorcode
Involved
Involved



Joined: Jan 17, 2009
Posts: 272
Location: Missouri

PostPosted: Tue Mar 03, 2009 10:57 pm Reply with quote

From conversions the most obvious is this:

Code:
= mysql_fetch_row($resultcars)) { 


Should be:

Code:
= $db->sql_fetchrow($resultcars)) { 


The rest is too advanced to my brain.
 
View user's profile Send private message
Dawg







PostPosted: Wed Mar 04, 2009 6:45 am Reply with quote

COOL! Thank You for youe time! Just trying to get off to the right start!

Dawg
 
horrorcode







PostPosted: Wed Mar 04, 2009 7:28 am Reply with quote

I forgot this might help too: http://www.ravenphpscripts.com/posts16627-highlight-dbi.html
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©