- 6,668

- California
- Axidwulv
Ok, if you know anything about php, i would greatly appreciate you writing a piece of code for me! Thanks in advance...
---------------
I want it to:
1. Read in stuff from a row in a mysql table and set it as $var
2. Set variables for each column (ex (column name, [set to] variable): title, $title - content, $content - name, $name)
2. Check if "{string}" exists in $content (from data read in from table)
3. If "{string}" exists, read in all data from another mysql db table (sorted: descending by racerpoints column) (db name: season1 & table name: racerinfo)
4. Replace "{string}" with all the data from the racerinfo table, and replace "{string}" with the data read in from it (each row, in this format: <tr><td>racername(column) racercar(column) racerpoins(column)</td></tr>)
5. Print it out for the user to see
----------------
I hope you get what i am trying to do!!! I do..
---------------
I want it to:
1. Read in stuff from a row in a mysql table and set it as $var
2. Set variables for each column (ex (column name, [set to] variable): title, $title - content, $content - name, $name)
2. Check if "{string}" exists in $content (from data read in from table)
3. If "{string}" exists, read in all data from another mysql db table (sorted: descending by racerpoints column) (db name: season1 & table name: racerinfo)
4. Replace "{string}" with all the data from the racerinfo table, and replace "{string}" with the data read in from it (each row, in this format: <tr><td>racername(column) racercar(column) racerpoins(column)</td></tr>)
5. Print it out for the user to see
----------------
I hope you get what i am trying to do!!! I do..