Re: from mysql in associative array [message #183976 is a reply to message #183972] |
Sat, 30 November 2013 01:29 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 11/29/2013 5:26 PM, Ben Bacarisse wrote:
> Thomas 'PointedEars' Lahn <PointedEars(at)web(dot)de> writes:
>
>> Tony Mountifield wrote:
>>> I wrote:
> <snip>
>>>> $sh = mysql_query("SELECT id,value FROM mytable", $db);
>>
>> Unwise, see below.
>>
>>>> if ($sh) {
>>
>> Insufficient, RTFM.
>
> Can you say why?
>
> <snip>
>
Don't mind Pointed Head. He is unable to provide an intelligent
response to your question.
It actually is quite OK, because mysql_query will either return a
resource (which will always be non-false) or false.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|