--- M. Sokolewicz [EMAIL PROTECTED] wrote:
I would suggest writing it like this:
[snip]
I'm getting the page now with the box but no values
inside. Database conn is fine and all. I can print
out the value , just can't get them to show up inside
form element (Multiple select)
On Saturday 13 November 2004 17:40, Stuart Felenstein wrote:
//I tried MYSQL_ASSOC, NUM and BOTH, no diff
while($row = mysql_fetch_array($inds, MYSQL_BOTH)) {
echo 'option
value='.$inds['CareerIDs'].''.$inds['CareerCategories'].'/option';
}
$row is what contains the data you're grabbing
--- Jason Wong [EMAIL PROTECTED] wrote:
$row is what contains the data you're grabbing from
the DB and you're not
using it
Jason Wong - Gremlins Associates -
Thank you Jason, its working now !
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello
I have two php files
~~~
firstpage.php
?
session_start();
$_SESSION['name']=test;
$_SESSION['value']=test;
echo session_id();
?
a href=secondpage.phpNext page/a;
~~~
I think I'm almost there :)
Only right now I'm getting an error message:
Query failed: You have an error in your SQL syntax.
Check the manual that corresponds to your MySQL server
version for the right syntax to use near '' at line 3
?php
$where = array();
$Ind = ;
$Ind = $_POST['Ind'];
if
Sorry, I fixed Ind , since the element is named Ind[].
Now I get a different error:
Query failed: You have an error in your SQL syntax.
Check the manual that corresponds to your MySQL server
version for the right syntax to use near
'','','Array)' at line 3
?php
$where = array();
$Ind[] = ;
I know I'm a bit late to this topic and I may have missed a comment along
the way, but what about making a change to the form, is that possible?
Instead of calling your form entries book_title_1, book_title_2,
book_title_3 etc why not use book_title[] for all instances of book_title?
This way
On Saturday 13 November 2004 20:41, Stuart Felenstein wrote:
Sorry, I fixed Ind , since the element is named Ind[].
Now I get a different error:
Query failed: You have an error in your SQL syntax.
Check the manual that corresponds to your MySQL server
version for the right syntax to use near
--- Jason Wong [EMAIL PROTECTED] wrote:
Uhmm, you could try some debugging of your own
instead of relying on the list.
Liberally douse your code with print_r() and
var_dump() of all your important
variables. Do they contain what you expected? If not
try and figure out why
not.
--
On Saturday 13 November 2004 21:10, Stuart Felenstein wrote:
Okay, took your advice, but it seems to be a sql error
as the message says.
Query failed: You have an error in your SQL syntax.
Check the manual that corresponds to your MySQL server
version for the right syntax to use near
--- Jason Wong [EMAIL PROTECTED] wrote:
Yes, that was apparent from your previous post. So
did you print out your
query and examine it for any obvious mistakes? And
if you couldn't spot any
obvious mistakes then the least you could have done
was to copy and paste the
full query in your
On Saturday 13 November 2004 21:31, Stuart Felenstein wrote:
It was not apparent whatsoever. Let me show the code
again , but I'll include the print_r returns inline
code.
?php
$where = array();
$Ind[] = ;
Not sure why you're adding an empty element to $Ind?
print_r($Ind);
//Array (
Stuart,
On Sat, Nov 13, 2004 at 05:31:06AM -0800, Stuart Felenstein wrote:
It was not apparent whatsoever. Let me show the code
again , but I'll include the print_r returns inline
code.
?php
$sql = 'SELECT PostStart, JobTitle, Industry,
LocationState, VendorID
FROM VendorJobs
On Saturday 13 November 2004 19:13, Vinayakam Murugan wrote:
[snip]
1st scenario : -
Enable cookies.
Traverse from first page to second page and back. The values are
maintained in IE, Mozilla on windows Mozilla in Debian Linux.
2nd scenario : -
Disable cookies.
Traverse from first
--- Jason Wong [EMAIL PROTECTED] wrote:
See the Array (also missing a single-quote),
that's element [30] mentioned
above.
Summary: the missing single-quotes are the
show-stopper.
I see that , but I'm not sure how that is happening.
Here is the sql:
$sql = 'SELECT PostStart,
--- James Kaufman [EMAIL PROTECTED]
wrote:
Right here, print the contents of $sql. That is the
most important thing to
know right now.
SELECT PostStart, JobTitle, Industry, LocationState,
VendorID FROM VendorJobs WHERE VendorJobs.Industry
Sorry,
Its me again. I tried all the recommendations from
my first responses and could not find the proper syntax on how to use it in my
file. My original email question,error, and my php code is listed below. Thank
you in advance for all your help, this is a great community.
On Saturday 13 November 2004 22:14, Stuart Felenstein wrote:
Summary: the missing single-quotes are the
show-stopper.
I see that , but I'm not sure how that is happening.
Here is the sql:
$sql = 'SELECT PostStart, JobTitle, Industry,
LocationState, VendorID
FROM VendorJobs
* Thus wrote -{ Rene Brehmer }-:
At 21:32 12-11-2004, Chris W. Parker wrote:
also you need to wrap your array values in { } when an array is
referenced within a string. i.e.
// normal
$value = $_GET['something'];
// with { }
$value = Here is some data: {$_GET['something']};
Is that
* Scott McWhite [EMAIL PROTECTED]:
I'm using an HTML search form that passes the searchterm to a php
file.
In my case the searchterm can have 1000s of records in my database,
so I implemented a limit which displays 20 records per page. The
pagination function works fine with one exception.
Is it possible in php to get a hold of the response stream and see what has
been sent already? I have a global php function, but it can't be called
inside html form elements, because it creates its own form, and when you
nest html forms things get weird. In this function, I want to check if
On Sat, 2004-11-13 at 10:38, Josh Howe wrote:
Is it possible in php to get a hold of the response stream and see what has
been sent already? I have a global php function, but it can't be called
inside html form elements, because it creates its own form, and when you
nest html forms things
Matthew Weier O'Phinney wrote:
* Scott McWhite [EMAIL PROTECTED]:
I'm using an HTML search form that passes the searchterm to a php
file.
In my case the searchterm can have 1000s of records in my database,
so I implemented a limit which displays 20 records per page. The
pagination function works
Hi,
I have a very annoying problem with pages that re-display using the form
action tag. On re-display the banner, which is set absolute position at 0px,
shifts down by about an inch. I've isolated the cause to the form action
tag.
Simplified code for bad.php page:
?php session_start();
That's perfect, thanks Rob.
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 13, 2004 10:48 AM
To: Josh Howe
Cc: PHP-General
Subject: Re: [PHP] http response
On Sat, 2004-11-13 at 10:38, Josh Howe wrote:
Is it possible in php to get a
such things never have anything to do with PHP, and everything to do
with the browser and/or HTML source code. So... either consider it a
browser bug, or a bug in your HTML (I'd guess #1, and if you're using
IE, then you can't do anything about it)
- Tul
Andre Dubuc wrote:
Hi,
I have a very
On Sat, 13 Nov 2004 06:30:14 +, Curt Zirzow
[EMAIL PROTECTED] wrote:
You might normalize the data a bit.
agreed!
Curt
My data IS Normalized! The results you are seeing below are from
joining together the books, subjects, and books_subjects xref table,
as I explained below. But my
Hello,
On 11/13/2004 04:08 AM, Curt Zirzow wrote:
* Thus wrote Jason Wong:
On Wednesday 10 November 2004 12:36, Garth Hapgood - Strickland wrote:
But when I get the following error back.:
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED]
...
This is a VERY
I've changed my logic around but still running into a
sql query error.
I've tried a number of things with no success. Here
is the error that returns on POST:
SELECT PostStart, JobTitle, Industry, LocationState,
VendorID FROM VendorJobs WHERE (VendorJobs.Industry =
''1','2','3''Query failed: You
Hello All,
I have a simple mail() question, and I hope a hero can shed some
light. I can't understand why my messages are being encoded, and extra
headers are being added, *before* the message is sent through sendmail.
Infinite Thanks,
Adam
Input:
$more test.php
?
$header = Content-Type:
On Fri, 12 Nov 2004 16:46:52 +, pete M [EMAIL PROTECTED] wrote:
Unsetting class objects does take time and is really of no benefit
unless there are memory problems
as for freeing resuslts - the same applies
pete
Many thanks for comments. I see that if not having memory problems
it's
On Sat, 13 Nov 2004 11:00:08 -0500, Andre Dubuc [EMAIL PROTECTED] wrote:
Hi,
I have a very annoying problem with pages that re-display using the form
action tag. On re-display the banner, which is set absolute position at 0px,
shifts down by about an inch. I've isolated the cause to the form
Hello,
On 11/13/2004 04:28 PM, Adam Fleming wrote:
Hello All,
I have a simple mail() question, and I hope a hero can shed some
light. I can't understand why my messages are being encoded, and extra
headers are being added, *before* the message is sent through sendmail.
It seems that you have
Hi,
Sunday, November 14, 2004, 2:00:08 AM, you wrote:
AD Hi,
AD I have a very annoying problem with pages that re-display using the form
action tag. On re-display the banner, which is set absolute position at 0px,
AD shifts down by about an inch. I've isolated the cause to the form action
On Saturday 13 November 2004 05:02 pm, you wrote:
Hi,
Sunday, November 14, 2004, 2:00:08 AM, you wrote:
AD Hi,
AD I have a very annoying problem with pages that re-display using the
form action tag. On re-display the banner, which is set absolute
position at 0px, AD shifts down by about an
--- Stuart Felenstein [EMAIL PROTECTED] wrote:
Okay, so what did I learn.
1) That a comma delimited list (from the array) to be
used correctly in the sql statement had to use the IN
word.
$sql .= WHERE VendorJobs.Industry IN ($s_Ind);
2) I need a space between the first quotation in the
Hi Stuart
Not sure what's happening with the $Ind variable, maybe check the $_POST
array as you enter the script to ensure that the form is passing the data
correctly. It is almost as if you are appending it to itself at some point.
You don't have a line like this anywhere do you : $Ind[] = $Ind;
Hi Manuel,
That was *exactly* the issue. I can't express my gratitude for the
assistance enough
-Adam
Original Message Follows
From: Manuel Lemos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: simple mail() question
Date: Sat, 13 Nov 2004 19:21:18 -0200
Hello,
On 11/13/2004
What if you try:
?php include(banner.php); ?
form action=bad.php method=post
Andre Dubuc wrote:
Hi,
I have a very annoying problem with pages that re-display using the form
action tag. On re-display the banner, which is set absolute position at 0px,
shifts down by about an inch. I've isolated
I recently installed SUSE 9.1 and my php script that sent mail no longer
works. It works fine on an suse 9.0 box. I was wondering if anyone can
give me a hint as to what to look
for to fix this. Below is some of my error log from a send attempt.
Nov 13 11:50:34 WebServer postfix/pickup[30613]:
Hello,
On 11/13/2004 10:48 PM, Chris W wrote:
I recently installed SUSE 9.1 and my php script that sent mail no longer
works. It works fine on an suse 9.0 box. I was wondering if anyone can
give me a hint as to what to look
for to fix this. Below is some of my error log from a send attempt.
Nov
Hey,
I have just upgrade my box and my forms are no longer passing information
into the database. I did a simple echo test and sure enough nothing. I was
using Apache 1.3 with php 4.1 I am now using Apache 2 with php 4.3.4, I
thinking there is something that needs to be turn on in my php.ini that
At 16:28 13-11-2004, Curt Zirzow wrote:
* Thus wrote -{ Rene Brehmer }-:
At 21:32 12-11-2004, Chris W. Parker wrote:
also you need to wrap your array values in { } when an array is
referenced within a string. i.e.
// normal
$value = $_GET['something'];
// with { }
$value = Here is some
Read this..
http://www.php.net/release_4_1_0.php
(Especially the part about global variables...)
- Original Message -
From: Chuck PUP Payne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 13, 2004 9:02 PM
Subject: [PHP] A simple question
Hey,
I have just upgrade my box
Hi Mark,
Tried your idea - no go.
Somehow I think the problem may be related to the banner's gif width (set at
101%). I recall when I first made the banner, which has a horizontal rule (a
png) above it set at 100%, that the HR caused some problems. Perhaps I should
toy more with the combo.
If I was still on 4.1 I would understand, but I am on 4.3.4 now
I will read it but I think it will there is something that turn on in the
php.ini.
Payne
On 11/13/04 9:13 PM, Brad Bonkoski [EMAIL PROTECTED] wrote:
Read this..
http://www.php.net/release_4_1_0.php
(Especially the part
Manuel Lemos wrote:
It seems PHP is not configured properly to send messages via postfix.
You may want to try this class that comes with a wrapper function
named sendmail_mail() that works like the mail() function except that
it calls the postfix sendmail wrapper program directly.
* Thus wrote Chris W:
Manuel Lemos wrote:
It seems PHP is not configured properly to send messages via postfix.
You may want to try this class that comes with a wrapper function
named sendmail_mail() that works like the mail() function except that
it calls the postfix sendmail wrapper
* Thus wrote Chuck PUP Payne:
Hey,
I have just upgrade my box and my forms are no longer passing information
into the database. I did a simple echo test and sure enough nothing. I was
using Apache 1.3 with php 4.1 I am now using Apache 2 with php 4.3.4, I
thinking there is something that
Hello,
On 11/14/2004 12:37 AM, Chris W wrote:
It seems PHP is not configured properly to send messages via postfix.
You may want to try this class that comes with a wrapper function
named sendmail_mail() that works like the mail() function except that
it calls the postfix sendmail wrapper
Ugh, from what I read now I have to re-write all my forms. No fun. Thanks
guys, I was hoping it was something simple.
I would like to ask one thing, here is a simple code that I was using can
someone explain to what need to be change to work with 4.3.4 so that I can
work on my other pages
?
* Thus wrote Chris Lott:
On Sat, 13 Nov 2004 06:30:14 +, Curt Zirzow
[EMAIL PROTECTED] wrote:
You might normalize the data a bit.
agreed!
Curt
My data IS Normalized! The results you are seeing below are from
joining together the books, subjects, and books_subjects xref
Hello,
On 11/14/2004 01:29 AM, Curt Zirzow wrote:
But when I get the following error back.:
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED]
...
This is a VERY FAQ.
googling the error message will tell you what it means. Searching the
archives will give you
* Thus wrote Manuel Lemos:
Hello,
On 11/14/2004 01:29 AM, Curt Zirzow wrote:
If you even paid attention to Jason's message a simple google
search for:
smtp 550 5.7.1 unable to rely for
returns a bunch more information than spam.
FYI, that is a common error message that SMTP
* Thus wrote Manuel Lemos:
Hello,
On 11/13/2004 04:08 AM, Curt Zirzow wrote:
* Thus wrote Jason Wong:
On Wednesday 10 November 2004 12:36, Garth Hapgood - Strickland wrote:
But when I get the following error back.:
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
Curt Zirzow wrote:
yes it probably would be easier.. instead of guessing on what the
problem is.. what exactly is the error message you get back in the
bounced email?
The errors from the mail log are in my first post here is the bounced
email
Date: Sat, 13 Nov 2004 14:06:38 -0600 (CST)
Hi,
Thursday, November 11, 2004, 4:04:27 AM, you wrote:
CL Given a database query thats returns results from a linking (or xref)
CL table which includes repetition because of the joins:
CL ++--+--+
CL | id | title| subject |
CL
Salut!
is there a good way to present data from table (many fields / not only one)
into $itemData instead of array_push (line 12 .. 16) ?
And how come the result always has space (kinda TRTD) and it's moving
upper and upper when I click Next.
Correction to my code below would be very welcome .
1
Hello,
On 11/14/2004 02:15 AM, Curt Zirzow wrote:
If you even paid attention to Jason's message a simple google
search for:
smtp 550 5.7.1 unable to rely for
returns a bunch more information than spam.
FYI, that is a common error message that SMTP servers return when they
only allow relaying
Hello,
On 11/13/2004 04:12 AM, Curt Zirzow wrote:
Im using the php mail() function to try send an email to a user that has
just registered.
mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website Registration' ,
'Welcome');
But when I get the following error back.:
Warning: mail(): SMTP server
* Thus wrote Manuel Lemos:
Hello,
On 11/14/2004 02:15 AM, Curt Zirzow wrote:
If you even paid attention to Jason's message a simple google
search for:
smtp 550 5.7.1 unable to rely for
returns a bunch more information than spam.
FYI, that is a common error message that SMTP servers
* Thus wrote Manuel Lemos:
Hello,
On 11/13/2004 04:12 AM, Curt Zirzow wrote:
Im using the php mail() function to try send an email to a user that has
just registered.
mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website
Registration' ,
'Welcome');
But when I get the following
--- Graham Cossey [EMAIL PROTECTED] wrote:
Hi Stuart
Not sure what's happening with the $Ind variable,
maybe check the $_POST
array as you enter the script to ensure that the
form is passing the data
correctly. It is almost as if you are appending it
to itself at some point.
You don't
63 matches
Mail list logo