Re: Query table / results to an array
| From: | Daniel Brown | Date: | Fri, 29 Feb 2008 19:14:18 +0000 |
| Subject: | Re: Query table / results to an array | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44695@lists.php.net to get a copy of this message | ||
On Fri, Feb 29, 2008 at 12:22 AM, Ron Piggott
<ron.php@actsministries.org> wrote:
> $reference_number = mysql_result($search_result,$i,"reference_number");
> $description = mysql_result($search_result,$i,"description");
<?
$sql = "SELECT reference_number FROM table WHERE this='whatever' OR
that NOT LIKE '%whatever%' LIMIT 0,1";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
Just mind the line-wrapping in this message. ;-P
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>