The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am close to finishing a project I am working on. Here is the issue, I have a table that holds r_id,race_name, name, et, and mph. I have the sort down:
PHP Code:
PHP Code:
my question is how do I sanitize the $db->mysql_read so I can enter the name in the proper qualifying position? Any ideas? |
#2
|
|||
|
|||
![]()
well if im reading this correctly it would be easier to do a while and a for loop i would change your results table to have this race name and driver as the primary keys and have another field called position. that would do it in my opinion.
|
#3
|
|||
|
|||
![]()
Well the results table is setup with race_name, name but no position with race name as primarary key. The qualifying table has race name and name.
question is how would the while and for loop look. I am bit new to PHP. I can set up the while loop it would be : PHP Code:
|
#4
|
|||
|
|||
![]() Quote:
PHP Code:
|
#5
|
|||
|
|||
![]()
Thanks......
So where $n = $rows['name']; thats going to select the first name first time through, then the second name the second time though, etc..... If I read the $racering["$n"] = $rows; that will tell me how many rows. Correct? or ist putting the name in racering? Would the query look like: PHP Code:
|
#6
|
|||
|
|||
![]()
Help.......This doesn't seem to work....
Here's what I trying to do. I have a table called qualifying and it's set up as follows: r_id name et mph I am trying to move the top 16 names into a table called round1 which is set up as follows r_id r1_name_rd1 r3_name_rd1 r3_name_rd1 r4_name_rd1 r5_name_rd1 r6_name_rd1 r7_name_rd1 r8_name_rd1 r9_name_rd1 r10_name_rd1 r11_name_rd1 r12_name_rd1 r13_name_rd1 r14_name_rd1 r15_name_rd1 r16_name_rd1 I am having the hardest time that will get a query to work on this one. This is the very last thing to do before the mod is finished. Can one of the GURU's please help. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|