My Mysql Class - Advice

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

User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I REALLY like it. I already used it. LOL
User avatar
julian_lp
Forum Contributor
Posts: 121
Joined: Sun Jul 09, 2006 1:00 am
Location: la plata - argentina

Post by julian_lp »

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 ;)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

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 :)
User avatar
julian_lp
Forum Contributor
Posts: 121
Joined: Sun Jul 09, 2006 1:00 am
Location: la plata - argentina

Post by julian_lp »

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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

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 »

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.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

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)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

array does both (unless otherwie specified in the call), assoc is named only, row is numeric only.
Post Reply