Re: [UPHPU] eCommerce - what do you use?

2008-01-28 Thread Scott Hill
On Jan 28, 2008 10:35 AM, [EMAIL PROTECTED] wrote: While I don't believe this is a solution for most developers in this group, I'll mention this only because you've stated this is a media company. It strikes me that you may want to consider doing an RIA, like Flex (SDK is open source), and

RE: [UPHPU] eCommerce - what do you use?

2008-01-28 Thread cole
While I don't believe this is a solution for most developers in this group, I'll mention this only because you've stated this is a media company. It strikes me that you may want to consider doing an RIA, like Flex (SDK is open source), and using PHP as a service. In fact, I'll be doing one

RE: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread Craig Jackson
I just remembered that on installation of Drupal, they have a feature that lets you add a prefix to your database tables. But, when you use the queries and fetches with drupal's built-in functions they return the tables as if they don't have a prefix. So, you could see what they are doing as

Re: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread Dave Smith
Scott Hill wrote: with renaming all of the columns in the SQL statement. If you are using Postgres or something besides MySQL you might do something like this in a stored procedure although I have never tried it. It would be neat if someone could figure out a nifty way to do this. Are you

RE: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread Craig Jackson
I really should have reviewed this before I sent it. I forgot one piece of importance. The first line needs to have the parameter MYSQL_ASSOC sent with mysql_fetch_array. Plus, you would need to do more tweaking to get this to work for if you were returning multiple rows, but I think I got my

Re: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread justin
On Jan 28, 2008 4:21 PM, Craig Jackson [EMAIL PROTECTED] wrote: I just remembered that on installation of Drupal, they have a feature that lets you add a prefix to your database tables. But, when you use the queries and fetches with drupal's built-in functions they return the tables as if

Re: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread Lonnie Olson
Wade Preston Shearer wrote: The AS option in an SQL command allows you to rename a field, like this: select username as user, password as secretcode Is it possible to rename all of the fields that you pull at once? Here's what I want to do: I have a table of fields that are all named with

[UPHPU] SQL field as prefix for all fields

2008-01-28 Thread Wade Preston Shearer
The AS option in an SQL command allows you to rename a field, like this: select username as user, password as secretcode Is it possible to rename all of the fields that you pull at once? Here's what I want to do: I have a table of fields that are all named with the same prefix. I want to

RE: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread Craig Jackson
Off the top of my head, you cannot do anything like this in MySQL (the only database I have a solid knowledge of). But, I would imagine you could maybe do something like this in PHP. Lets say you are returning one row, and the prefix is 5 characters long. $a =

Re: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread Scott Hill
The AS option in an SQL command allows you to rename a field, like this: select username as user, password as secretcode Is it possible to rename all of the fields that you pull at once? Here's what I want to do: I have a table of fields that are all named with the same prefix. I want to

Re: [UPHPU] eCommerce - what do you use?

2008-01-28 Thread Jonathan Duncan
On 28 Jan 2008, at 10:35, [EMAIL PROTECTED] wrote: While I don't believe this is a solution for most developers in this group, I'll mention this only because you've stated this is a media company. It strikes me that you may want to consider doing an RIA, like Flex (SDK is open source),

Re: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread Dave Smith
Wade Preston Shearer wrote: Are you using a version of MySQL that supports Views? If so, just make a View that has the column names the way you want, and then SELECT from the View instead of directly from the table. That doesn't actually eliminate having to list each field though, right?

Re: [UPHPU] SQL field as prefix for all fields

2008-01-28 Thread MilesTogoe
Lamont Peterson wrote: On Monday 28 January 2008 03:51:28 pm Wade Preston Shearer wrote: The AS option in an SQL command allows you to rename a field, like this: select username as user, password as secretcode Is it possible to rename all of the fields that you pull at once? Here's what I