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

Home » Imported messages » comp.lang.php » part 2 - file exists not working
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: part 2 - file exists not working [message #182896 is a reply to message #182893] Tue, 24 September 2013 16:54 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Lew Pitcher wrote:

> [Thomas 'PointedEars' Lahn] wrote:
>> Lew Pitcher wrote:
>>> noreply(at)example(dot)com wrote:
>>>> Output reseulted in one table row showing with no data.
>>>>
>>>> www.mroldies.met/filetest.php
>>>
>>> If $result is not FALSE, you loop through it using mysql_fetch_array()
>>> or one of it's child functions (mysql_fetch_row or mysql_fetch_assoc())
>>> to retrieve individual rows
>>>
>>> Something like
>>>
>>> while ($row = mysql_fetch_array($result) )
>>> {
>>> printf("atitle: %s\n",$row['atitle']);
>>> printf("btitle: %s\n",$row['btitle']);
>>> /* and so on */
>>> }
>>
>> JFTR: The mysql extension is *deprecated* and will be *removed*:
>>
>> <http://php.net/mysql_fetch_array>
>
> A very valid point that we've repeatedly made to richard.
^^^^^^^
Unfortunately, *that* explains a lot. I have the OP killfiled for address
munging and was not aware of that.

(This was also due to your rather uncommon practice of not including the
name in the attribution line at all, which I would advise against. Postings
are written by *people*, not e-mail addresses. An e-mail address signifies
almost nothing; in the From header field value, it may even specify a
mailbox that is heavy spam-filtered and seldom read, not suitable for
contacting the author. And please skip the attribution novel while you are
at it; it does not make sense, and it makes discussions a lot harder to
read, to duplicate non-essential header information there.

<http://www.netmeister.org/news/learn2quote.html/>)

> And that he has considered and rejected.

Still, IMHO all examples should be written according to what one considers
best common practice. At least they can serve as a recommendation to
others. Bad examples to fix original code are almost as bad as bad original
code. A Usenet posting is written once, but then is distributed, and
archived; thus it is still found much later, and read many times in total,
not only by the OP.

>> Use mysqli or pdo_mysql instead.
>
> Agreed.


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
[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
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
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
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [urgent] need solution of Questions, in context of PHP5
Next Topic: Host recommendations (slightly OT)
Goto Forum:
  

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

Current Time: Sat Nov 23 08:34:56 GMT 2024

Total time taken to generate the page: 0.04904 seconds