RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- 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. > Y

Re: [PHP] Re: php mail() error

2004-11-13 Thread Curt Zirzow
* 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'); > >>>

Re: [PHP] php mail() error

2004-11-13 Thread Curt Zirzow
* 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

Re: [PHP] Re: php mail() error

2004-11-13 Thread 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 error back.: Warning: mail(): SMTP server

Re: [PHP] php mail() error

2004-11-13 Thread 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 return when they only allow relaying messa

[PHP] PEAR DB & PAGER & array_push

2004-11-13 Thread valerie17
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 ) and it's moving upper and upper when I click Next. Correction to my code below would be very welcome . 1 quer

Re: [PHP] displaying repetitive results

2004-11-13 Thread Tom Rogers
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> ++-

Re: [PHP] Re: postfix and php on suse 9.1

2004-11-13 Thread Chris W
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) From:

Re: [PHP] php mail() error

2004-11-13 Thread Curt Zirzow
* 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 U

Re: [PHP] php mail() error

2004-11-13 Thread Curt Zirzow
* 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 mess

Re: [PHP] php mail() error

2004-11-13 Thread Manuel Lemos
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 s

Re: [PHP] displaying repetitive results

2004-11-13 Thread Curt Zirzow
* 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

Re: [PHP] A simple question

2004-11-13 Thread Chuck PUP Payne
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 ";

[PHP] Re: postfix and php on suse 9.1

2004-11-13 Thread Manuel Lemos
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 program

Re: [PHP] A simple question

2004-11-13 Thread Curt Zirzow
* 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 th

Re: [PHP] Re: postfix and php on suse 9.1

2004-11-13 Thread Curt Zirzow
* 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 sendmai

[PHP] Re: postfix and php on suse 9.1

2004-11-13 Thread 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 program directly. http://www.php

Re: [PHP] A simple question

2004-11-13 Thread Chuck PUP Payne
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

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Andre Dubuc
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. T

Re: [PHP] A simple question

2004-11-13 Thread Brad Bonkoski
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

Re: [PHP] probably stupid, but...

2004-11-13 Thread -{ Rene Brehmer }-
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

[PHP] A simple question

2004-11-13 Thread 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 needs to be turn on in my php.ini that

[PHP] Re: postfix and php on suse 9.1

2004-11-13 Thread Manuel Lemos
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

[PHP] postfix and php on suse 9.1

2004-11-13 Thread Chris W
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]: 1

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Marek Kilimajer
What if you try: Andre Dubuc wrote: Hi, I have a very annoying problem with pages that re-display using the . 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 . Simplified code for bad.php page: /* html head style bod

[PHP] RE: [SOLVED][PHP] Re: simple mail() question

2004-11-13 Thread Adam Fleming
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

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Graham Cossey
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;

[PHP] Re:[SOLVED] [PHP] Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- 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

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Andre Dubuc
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 > >. On re-display the banner, which is set absolute > position at 0px, AD> shifts down by about an inc

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Tom Rogers
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 >. 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 >. AD> Simplified code for b

[PHP] Re: simple mail() question

2004-11-13 Thread Manuel Lemos
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 mbstr

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Jordi Canals
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 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 ta

Re: [PHP] Re: Unsetting vars when not needed?

2004-11-13 Thread Jordi Canals
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

[PHP] simple mail() question

2004-11-13 Thread Adam Fleming
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 Expected Result: $php -d sendmail

Re: [PHP] Help: Database Search

2004-11-13 Thread Stuart Felenstein
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 h

Re: [PHP] php mail() error

2004-11-13 Thread 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 [EMAIL PROTECTED] ... This is a VERY FAQ.

Re: [PHP] displaying repetitive results

2004-11-13 Thread 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 table, as I explained below. But

[PHP] Re: Shifting banner on re-display

2004-11-13 Thread M. Sokolewicz
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 ann

RE: [PHP] http response

2004-11-13 Thread Josh Howe
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 ho

[PHP] Shifting banner on re-display

2004-11-13 Thread Andre Dubuc
Hi, I have a very annoying problem with pages that re-display using the . 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 . Simplified code for bad.php page: /* html head style body tags */ Is there a workarou

[PHP] Re: Pagination need help again

2004-11-13 Thread M. Sokolewicz
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

Re: [PHP] http response

2004-11-13 Thread Robert Cummings
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 elements, because it creates its own form, and when you > nest html forms things g

[PHP] http response

2004-11-13 Thread Josh Howe
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 elements, because it creates its own form, and when you nest html forms things get weird. In this function, I want to check if there is

[PHP] Re: Pagination need help again

2004-11-13 Thread Matthew Weier O'Phinney
* 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

Re: [PHP] probably stupid, but...

2004-11-13 Thread Curt Zirzow
* 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

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
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 Ven

[PHP] Pagination need help again

2004-11-13 Thread Scott McWhite
Sorry,   It’s 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.  

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- 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 IN(1','2','3','4','5','6','7','8','9','10','1

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- 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 PostStar

Re: [PHP] Do different browsers treat Sessions & Cookies differently?

2004-11-13 Thread Jason Wong
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. > > Travers

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread James Kaufman
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. > > $sql = 'SELECT PostStart, JobTitle, Industry, > LocationState, VendorID > FROM VendorJob

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
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. > > $where = array(); > $Ind[] = ""; Not sure why you're adding an empty element to $Ind? > print_r($Ind); > //Array

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- 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

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
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 n

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- 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.

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
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

RE: [PHP] Re: probably stupid, but...

2004-11-13 Thread Graham Cossey
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 the

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
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 > $where = array(); > $Ind[] = ""; > $

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
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" 1) { $IndStr = implode("','", $Ind); $where[] = "V

[PHP] Do different browsers treat Sessions & Cookies differently?

2004-11-13 Thread Vinayakam Murugan
Hello I have two php files ~~~ firstpage.php Next page; ~~~ ~~~ secondpage.php "; print_r($_COOKIE); echo ""; echo session_id(); echo ""; print_r($_SESSION); ?> Previous pag

Re: [PHP] Re: What am I doing wrong - PHP

2004-11-13 Thread Stuart Felenstein
--- 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: h

Re: [PHP] Re: What am I doing wrong - PHP

2004-11-13 Thread Jason Wong
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 ' value="'.$inds['CareerIDs'].'">'.$inds['CareerCategories'].''; > } $row is what contains the data you're grabbing from th

Re: [PHP] Re: What am I doing wrong - PHP

2004-11-13 Thread Stuart Felenstein
--- "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