FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » from mysql in associative array
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: from mysql in associative array [message #183976 is a reply to message #183972] Sat, 30 November 2013 01:29 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  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
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Regarding split text and match from data base
Next Topic: Review Copies Available for Learning FuelPHP for Effective PHP Development
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 03:51:09 GMT 2024

Total time taken to generate the page: 0.03953 seconds