note 34695 deleted from function.msql-data-seek by didou
| From: | didou@php.net | Date: | Mon, 04 Aug 2003 11:55:03 +0000 |
| Subject: | note 34695 deleted from function.msql-data-seek by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53315@lists.php.net to get a copy of this message | ||
Note Submitter: souless (at) swiftsilence (dot) com
----
mysql_select_db("$database") or die("couldn't open db");
$result=mysql_query("SELECT * FROM $columnname") or die ("couldn't find
column");
// Load the database and select all data from the column that you want
$row_max=mysql_num_rows($result)-1;
// Decrease value by one because zero is the first array number
// Insert code here to validate/manipulate current $selected_row
if ( mysql_data_seek($result,$selected_row) != true ) die ("couldn't locate row");
// Seek to place position at $selected_row
$row_data = mysql_fetch_row($result);
//Read the data from $selected_row