help, better method of retrieving data than fetch_array

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
pHaZed
Forum Commoner
Posts: 28
Joined: Wed May 01, 2002 2:44 am
Location: Sydney -AU

help, better method of retrieving data than fetch_array

Post by pHaZed »

Hi,
Im stuck at this point...
Im looking for a simpler way of retrieving data and setting it as a string.
eg:
I have a table with a row that has a filename in it (contact.php)
i want to retrieve that row and echo it in here
include("filename");

The reason mysql_fetch_array is out of the question is because i dont and cant use a loop for this.
Any help much appreciated
User avatar
cwcollins
Forum Commoner
Posts: 79
Joined: Thu May 16, 2002 3:51 pm
Location: Milwaukee, WI, USA

Re: help, better method of retrieving data than fetch_array

Post by cwcollins »

if the your result set is only one record, you can still use fetch_aray without looping.

-c.w.collins
Post Reply