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 r
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);
It's not very clear what you want but the following could be it:
> i have written code such that initially it will display the value
> correspond to the value 1..after every click it will increment the value
> 2,3...so on..but now it is displaying the value 1 and for after each click
>
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
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"
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"
vider,Isdn,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.
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
sure
8 matches
Mail list logo