RE: [PHP] counting number of records in a MySQL table; how do I get

2002-10-03 Thread Jason D
An alternative way is to add a primary or unique key and make the code snippet like this: mysql_query(INSERT ignore into AuthNum (FirstNum, LastNum, NextNum, KeyField) VALUES (1,2,3,1),$dblink); mysql_query(Update AuthNum Set FirstNum = 1, LastNum = 2, NextNum = 3,$dbLink); If there is a

Re: [PHP] reg exp matching/replacing

2002-10-03 Thread Jason D
Jen, Don't use eregi_replace when str_replace will do. $contents = str_replace($matches[0][$i], $blah, $contents); Also the dots should be escaped or gif and jpg without dots before them will be matched. preg_match_all('{\/*[A-z0-9_/-]+(\.gif|\.jpg)}', $contents, $matches);

[PHP] RE: Incrementing the value

2002-10-04 Thread Jason D
It's not very clear what you want but the following could be it: ?if(!isset($_GET['hid'])) {$h=1;} else {$h=$_GET['hid'];}? a href=Delay.php?hid=?php echo $h+1; ? img src=Gif/nextque.gif border=0/a i have written code such that initially it will display the value correspond to the value

[PHP] IMAP

2002-03-14 Thread Jason D. Williard
I would like to begin working with mail servers in PHP, with the intent of creating a webmail system for my site. I am trying to get things working, but am not exactly sure how to get everything installed and configured correctly. I know that I have to install a c-client library, but am not

[PHP] Parsing Text File

2002-06-15 Thread Jason D. Williard
,56K,CreateDate,Active,Timezone,ModDa te,ModNote 403 -770 -4904 ,CALGARY,AB,CAN,T2,Y,Y,Apr 29 2002 12:00:00:000AM,I,GMT-0700,, As for variables, I need the following: Split Number into $AreaCode $Number 403 770-4904 $City $State $Country Thanks for any help. Jason D. Williard -- PHP

[PHP] Parsing a local file

2003-07-29 Thread Jason D. Williard
I am trying to build script that will parse a file on the user's computer. There are 2 things that I am not quite sure about. 1) How to read a file on the user's computer, and not on the server. 2) How to parse a line similar to the one below: 7/29/2003 , Report Title , Page , Agent Name , 5200

[PHP] Parsing a local file

2003-07-29 Thread Jason D. Williard
I am trying to build script that will parse a file on the user's computer. There are 2 things that I am not quite sure about. 1) How to read a file on the user's computer, and not on the server. 2) How to parse a line similar to the one below: 7/29/2003 , Report Title , Page , Agent Name , 5200

[PHP] Calendar

2003-03-01 Thread Jason D. Williard
Is there an easy way to create a calendar in PHP, such as a calendar function? All I need is a dynamically created calendar to link to other pages. Jason D. Williard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php