RE: Query with php

2003-03-01 Thread Peter Lovatt
Original Message----- From: Andrew [mailto:[EMAIL PROTECTED] Sent: 01 March 2003 11:55 To: MySQL-Lista Subject: Query with php Dear Mysql guru's I have a sneaky suspision that the my current problem is related! I want to display There are '$number of records' in '$the ci

Query with php

2003-03-01 Thread Andrew
Dear Mysql guru's I have a sneaky suspision that the my current problem is related! I want to display There are '$number of records' in '$the city you have selected' However this is proving to be beyond my brains capacity to deal with :p So,if any of you can spot what the obvious mistakes I am

help displaying results from a mysql query with php

2002-10-29 Thread Andrea Forghieri
Instead of echo htmlspecialchars( stripslashes($row["$i"])); use echo htmlspecialchars( stripslashes($row[0])); In fact , if you increase $i you increase the column thus , in the first cycle you see col 0 , in the second col 1 for more information visit http://www.php.net

help displaying results from a mysql query with php

2002-10-23 Thread Hammons Randy G SSgt 612 ACOMS/SCXX
Can someone please tell me what's wrong with the following code? This info is inside a function that I defined. One of the arguments that I pass the function is the actual query. Based on the info that I know is loaded in the database (it's a development database...there are only 2 rows of info)

RE: Complex query with PHP/MySQL

2002-03-01 Thread Doug Thompson
t;$tmpquery .= $filter2; >$tmpquery .= " AND "; >} > >$query=substr($tmpquery,0,strlen($tmpquery) - 4); // remove extra AND > > > >I haven't tried this with checkboxes, but you should get the idea. This >works with other >queries that I

RE: Complex query with PHP/MySQL

2002-03-01 Thread John Lodge
($tmpquery) - 4); // remove extra AND I haven't tried this with checkboxes, but you should get the idea. This works with other queries that I have done. John Lodge -Original Message- From: Trelfa, Jonathon [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 3:45 PM To: SQL Mailing

Complex query with PHP/MySQL

2002-03-01 Thread Trelfa, Jonathon
I am attempting to generate a query statement (using PHP) that is generated based on user input from 2 sets of checkboxes. You can see a barely-functioning version at this URL: http://www.nobleaccord.com/view/view.php The top part of the form just shows what the query statement looks like. The

Re: Excluding Data from a Query with PHP

2001-05-14 Thread Ilya Martynov
KAZ> Hi KAZ> I've got a question on how to exclude a data from a query. Suppose I KAZ> have KAZ> the following query that is being used in combination with a PHP web KAZ> site: KAZ> "SELECT * FROM activities WHERE month='$month' AND year='$year'" KAZ> Now suppose the activities table looks like

RE: Excluding Data from a Query with PHP

2001-05-14 Thread Roger Karnouk
SELECT * FROM activities WHERE month='$month' AND year='$year' and username != 'myuen' -Original Message- From: Kelly Alexander Zia [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 1:45 PM To: mySQL Subject: Excluding Data from a Query with PHP Hi

Excluding Data from a Query with PHP

2001-05-14 Thread Kelly Alexander Zia
Hi I've got a question on how to exclude a data from a query. Suppose I have the following query that is being used in combination with a PHP web site: "SELECT * FROM activities WHERE month='$month' AND year='$year'" Now suppose the activities table looks like this: ID username month