RE: [PHP] Query Results Question

2004-08-04 Thread Thijs Lensselink
essage- > From: Harlequin > To: [EMAIL PROTECTED] > Sent: 04/08/04 01:55 > Subject: [PHP] Query Results Question > > I have the following query which should return just two rows: > > SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Lo

RE: [PHP] Query Results Question

2004-08-04 Thread Ford, Mike [LSS]
-Original Message- From: Harlequin To: [EMAIL PROTECTED] Sent: 04/08/04 01:55 Subject: [PHP] Query Results Question I have the following query which should return just two rows: SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location'

Re: [PHP] Query Results Question - Solved

2004-08-03 Thread Harlequin
I know what's going to happen though Richard. I'll dump it in their site and it'll look terrible because they don't know how to use CSS effectively. But hey - that's part of the fun. Hyperlinks tomorrow though :| -- - Michael Mason Arras People www.arraspeople.co.u

RE: [PHP] Query Results Question - Solved

2004-08-03 Thread Richard Bewley
Looks good :) - Thank you, Richard Bewley [EMAIL PROTECTED] Equinox Systems and Development Website: http://www.eq-dev.com/ Also, please look at our webhosting services, specializing in business web hosting starting from $15 per

Re: [PHP] Query Results Question - Solved

2004-08-03 Thread Harlequin
Many thanks Richard. I have the table presenting neatly now, thanks for all your help with this one...! -- - Michael Mason Arras People www.arraspeople.co.uk - "Richard Bewley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Curt. Thanks for the pointer and yes, I should be doing that and overlooked it this time. It's working now as I seem to be echoing the second record in the table and will plug away at getting the table defined. Thanks for all your help Curt. -- - Michael Mason Arr

RE: [PHP] Query Results Question

2004-08-03 Thread Richard Bewley
> I'm only selecting a few fields Richard as I want to try and drop them into an array and display in a table. > I know I'm probably going the long way around doing this but I need to learn from scratch exactly how to do it. > I appreciate your help and patience very much. > I've managed to get

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
I'm only selecting a few fields Richard as I want to try and drop them into an array and display in a table. I know I'm probably going the long way around doing this but I need to learn from scratch exactly how to do it. I appreciate your help and patience very much. I've managed to get the quer

Re: [PHP] Query Results Question

2004-08-03 Thread Curt Zirzow
* Thus wrote Harlequin: > Richard > > Thanks firstly for your help. I renamed the fields so the spaces are > underscores and amended your query but still receive an error: > > "not a valid MySQL result resource " > > Still tinkering though... All this tinkering and database schema's are simply

RE: [PHP] Query Results Question

2004-08-03 Thread Richard Bewley
> Richard. > Public. I changed it to "Publish". > But if I use a query window to interrogate the database I still get just two rows using the following query with field names not values for the row cell contents: > SELECT 'ID','Vacancy_Role','Vacancy_Salary','Vacancy_Location','Vacancy_Type' F

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Richard. Public. I changed it to "Publish". But if I use a query window to interrogate the database I still get just two rows using the following query with field names not values for the row cell contents: SELECT 'ID','Vacancy_Role','Vacancy_Salary','Vacancy_Location','Vacancy_Type' FROM vaca

RE: [PHP] Query Results Question

2004-08-03 Thread Richard Bewley
> Richard > Thanks firstly for your help. I renamed the fields so the spaces are underscores and amended your query but still receive an error: > "not a valid MySQL result resource " > Still tinkering though... Can you paste me a.) Your database structure b.) The exact query you are using Als

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Richard Thanks firstly for your help. I renamed the fields so the spaces are underscores and amended your query but still receive an error: "not a valid MySQL result resource " Still tinkering though... -- - Michael Mason Arras People www.arraspeople.co.uk --

Re: [PHP] Query Results Question

2004-08-03 Thread Curt Zirzow
* Thus wrote Harlequin: > I have the following query which should return just two rows: > > SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location', 'Vacancy > Type' > FROM vacancy_details > WHERE Publish = 'Yes' > > As only two rows have Publish set to "Yes". > > yet even if I exe

RE: [PHP] Query Results Question

2004-08-03 Thread Richard Bewley
Hi, Take the spaces out of your field names, and then use this: - Thank you, Richard Bewley [EMAIL PROTECTED] Equinox Systems and Development Website: http://www.eq-dev.com/ -- PHP General Mailing List (http://www.php.net/) To

[PHP] Query Results Question

2004-08-03 Thread Harlequin
I have the following query which should return just two rows: SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location', 'Vacancy Type' FROM vacancy_details WHERE Publish = 'Yes' As only two rows have Publish set to "Yes". yet even if I execute the query through phpMyAdmin I get two