Re: [PHP-DB] is this possible in one query?

2006-01-14 Thread RaJeSh VeNkAtA
u can have the query as $query = " select * from $table where nameId = 31 " ; $result = mysql_query ( $query ) ; $i = 0 ; while ( $row = mysql_fetch_array( $result , MYSQL_NUM ) ) { $array[$i][0] = $row[0] ; $array[$i][1] = $row[1] ; $array[$i][2] = $row[2] ;

[PHP-DB] is this possible in one query?

2006-01-14 Thread Sjef Janssen
Hi there, I have a table that keeps names for different language codes. In a short example: nameId name languageCode 31 House EN 31 Wohnung DE 32 Piece En 32 Stuck De 33 Car EN 33 PKW DE What I would like is to have a query that returns for example: nameId = 31 Names = House - Wohnung Maybe I can

[PHP-DB] Is this possible?

2005-01-22 Thread JeRRy
Hi, Is it "security safe and possible" to use my server to query another server, outside the local zone, and make updates to another server using a PHP page from my server? I'm just wondering. So in other words I'd have a DB setup to hold users domains, db names, db usernames, db passwords etc o

[PHP-DB] Is this possible?

2005-01-22 Thread JeRRy
Hi, Is it "security safe and possible" to use my server to query another server, outside the local zone, and make updates to another server using a PHP page from my server? I'm just wondering. So in other words I'd have a DB setup to hold users domains, db names, db usernames, db passwords etc o

[PHP-DB] is this possible?

2003-01-19 Thread Addison Ellis
hello, i have a page where the user selects a category. they are directed to a page that takes them to subactegory and displays the subcategory according to category id. my question is can i from there direct them to a particular page from a list of a number of different pages according to the

RE: [PHP-DB] Is this possible in mysql?

2002-03-08 Thread Gurhan Ozen
? Gurhan -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 2:17 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Is this possible in mysql? I need to add up the (integer) values of columns, and return the added up value as one column to php

Re: [PHP-DB] Is this possible in mysql?

2002-03-08 Thread Andrey Hristov
list($sum)=mysql_fetch_assoc(mysql_query('SELECT SUM(salary') FROM employes;')); Best regards, Andrey Hristov On Friday 08 March 2002 09:17 pm, you wrote: > I need to add up the (integer) values of columns, and return the added up > value as one column to php. Is this possible? Or is there som

RE: [PHP-DB] Is this possible in mysql?

2002-03-08 Thread Leotta, Natalie (NCI/IMS)
> To: [EMAIL PROTECTED] > Subject: [PHP-DB] Is this possible in mysql? > > I need to add up the (integer) values of columns, and return the added up > value as one column to php. Is this possible? Or is there something else > to do it? (I'd rather not have to mysql_fetch_ar

[PHP-DB] Is this possible in mysql?

2002-03-08 Thread Leif K-Brooks
I need to add up the (integer) values of columns, and return the added up value as one column to php. Is this possible? Or is there something else to do it? (I'd rather not have to mysql_fetch_array() in a while loop and add it up there, it might be a lot of rows) -- PHP Database Mailing List

Re: [PHP-DB] Is this possible?

2002-02-06 Thread William Fong
To: <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2002 10:00 AM Subject: Re: [PHP-DB] Is this possible? > It looks to me like you should be dividing the data differently; something > like > > (quantity, item, option, price) > VALUES > (1, '6inch', '&

RE: [PHP-DB] Is this possible?

2002-02-06 Thread Rick Emery
Lilleødegård [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 11:33 AM To: Rick Emery; [EMAIL PROTECTED] Subject: Re: [PHP-DB] Is this possible? My table look like this: Pricetable: (varetabell) (varenr, type, pris) VALUES (1, '6inch', 29), (1, '

Re: [PHP-DB] Is this possible?

2002-02-06 Thread DL Neil
FROM varetabell, pristabell WHERE > pristabell.varenr=varetabell.varenr AND pristabell.type='6inch' AND > pristabell.type='footlong' > > > > - Original Message - > From: "Rick Emery" <[EMAIL PROTECTED]> > To: "'Raymond

Re: [PHP-DB] Is this possible?

2002-02-06 Thread Hugh Bothwell
It looks to me like you should be dividing the data differently; something like (quantity, item, option, price) VALUES (1, '6inch', '', '29), (1, '6inch', 'meny', 51), (1, 'footlong', '', 45), (1, 'footlong', 'meny', 66), and so forth... "Raymond lilleødegård" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP-DB] Is this possible?

2002-02-06 Thread DL Neil
Hi Raymond, > I have this tricky case, at lest for me : ) > > I'm trying to get some data out of two tables and listing the data in a > product/price site. But. : > > I have one table with productinfo and one with prices. > And it is several columns with the same id in the pricetable, because

Re: [PHP-DB] Is this possible?

2002-02-06 Thread Raymond Lilleødegård
varetabell.varenr, varetabell.innhold, pristabell.pris FROM varetabell, pristabell WHERE pristabell.varenr=varetabell.varenr AND pristabell.type='6inch' AND pristabell.type='footlong' - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'

RE: [PHP-DB] Is this possible?

2002-02-06 Thread Rick Emery
Yes, you can do that easily. It is easier to answer your question if you show us your table structure. -Original Message- From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 11:16 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Is this possible? Hi! I

[PHP-DB] Is this possible?

2002-02-06 Thread Raymond Lilleodegard
Hi! I have this tricky case, at lest for me : ) I'm trying to get some data out of two tables and listing the data in a product/price site. But. : I have one table with productinfo and one with prices. And it is several columns with the same id in the pricetable, because every product have