Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
Moderator: General Moderators
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Wed Jul 26, 2006 5:51 pm
I REALLY like it. I already used it. LOL
julian_lp
Forum Contributor
Posts: 121 Joined: Sun Jul 09, 2006 1:00 am
Location: la plata - argentina
Post
by julian_lp » Thu Jul 27, 2006 1:15 am
The Ninja Space Goat wrote: I REALLY like it. I already used it. LOL
Please keep us informed of further changes. I like it a lot as well
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Thu Jul 27, 2006 3:11 am
julian_lp wrote: The Ninja Space Goat wrote: I REALLY like it. I already used it. LOL
Please keep us informed of further changes. I like it a lot as well
I guess it could be placed in Code Snippets and then versioned if it would be used
julian_lp
Forum Contributor
Posts: 121 Joined: Sun Jul 09, 2006 1:00 am
Location: la plata - argentina
Post
by julian_lp » Thu Jul 27, 2006 9:36 pm
d11wtq wrote: julian_lp wrote: The Ninja Space Goat wrote: I REALLY like it. I already used it. LOL
Please keep us informed of further changes. I like it a lot as well
I guess it could be placed in Code Snippets and then versioned if it would be used
yeah, I second that idea
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Thu Jul 27, 2006 11:10 pm
julian_lp wrote: d11wtq wrote: julian_lp wrote:
Please keep us informed of further changes. I like it a lot as well
I guess it could be placed in Code Snippets and then versioned if it would be used
yeah, I second that idea
box madness!
Anyway... I've already put this to use in 2 projects. Thanks d11
Ward
Forum Commoner
Posts: 74 Joined: Thu Jul 13, 2006 10:01 am
Post
by Ward » Fri Jul 28, 2006 12:36 am
astions wrote: If you use mysql_fetch_assoc, you won't have to specify whether you want associative or indexed values as both will be returned..
You've got it backwards: mysql_fetch_assoc will return an associative array(text keys), and mysql_fetch_array will return both text and numeric keys.
Jenk
DevNet Master
Posts: 3587 Joined: Mon Sep 19, 2005 6:24 am
Location: London
Post
by Jenk » Fri Jul 28, 2006 6:15 am
Ward wrote: astions wrote: If you use mysql_fetch_assoc, you won't have to specify whether you want associative or indexed values as both will be returned..
You've got it backwards: mysql_fetch_assoc will return an associative array(text keys), and mysql_fetch_array will return both text and numeric keys.
actually, *array returns numerical only unless specified with the optional arg, assoc returns both. (Atleast the last time I actually looked, around release 5.0.1)
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Jul 28, 2006 8:44 am
array does both (unless otherwie specified in the call), assoc is named only, row is numeric only.