In article <002401c1e10d$96850910$e700a8c0@horizon>, 
> Hi guys,
> I've been looking on the net and the php docs for a simple
> mysql query solution, can someone please let me know
> the best way to get the values of a query that only returns 1 record?
> All the select query examples on the net are examples of
> multiple records being returned, and therefor, there is repition
> methods shown.
> For this I don't need any repitition, I just need to know the best
> way to get the DB values from the query into variables.
> Cheers.
> -Mason
A while or similar should still work with only one record; but of course 
you could just drop the while and use the 'enclosed' code just once. If 
you have a particular sample you want to reduce, post it if you need more 

David Robley
Temporary Kiwi!

Quod subigo farinam

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to