[PHP] Japanese entry into MySQL and into emails

2003-10-30 Thread Dave G
setting the character set. My web site is on a virtual host, and I don't know if I have access to make such adjustments. Can someone please explain in beginners terms how do I set up my PHP scripts to enter Japanese kanji safely into a database and into an email? -- Cheers! Dave G [EMAIL

[PHP] Endless 'while' loops?

2003-10-30 Thread Dave G
loop's control structure. It doesn't ever say anything like $subscriber ++1. Nor does $result have anything act upon it which would change it. So to me they both look static, and this loop looks endless. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] Japanese entry into MySQL and into emails

2003-11-01 Thread Dave G
(), but the technical vocabulary is beyond me. Can someone help me tweak this code to successfully send a kanji email? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Endless 'while' loops?

2003-11-02 Thread Dave G
, $mailcontent, $fromaddress); } Why is this not parsing? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Endless 'while' loops?

2003-11-03 Thread Dave G
! In any case, I very appreciative of the many valuable tips offered, and I believe tightening up the code as suggested by people on this list helped me see my script better and isolate the problem. Many thanks to David, Jay, Hanuska, Leif, and Teren for their comments! -- Cheers! Dave G

RE: [PHP] Japanese entry into MySQL and into emails

2003-11-03 Thread Dave G
. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Japanese character validation

2003-11-08 Thread Dave G
. Optimistically looking forward to seeing more technical discussion on how to accomplish this. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multiple table rows into an array, and creating a calendar

2003-11-12 Thread Dave G
table roughly 30 times each time the page is accessed, and that can't be right. I'm sure this is better handled with arrays, but I can't quite figure out the logic and the commands. Can anyone help me out with this? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http

RE: [PHP] multiple table rows into an array, and creating a calendar

2003-11-12 Thread Dave G
to get the results of multiple rows into an array. But that seems unnecessarily complicated. Is there no command to take multiple rows and place them into an array? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Why is this code not working?

2003-11-12 Thread Dave G
looking? What's going on? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Calendar

2003-11-12 Thread Dave G
://www.devshed.com/Server_Side/PHP/MilesToGo/page1.html -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Why is this code not working? [SOLVED]

2003-11-12 Thread Dave G
() and mysql_fetch_row(), but the results, were exactly the same (or close enough that I don't remember otherwise). So I suspected that the problem lay elsewhere and didn't mention it. But thank you for suggesting alternatives. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] Why would this eregi() function not work?

2003-11-13 Thread Dave G
, like so: [EMAIL PROTECTED] Then it passes. Looking at my eregi() function, I've included hyphens as a valid character, and escaped them out with slashes in order that they work within the square brackets. Why would this email be rejected? -- Cheers! Dave G [EMAIL

RE: [PHP] Why would this eregi() function not work?

2003-11-13 Thread Dave G
legal in an email address... If it wasn't, the user couldn't have emailed me to tell me that he wasn't having success in registering on my form. Or could he? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Why would this eregi() function not work?

2003-11-14 Thread Dave G
confused why hyphens wouldn't still need escaping. Hyphens are used to express a range of characters. If there's a hyphen there, won't PHP think I'm looking for a range from nothing to nothing? Or is it clever enough to figure out what's going on? (!eregi('[EMAIL PROTECTED]', $email) -- Cheers! Dave

RE: [PHP] Why would this eregi() function not work?

2003-11-14 Thread Dave G
for a reference. Thanks! -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Set time zone

2003-11-16 Thread Dave G
on a time zone. If anyone has pointers on that as well, that would be greatly appreciated. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL Time Zones, correct codes, and global variable setting (was: Set time zone)

2003-11-17 Thread Dave G
. So, question two is, how can I tell which is the right code to set TZ to? JST? Japan? Your help is much appreciated. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Compensating for time zones in PHP

