[PHP] datetime

2003-08-21 Thread Dale Hersh
I am using a mssql database and I have a question regarding the datetime type. When I write a date to the database it store the date in the following format: 6/8/03 But when I extract the date from the database it returns the value in the following format: Jun 8 2003 12:00AM Is there a nice

Re: [PHP] datetime

2003-08-21 Thread Larry_Li
Use date() and strtotime() together. strtotime will convert date string into integer timestamp. Still have any questions, check these two functions online plz. Dale Hersh [EMAIL PROTECTED] 08/22/2003 10:13 AM To: [EMAIL PROTECTED] cc: Subject:[PHP]

RE: [PHP] datetime

2003-08-21 Thread Cody Phanekham
Convert Jun 8 2003 12:00AM to a timestamp which can then be used with the date() function to format the date to whatever format you want. Lets say you've inserted the date as '6/8/03' and you want the data to remain the same when you retrieve it: ? $ts = strtotime(Jun 8 2003 12:00AM); echo

Re: [PHP] Easy XML PHP tutorials ?????

2003-08-21 Thread Burhan Khalid
On Friday, August 22, 2003, 2:16:06 AM, Joe wrote: JH Hello all. does anyone have any very easy XML tutorials . I have a JH simple weather feed I want to implement. but no XML experience JH thanks shameless plug I have one at my site, complete with an example and downloadble code. I also wrote

[PHP] Stopping Output

2003-08-21 Thread Oliver
I'm in the process of making a forum in PHP, and am wondering if there is a way to just stop sending stuff the the client(like if they're banned). I'm including a php file in all the .php files that make up the forum(reads the forum configuration file, sets up style sheets, etc). I'd really like

[PHP] How to make an argument optional...confirmation...

2003-08-21 Thread Jonathan Villa
I want to create a function with an optional argument/parameter but have never read a concrete answer on how to do it. This is what I am assuming function test(arg1,arg2,arg3 = null) { arg3 will be optional } is this correct? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] google style paginating

2003-08-21 Thread olinux
PEAR::DB_Pager is a good example of how to do this. The getData function is all you need. http://pear.php.net/DB_Pager http://cvs.php.net/co.php/pear/DB_Pager/Pager.php?login=2r=1.4 olinux --- Ted Conn [EMAIL PROTECTED] wrote: Hi I am new to this newsgroup and I plan on replying to all the

[PHP] How to open random Flash page with hyperlink?

2003-08-21 Thread Phillip Pang
Hey everyone, I'm new to using PHP so please bear with me. I'm trying to create a hyperlink that will open a random Flash page so that users will see a different flash module each time. Here is some of the code that I wrote but I'm not sure if it'll work since I'm not very good at coding. Oh

RE: [PHP] How to make an argument optional...confirmation...

2003-08-21 Thread Ralph Guzman
function test($arg1, $arg2, $arg3 = ) { if(isset($arg3)) { // do whatever with $arg3 } } -Original Message- From: Jonathan Villa [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 7:56 PM To: [EMAIL PROTECTED] Subject: [PHP] How to make an argument

Re: [PHP] How to make an argument optional...confirmation...

2003-08-21 Thread Tom Rogers
Hi, Friday, August 22, 2003, 12:55:37 PM, you wrote: JV I want to create a function with an optional argument/parameter but have JV never read a concrete answer on how to do it. JV This is what I am assuming JV function test(arg1,arg2,arg3 = null) JV { JV arg3 will be optional JV } JV

Re: [PHP] How to make an argument optional...confirmation...

2003-08-21 Thread Jonathan Villa
Great, thanks!! On Thu, 2003-08-21 at 22:20, Tom Rogers wrote: Hi, Friday, August 22, 2003, 12:55:37 PM, you wrote: JV I want to create a function with an optional argument/parameter but have JV never read a concrete answer on how to do it. JV This is what I am assuming JV function

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-21 Thread Cody Phanekham
Phillip, pretty close. only a few things that are missing/incorrect. my corrections are marked by a # -Original Message- From: Phillip Pang [mailto:[EMAIL PROTECTED] // random_menu.html head ?php $i = rand(0,3); ? /head body a href = www.x.com/random.php?i=$ix/a # you need

Re: [PHP] How to open random Flash page with hyperlink?

2003-08-21 Thread murugesan
Hello some more changes param name=movie value=?php echo $value ? embed src=?php echo $value ?/embed -murugesan - Original Message - From: Cody Phanekham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 22, 2003 9:32 AM Subject: RE: [PHP] How to open

RE: [PHP] Easy XML PHP tutorials ?????

2003-08-21 Thread Joe Harman
Burhan! Thanks a lot... This is great... I am going through it right ... Have a great day! Joe -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:35 PM To: Joe Harman; [EMAIL PROTECTED] Subject: Re: [PHP] Easy XML PHP tutorials

FW: [PHP] How to open random Flash page with hyperlink?

2003-08-21 Thread Cody Phanekham
-Original Message- From: murugesan [mailto:[EMAIL PROTECTED] some more changes param name=movie value=?php echo $value ? embed src=?php echo $value ?/embed Murugesan, both ways are correct. Its just that i'm used to using the short open tag :)

[PHP] Re: Stopping Output

2003-08-21 Thread Jean-Christian IMbeault
Oliver wrote: I'm in the process of making a forum in PHP, and am wondering if there is a way to just stop sending stuff the the client(like if they're banned). What about exit or die? Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: error when using $this

2003-08-21 Thread Jean-Christian IMbeault
Jonathan Villa wrote: I am in a class as well as a constructor. class DBI { //var declarations function DBI() { $retVal = true; $this-setDBConn(mysql_connect('localhost',$this-_dbuser,$this-_dbpwd)); if ($this-getDBConn()

[PHP] timestamp

2003-08-21 Thread John Taylor-Johnston
Not teasing, I know I could do this with some ready made script, but I want to make my own. I'm making a counter. CREATE TABLE `counter` ( `IPAddress` VARCHAR NOT NULL , `RemoteHost` VARCHAR NOT NULL , `TimeStamp` TIMESTAMP NOT NULL, `Date` VARCHAR NOT NULL ) Question 1, how do I

Re: [PHP] OT-Re: worm on th list

2003-08-21 Thread Jerry M. Howell II
On Wed, Aug 20, 2003 at 11:11:43AM -0400, andu wrote: Is this worm/virus windows specific? It appears so but considering a good percent of users are MS/Outlook users this is a bad one. Got over 100 yesterday, 100+ the day before and looking at the same today. Considering I hardly ever have

<    1   2