Ok, I've been researching and I found a script which works....However, it's pulling every single record. I want the script to parse the "title" column and only retrieve the records of player names.
Example
The column "title" in the table has "Bob Smith vs John Doe Apr 1, 2012 hockey team vs hockey team". I want only records which have the name "John Doe" in it. I don't want, any records besides John Doe's.
Thank you for any help. It's greatly appreciated.Code:<?php // Make a MySQL Connection mysql_connect("10.x.xx.xx", "un", "pw") or die(mysql_error()); mysql_select_db("mydbname") or die(mysql_error()); // Get all the data from the "_mytables" table $result = mysql_query("SELECT * FROM _mytables") or die(mysql_error()); echo "<table border='1'>"; echo "<tr> <th>Fight Matchup</th> <th>Fight Video</th> </tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table echo "<tr><td>"; echo $row['title']; echo "</td><td>"; echo $row['link']; echo "</td></tr>"; } echo "</table>"; ?>



Reply With Quote


Bookmarks