2003-11-17 Thread Dave G
on the same server. So I need to compensate for different time zones between my script and my MySQL server. But I can't figure out how to do that since I don't know why there is a difference in the first place. Any help would be much appreciated. -- Cheers! Dave G [EMAIL PROTECTED

RE: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread Dave G
This is, I suppose, a completely off topic thread. However, I just read the web page http://www.unicom.com/pw/reply-to-harmful.html and I was completely unconvinced. In all the years that I have belonged to and run mailing lists, I have never experienced any difficulties. Period. Never. It has

RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Dave G
of considering alternate viewpoints seems oxymoronic to me. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Dave G
that the point of a list is to have open discussion, that people join precisely for the advantage of participating in a group, and so the postings should default to going to the group, with secondary options for posting off list. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Dave G
. That is where I am starting from, it's got nothing to do with anyone's choice of software on either the client or server side. -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Add Reply-To to this list(s) [SOLVED, for me, anyway]

2003-11-26 Thread Dave G
! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Add Reply-To to this list(s) [SOLVED, for me, anyway]

2003-11-26 Thread Dave G
I'm on XP. I would change over to Linux in a heartbeat if Adobe products were available on that OS, but alas, they are not, and the GIMP is, by their own description, not a Photoshop killer. I'm considering the Opera M2 mailer, but it looks kind of immature. -- Cheers! Dave G [EMAIL

[PHP] Finding array in MySQL (I'm not asking the right question)

2003-12-02 Thread Dave G
please point me in the right direction? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Finding array in MySQL (I'm not asking the right question)

2003-12-02 Thread Dave G
to the database as possible. Is that a correct assumption, or am I wrong there? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Finding array in MySQL (I'm not asking the right question)

2003-12-02 Thread Dave G
table WHERE id IN (' . implode(',',$array) . '); ... ? -- Cheers! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [OT MySQL] Syntax for selecting within a range of time from database

2003-12-04 Thread Dave G
I'm after something like the following (I put in question marks where I'm not sure how that variable would be formed)? SELECT date(?) FROM table WHERE DATE_ADD(now(?), INTERVAL 72 HOURS) -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] ereg is failing on this simple test

2003-12-12 Thread Dave G
Why is this test failing? If (ereg(^[a-zA-Z0-9\s.\-_']+$, $data)) { I'm very new to PHP, so I may be barking up the wrong tree, but what is that s doing after the slash? I don't know if it's the cause of the problem, but as far as I know it's superfluous. -- Yoroshiku! Dave G [EMAIL PROTECTED

[PHP] PHP and Palm Pilot interaction

2003-12-15 Thread Dave G
. -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why won't this form post session variables?

2003-12-21 Thread Dave G
type=text name=episodeTitle size=75br'; echo 'Text:br'; echo 'textarea name=episodePP rows=10 cols=55/textareabr'; echo 'input type=submit name=submitButton value=Upload'; echo '/form'; } -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Why won't this form post session variables? [SOLVED]

2003-12-21 Thread Dave G
. And so quickly, too! Much appreciated! -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I make these two MySQL queries into one line?

2003-12-23 Thread Dave G
FROM members WHERE active = yes AND member_id = . $query1Results But surely there's a way to collapse this into one MySQL line. -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do I make these two MySQL queries into one line? [SOLVED]

2003-12-24 Thread Dave G
Chris, Thank you! I will look on the net for left joins, which is a bit new to me, and I'll join a MySQL list, since I can see I'm going to have more MySQL questions in the future. Your reply is much appreciated, especially since it came so fast! -- Yoroshiku! Dave G [EMAIL

[PHP] Is a while loop the most efficient way to send out multiple emails?

2003-12-30 Thread Dave G
? Is it the mail() command that takes time, or the mysql_fetch_array(), or both? Any suggestions would be greatly appreciated. -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] eregi filter stopping valid email address, part two

2004-01-06 Thread Dave G
. Is it that there are two many periods? -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] eregi filter stopping valid email address, part two

2004-01-06 Thread Dave G
. Thank you for the link. -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] str_replace to replace /n with p not having desired effect.

2004-02-19 Thread Dave G
of blah blah blah./p The output I desire is this: p class=contentBlah blah blah blah./p p class=contentAnother line of blah blah blah./p p class=contentA third line of blah blah blah./p How do I correct my code to accomplish this? Thank you. -- Yoroshiku! Dave G [EMAIL

RE: [PHP] str_replace to replace /n with p not having desiredeffect. [SOLVED]

2004-02-19 Thread Dave G
! That's done the trick. -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Slight cleaning of code needed in str_replace command.

2004-02-20 Thread Dave G
Shouldn't the syntax that I have place the new line *after* the /p tag? I'm trying to get it to look like this: p class=contentblah blah blah blah/p p class=contentblah blah blah blah/p p class=contentblah blah blah blah/p Any advice would be most welcome. -- Yoroshiku! Dave G [EMAIL

RE: [PHP] Slight cleaning of code needed in str_replace command.

2004-02-21 Thread Dave G
how the string input going into the command is parsed (it comes from a MySQL query), or about how the command interprets line breaks. Perhaps someone could offer something a little more concrete than essentially recommending I just 'try different stuff'. -- Yoroshiku! Dave G [EMAIL PROTECTED

RE: [PHP] Slight cleaning of code needed in str_replace command.

2004-02-23 Thread Dave G
that the person asking is not willing to work or that they haven't already attempted to work at it. Sometimes it just means that the person asking doesn't know all the angles possible. Thanks for your help. -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http

RE: [PHP] Fill strings with nbsp;

2004-03-22 Thread Dave G
I was searching for a php function which fills empty spaces in string varibales with nbsp;, but could not find one. Wouldn't str_replace do it? http://jp2.php.net/str_replace -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] why doesn't this work ?

2004-04-18 Thread Dave G
. If you're running your own server, then you'll need to consult someone more advanced than I. Also, I can't ensure there aren't any errors or drawbacks to my advice, I'm just relaying how my web hosting service seems to handle the issue. Hope that helps. -- Yoroshiku! Dave G [EMAIL PROTECTED

RE: [PHP] SMTP and changing the character set

2004-05-08 Thread Dave G
to some experimenting as well, as I'm not sure if all servers behave the same on this issue. Hope that helps. -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [newbie] Can PHP be a security risk if it's just connecting to MySQL?

2004-05-17 Thread Dave G
to access PHP functions that I'm not aware of. Can someone please shed a little light on this matter? Naturally I want to try and be as secure as possible. -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] [newbie] Can PHP be a security risk if it's just connecting to MySQL?

2004-05-18 Thread Dave G
held in a TEXT column? I'm not totally sure I have the concepts right, but in any case, would anyone be willing to explain a little further what one would do to ensure proper validation and escaping of text input from users in order to increase security? -- Yoroshiku! Dave G [EMAIL