Re: mysql

From: Date: Wed, 10 Apr 2002 11:45:54 +0000
Subject: Re: mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92369@lists.php.net to get a copy of this message
In article <002401c1e10d$96850910$e700a8c0@horizon>, mason@section31.com.au says... > 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 help. -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#92369) next »