note 13733 added to ref.mysql.php

From: Date: Sat, 30 Jun 2001 03:41:34 +0000
Subject: note 13733 added to ref.mysql.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14811@lists.php.net to get a copy of this message
It looks like the reason for the double vision is so that when you want to use the sql results, you can call the array elements via either indices (e.g. $line[0], $line[1], etc.) or by their database field names (e.g. $line["uid"], $line["pw"], $line["gid"], etc.). You can see this by changing the example to print $col_name as well as $col_value. Each repeated val shows up with a different key (of course) each time. http://www.php.net/manual/en/ref.mysql.php

« previous php.notes (#14811) next »