Re: [PHP] Generating PINs

2002-05-14 Thread Alvin Tan
Hi, Thanks to everyone for help on this matter. Combined with some SQL insert statements and loops, it works great. Now to get the numbers to a printer... As usual, this list ROCKS lvin At 03:23 PM 5/14/02, Miguel Cruz wrote: On Tue, 14 May 2002, Alvin Tan wrote: This is not really

[PHP] Generating PINs

2002-05-13 Thread Alvin Tan
Hi All, This is not really a PHP question, but seeing that the final application will be in PHP, I figured this'll be the best place to start. I have a client who wants to release a unique PIN for each product they sell which works as a key to get more goodies on the website. How/where can I

Re: [PHP] mysql_query problem (more suggestions)

2001-07-17 Thread Alvin Tan
wrote: Jason, I have tried what yoiu suggested. result is the same. From: Jason Murray [EMAIL PROTECTED] Date: Tue, 17 Jul 2001 15:28:11 +1000 To: 'Brad Wright' [EMAIL PROTECTED], Alvin Tan [EMAIL PROTECTED], PHP General List [EMAIL PROTECTED] Subject: RE: [PHP] mysql_query problem (more

[PHP] regex help

2001-07-16 Thread Alvin Tan
hi all, a little OT here, but need some quick help. I have a bunch of e-mails to convert into sql entries and I'm stuck here. I have: , John Doe, [EMAIL PROTECTED], .. I just need to know what's the regex to switch around the name and e-mail address. TIA, @lvin -- PHP General

Re: [PHP] if string contains...

2001-05-06 Thread Alvin Tan
http://php.net/manual/en/function.strstr.php $varOne = is; $varTwo = this is a string; if(strstr($varTwo,$varOne)) { echo true.; } else { echo false.; } Regards, @lvin At 03:58 PM 5/6/01 +0100, Jamie Saunders wrote: Hi, I want to check whether a string contains a certain word e.g. $varOne =

[PHP] dates

2001-04-16 Thread Alvin Tan
hi all, a little stuck here. trying to pull a bunch of unix timestamps out and show only those that show up today. problem is that when i hit the first match, the rest of the dates don't show. code follows: == $sql = "SELECT * FROM dates"; $result = mysql_query($sql) or

RE: [PHP] Newsgroups like this one?

2001-04-12 Thread Alvin Tan
yes you're right - i seem to have misread plutarck's mail. apologies ;) @lvin -Original Message- From: John R.Marshall [mailto:[EMAIL PROTECTED]] Sent: Friday, April 13, 2001 4:04 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Newsgroups like this one? On 11 Apr 2001 21:07:01 -0700 Alvin

RE: [PHP] Newsgroups like this one?

2001-04-11 Thread Alvin Tan
Hi Plutarck, The 'mailing list' at MySQL _is_ very much like this one and is also very active. Send mail to [EMAIL PROTECTED] to subscribe. Regards, @lvin -Original Message- From: Plutarck [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 11:40 AM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Another Select question

2001-04-09 Thread Alvin Tan
Try option value="Ultra 1" ? if ($system == 'Ultra 1') { echo 'SELECTED'; }?Ultra 1/option @lvin -Original Message- From: Peter Houchin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 12:30 PM To: Php-General@Lists. Php. Net Subject: [PHP] Another Select question can some one

RE: [PHP] inlude_path not in php.ini

2001-04-06 Thread Alvin Tan
Michael, This works for us: Location / php_value include_path "/usr/local/etc/httpd/htdocs/site/inc:." /Location in the httpd.conf. good luck, @lvin -Original Message- From: Temeschinko, Michael [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 11:40 PM To: 'Steve

RE: [PHP] what is wrong with this sniplet?

2001-02-28 Thread Alvin Tan
Hi Jacky, The problem is a HTML one. Use "http://" followed by the address in your a href tag. Regards, @lvin -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:40 AM To: [EMAIL PROTECTED] Subject: [PHP] what is wrong with this sniplet? people,

[PHP] checking image extensions

2001-02-17 Thread Alvin Tan
Hi, Newbie question here. I'm trying to write a function to check an image extension, part of the code is: if (substr($imgName, -4) != ".jpg") my question is what's the syntax for adding (or) ".gif" to this? TIA @lvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,