[PHP] php'ed mysql query
Hello, Can anyone tell me why this query errors out? It works from the mysql client command line just fine $query1 = "select * from zip_base where '$zip1' >= zip && '$zip1' <= CONCAT (SUBSTRING(zip , '1' , LENGTH (zip) - LENGTH (range) ), range)"; Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php'ed mysql query
> If you are going to do a comparison from one of the fields in your table, > doesn't the field name need to be on the left hand side of the comparison? > So instead of "where '$zip1' >= zip", shouldn't it be "zip < '$zip1'" (et al > for the other comparisons in your query) . > Didn't matter. Is there a trick for using concat or substring or any string functions in a mysql query that is sent by php?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] decimal point movement...
Greetings! I am looking for an efficeient way to assign a decimal to a number and store the new number. I wanto add a decimal point after the first 2 leading digitis.. while ( query runs) { $temp=007170; $changed_to_deicmal_form; // would store .7170 } Furthermore I was using printf to round up numbers...has anyone found a different or better way? Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] warning 1 is not mysql result index
I want to get the result from first row (the one next from ID field) of the table using $HotelName = mysql_result($resultHotel,0,1) or die(mysql_error()); A suggestion: Why don't you use mysql_fetch_row or any other function that reaches beyond just getting 1 field? this would be easier perhaps for you visualize the data you are trying to get. http://www.php.net/manual/en/function.mysql-fetch-row.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] warning 1 is not mysql result index
> still did not work. Keep returning the same error when I do this: > $HotelName = mysql_fetch_row($resultHotel,1) or die(mysql_error()); what was your connection statement and query to the db? I would look to these ass the culprit heres an example : mysql_connect("localhost", "$username", "$pass" ); mysql_select_db( "$db_name") or die( print "Unable to select database"); $query1 =" SELECT * FROM $table WHERE ID=$last_id"; $result = MYSQL_QUERY($query1); $row = mysql_fetch_object ($result) $fname = $row->firstname; $dog_tag = $row->ID; Ofcourse you need to check for errors etc.. Good Luck! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] SQL Server DB to mySQL DB
Just did this to a 65mb fixed width file. What I did was get it into a csv file via perl :) Then I created the db table. Then I used: load data infile "/file.csv" into table blah fields terminated by ',' ; then go ahead and create any indexes etc... !works slick! > Is there an easy way to do this? I know that SQL Server can export a comma > delimited file, can mySQL import this? I imagine the PHP will be easy to > modify as long as the field names are the same. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Zend hit (Encoder price)
> Unfortunately, it's not that simple. > > You haven't factored in Support costs nor administrative overhead nor... > Well, I don't know what else the Marketing folks do when they figure these > things out, but that's why I'm not in Marketing, eh? Right it's not my game either (marketing), but perhaps Zend would be willing to supply why the price is at $6,000. As you said above , it doesn't just stop when I buy the encoder. Whose going to do the encoding and continue doing the encoding with continued releases etc? A graphic designer? A consultant? I have listened to the arguments, 6000 is steep when you compare it with a download from freshmeat. Writing a c-module is not *that* far away from writing some of the more complicated php/perl/python scripts. Indeed this is what furthers php. I would rather see Zend charging for support contracts, rather than the actual product -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Best browser
J-, I have tested netscape communicator 4.76 with ssl extensively. no problems what so ever. Take a look at www.modssl.org for some of the common problems that are associated with Internet Explorer and ssl. >The users all have MS Win 95, 98, or NT. The > quality (ie. the 'bug-free-ness") of the browser's SSL code > is very important. What browser should I choose? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Best browser
- Original Message - From: Kurth Bemis <[EMAIL PROTECTED]> To: Jason Jacobs <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 9:43 AM Subject: Re: [PHP] Best browser > At 10:39 AM 2/27/2001, Jason Jacobs wrote: > > he's probably referring to the SSL code that the browser uses. In that > aspect - it doesn't matter Actually it does. On the mod_ssl user list countless messages go by with IE not working with ssl. Various work arounds have been implemented but IE is a pain. Here are common probs http://marc.theaimsgroup.com/?l=apache-modssl&w=2&r=1&s=Internet+Explorer&q= b http://www.modssl.org/docs/2.8/ssl_faq.html#ToC48 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Advanced PHP
> The chicken did. > > as the Chicken is an actual chicken > and the egg is a potential chicken. > Actuality precedes potentiality amen brotha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] FAQ
This is _and_ was _and_ ever shall be the state of mailing lists that help people. In the years that I have been on mailing lists, I have never seen a high volume list that wasnt filled with request after request for common knowledge. The problem is not stopping people from asking the same manual Q's over and over , it's actually taking/assisting the burden off of the people that answer the Q's. Thus we get a moderated list > The problem is that people are lazy or just to stupid to look for stuff. > Sometimes yes, we just miss something small or it is under another section. > I have done it as recently as tuesday with implode. But this is getting nuts. > I guess I am frustrated because all the lists I am on are filled with lazy > people > who whine and want someone else to do all their work for them. PHP is not take it easy, christopher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Icq Message
Greetings: Anyone have a clue as how to send an icq message to a given ICQ number via a php-web-page? TIA. Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] writing to file quick and easy.
Hello: Lookin for a little advice here. I have a series of scripts that dynamically create web pages. The last page in the series I wish to be able to write out to a file. Is there a simple/quick way in which I can take the process(ing) script and write it to a file at the same time that it is displaying? I need it to both display and be able to be downloaded such that the last thing that this script would do is create a link to itself in html format. Something to the effect that whatever was being passed to the browser could also be passed thru an open file handle thus written to a file Thanks, Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] select as
Greets: I have a bit of php code that looks for a matching user/pass in a mysql table. There are three user/pass phrases in the table along with a an email that corresponds to each user/pass pair. Is there any way to construct a query that will do both the matching of the user/passes and also then give the corresponding email that matches the user/pass? table roughly looks like this: username pass email user_name2 pass2 email2 select * from customer where user_name='$username' && pass='$password' || user_name2='$username' && pass2='$pass'"; so if it matches on user_name2/pass2 I would then want to get email2... Thanks for any help! ccma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] URL Encode >
In one page from a series of pages where I am building arrays for future use: $item4_array = urlencode (serialize ($item4_array)); echo ""; --- On my last page I send an email so I need the info that was stored: $item4_array = unserialize(urldecode($item4_array)); $message .=" DIMS: L $item4_array[2] W $item4_array[3] H $item4_array[4] \n"; $message .="Item Weight $item4_array[1] \n"; > Hey there, > > does anybody have any info regarding urlencode and rawurlencode HTH-- ccma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redirect
look in manual for HEADER and LOCATION - Original Message - From: "Vicor SpÄng Arthursson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:43 AM Subject: [PHP] Redirect > Hi! > > Still new on PHP, converting from vb$cript, I wonder how I do a > redirect... > > In vbscript: > > <% > response.redirect("page.extension") > %> > > In PHP??? > > Sincerely > > Victor > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
what's the OS? - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:34 AM Subject: [PHP] hey, got a question i can't seem to access certain ports, through a nat program i have setup on the computer here with the net, but i was thinking i could use something like socks, because i want to setup some fsockopen() stuff...but i can't use it on the ports i want, just frezzez...works over the lan fine, and over the net on ports i can access... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
well theres your problem...winblows.lol - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: "Christopher Allen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:58 AM Subject: Re: [PHP] hey, got a question > Windows > - Original Message - > From: Christopher Allen <[EMAIL PROTECTED]> > To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 2:45 AM > Subject: Re: [PHP] hey, got a question > > > > what's the OS? > > > > > > - Original Message - > > From: "ReDucTor" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, July 06, 2001 11:34 AM > > Subject: [PHP] hey, got a question > > > > > > i can't seem to access certain ports, through a nat program i have setup > on > > the computer here with the net, but i was thinking i could use something > > like socks, because i want to setup some fsockopen() stuff...but i can't > use > > it on the ports i want, just frezzez...works over the lan fine, and over > the > > net on ports i can access... > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to use/compile ssl with apache and php?
Seb-, http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/ I used this tutorial the first time. It was very straight forward. Remember that you dont need rsaref files anymore in the US. >>could someone explain me what i need to ad to the apache compiling >>string ? >>( i build php in apache ) >>sebastian --ccma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Arggg
PHP PEOPLE, Sorry this is way off topic but can anyone point me to a place where I can find out how to mount/automount a tape drive in Linux? I need to know device name mount commands and tape drive commands etc...Been searching on the net for hours and the bits and pieces are not forming a whole :( Thanks-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mysql_query problem
> $testResult = mysql_query("SELECT * FROM login_table where Pass = $query = "select * from login_table where Pass=password('$password')"; then echo $query to the screen and make sure you see what needs to be there. Also try mysql_error etc.. from the manual GL --ccma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] note to PHP developers
Also, postfix works fine for me... > On a side note, qmail has a wrapper that pretends to be sendmail. You can > overwrite the /bin/mail with it and it will behave and accept mail just like > sendmail, but send it through qmail-smtp. > > > - changed php.ini path -> qmail path -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] a good PHP editor
I wonder if Emacs runs on win2k it ran on win95 great... -ca - Original Message - From: "Michael Champagne" <[EMAIL PROTECTED]> To: "doug" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:16 PM Subject: Re: [PHP] a good PHP editor > VIM on Windows. Free and awesome. www.vim.org > > > Hiya everybody, > > I'm relatively new to PHP and I'm looking for a good text editor on > > win2k for creating/manipulating php pages. Notepad is great if your in a > > bind, and I've tried phpedit and activestate's Komodo and both seem to have > > problems (crashing etc...). Anybody got any suggestions? Free/small fee > > programs doesn't matter Thanks > > > > Doug Henry > > > > > > > > -- > Michael Champagne, Software Engineer > Capital Institutional Services, Inc. > wk: [EMAIL PROTECTED] > hm: [EMAIL PROTECTED] > > > > ** > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of > any financial instrument or as an official confirmation of any > transaction, unless specifically agreed otherwise. All market > prices, data and other information are not warranted as to > completeness or accuracy and are subject to change without > notice. Any comments or statements made herein do not > necessarily reflect the views or opinions of Capital Institutional > Services, Inc. Capital Institutional Services, Inc. accepts no > liability for any errors or omissions arising as a result of > transmission. Use of this communication by other than intended > recipients is prohibited. > ** > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Realm Auth Via Non-Sessions
Greetings: OT (yes)? When a user leaves a realm(.htaccess) from which they have logged into is there any kind of notification back to the server? I would like keep a log of such activities and do not want to do any session type of jizz jazz(cookies etc). I would think that there would need to be some kind of notification back to the server, as when I leave and come back (close browser) I get a new pass dialog popped up...How does Apache know that I have to re-authenticate and can I access this knowledge via php?. Thanks for any OT answers! -ccma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Find and Replace
!!Be careful of this, its super powerful!! try it on 1 test file first and then do the wildcard... from the unix command line: bash>perl -p -i -e s/myself.inc/myself.inc.php/ *.php so its: perl -p -i -e s/original_text/text_to_replace/ file_name(s) - Original Message - From: "Shrout, Ryan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 2:06 PM Subject: [PHP] Find and Replace > This isn't exactly PHP I need help with, but it relates to what I learned > about security. Up until now, I have been using *.inc extensions for my > include files. Well, I didn't realize until recently that anyone can view > these files. So, I want to rename them to *.inc.php. BUT, in almost all of > my PHP pages, there are links to : include ('mydir/myfile.inc'); > > Can someone tell me how to do a recursive find and replace to look for > /myfile.inc and replace it with myfile.inc.php? I am running Red Hat 7.1 > > Thanks! > > Ryan > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Realm Auth Via Non-Sessions
Day late and a dollar short bro! But thanks anyways. > > When the browser quits, it loses its memory of your username/password. > > That's all there is to it. > Also, I was reading somewhere last week at some hosting companies website that they stream http?? What is that? Is it a gimmick? Or does stream=sessions? I am very famiuliar with webservers and their ilk via linux and I have never heard of streaming http... --ccma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Attitude of B van Ouwerkerk
PhP'ers I would suggest that people not think too hard about this and continue programming. Thats right get back to work...:) Have Fun! --ccma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Zend IDE price plans
> > An alternative (non-subscription) plan for the IDE will be announced > > next week. It'll be designed to make the IDE much more affordable for > > everyone, including those who develop for commercial purposes. > > > > Stay tuned! An alternative is xemacs with the correct <.el >file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] html -echo-print
Hello, Is there any way around having to go back and backslash every quote in a html table that contains millions of quotes? I noticed that print " his name's jack"; works for a single quote, but not double I would literally have a thousand quotes to back slash... My only other alternative is to take the table into Star Office and do a replace on ". Thanks for any replies. Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] html -echo-print
JB, yes I do know that, but thanks :) I was looking for: print << of course it was on : http://www.php.net/manual/en/function.print.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Files only available via HTTPS
> On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote: > > I have several PHP files that I only want users to be able to access via > > HTTPS. One way is to place these files only where the https server can see them. heres an example: . . DocumentRoot "/secure/secure_dir1" ServerName server.xxx.net Of course if your non secure server knows about /secure/ its still possible for someone to see them. In this example use diff doc_roots. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL fields
text field > Hello, > > What type of field should I use if I don't want it to have a max length of > characters? > > Thank you, > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] mktime + 4 days
Hi! How to get this to work for every month: $tomorrow = date ("d", mktime(0,0,0,0,date("d") +4 ) ); echo "Today + 4 days is $tomorrow "; screws up Feb et al Thanks, Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] save some typing
Hola: http://www.google.com/intl/en_extra/options/winnetscape.html Its kinda helpful: I modified the above to utilize the www.php.net/some_function Heres the trivial js code: javascript:q=document.getSelection();for(i=0;ihttp://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mail()
> I have a mail script that works fine except that it does not send to the CC > in my header options... nor will it send to multiple addresses can some one > please give me some advice on this... I've looked in the php manual as well > as other web pages but neither have an answer for me. > > $headers .= "cc:[EMAIL PROTECTED],[EMAIL PROTECTED]\n"; // CC to > $mailsend = mail("$address", "$subject", "$body.", "$headers \nContent-Type: > text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit" ); > print ("$mailsend"); Is there supposed to be a "dot" after body? Whats the result in $mailsend? have you tried with just the cc's and no X-header info? Have you tried just these two: $headers = "mailto:cc:[EMAIL PROTECTED], [EMAIL PROTECTED] \n; $mailsend = mail("$address", "$subject", "$body", "$headers " ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Header ("location: test.php");
Hello, I am using the Header call in a script that has multiple submit buttons: if ($submit =1) { Header (location: test1.php); } if ($submit ==2) { Header(location: test2.php); } Should not the form varaibles be passed along to each of these pages respectively? I have about 30 variables that should be passed to each different page...none of these variables are showing up. Do I need to attach these to the url for each different header? such as: Header ("Location: test1.php?add=1&name=juan"); ??? Thanks Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]