Re: Posting a variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



siavash1979@xxxxxxxxx wrote:

Quoting Robert Cummings <robert@xxxxxxxxxxxxx>:

On Wed, 2007-04-11 at 09:59 -0700, siavash1979@xxxxxxxxx wrote:
1- your mysql query statement is better to have a WHERE part too.
2- I would use mysql_fetch_row instead of mysql_fetch_assoc
Ummm, why would you want to reduce clarity and maintainability by using
mysql_fetch_row()?

hmmm, I just remember in my php class a while back, my teacher didn't even
bother teaching us about mysql_fetch_assoc, and when a student asked about it,
he said don't bother using it, just use mysql_fetch_row so I ended up using this
function ever since. I'm guessing he was wrong??

Not 'wrong', but half the PHP developers out there would disagree with him apparently:

http://www.php-mag.net/magphpde/magphpde_news/psecom,id,27094,nodeid,5.html

Cheers,

Rich
--
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux