As an experienced programmer I recommend that new
programmers do NOT use this function.
Use mqsql_fetch_array instead.
Using this function leads to code like:
<?php
$surname = $row[7];
?>
This is a dangerous coding practice and should be avoided.
Changing the original query can break existing code, often
in subtle ways that leave 'sleeper' bugs in your system that
take months to appear.
Using mysql_fetch_array allows you to write code like:
<?php
$surname = $data['surname'];
?>
This code will continue to run properly even columns are
added to the originial query.
Also it is much easier to read and makes reading and
modiying your code easier, reducing bugs.
Mark McIlroy
----
Server IP: 203.16.234.20
Probable Submitter: 203.24.6.121
----
Manual Page -- http://www.php.net/manual/en/function.msql-fetch-row.php
Edit -- https://master
.php.net/note/edit/78387
Del: integrated -- h
ttps://master.php.net/note/delete/78387/integrated
Del: useless -- http
s://master.php.net/note/delete/78387/useless
Del: bad code -- htt
ps://master.php.net/note/delete/78387/bad+code
Del: spam -- https:/
/master.php.net/note/delete/78387/spam
Del: non-english --
https://master.php.net/note/delete/78387/non-english
Del: in docs -- http
s://master.php.net/note/delete/78387/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78387
Reject -- https://mast
er.php.net/note/reject/78387
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|