[PHP] Returns..

2003-09-19 Thread Chris Mach
I have a simple little script that displays news articles that are stored in mySQL database. However, when the script displays the data, it doesn't recognize the returns/enters. So I have to put when ever I want a new paragraph to begin. How can I get my script to recognize the returns? is there

Re: [PHP] Returns..

2003-09-19 Thread Chris Mach
ED]> wrote in message news:[EMAIL PROTECTED] > nl2br() > > Chris Mach wrote: > > I have a simple little script that displays news articles that are stored in > > mySQL database. > > > > However, when the script displays the data, it doesn't recognize th

[PHP] date()

2003-11-14 Thread Chris Mach
Does date() give the local time of the Server? or is it based on something else? Because I have this code: echo date ("F n, Y"); and it should say November 14, 2003 but it echos November 11, 2003. 3 days behind. Is the date wrong on the server? or is this something I can fix? -- PHP General M

[PHP] password protection/encryption

2003-12-06 Thread Chris Mach
Greetings, I'm working on a project that involves a password protected area of a website. Some one also involved brought up the point that this area should be secure (Whit the lock icon indicating it is encrypted). In this particular project the password protected area will be a quote generating

[PHP] empty variable

2004-09-19 Thread Chris Mach
What is the best way to determine if a variable is empty? I have a feeling there is a better way than the way I'm doing it now... if ($variable == "") --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.766 / Virus Database: 513 - R

[PHP] comparing timestamps

2004-06-20 Thread Chris Mach
I want to compare a timestamp in my database with the current time. I want to be able to tell if the timestamp is within 5 mins of the current time. How would I do this? Please? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.70

[PHP] check for special characters...

2004-03-26 Thread Chris Mach
How would I check if a variable has special characters in it like [EMAIL PROTECTED] etc ? and give an error if it contains one of them.

[PHP] mysql_fetch_array

2004-03-26 Thread Chris Mach
I have this query to select the date from my table... SELECT DATE_FORMAT(date1, '%W %M %Y') FROM table How do I know what name mysql_fetch_array assigned to the date_format ?