[PHP-WIN] PHP Math

2003-01-13 Thread James Meers
Simple question, what is the function for doing simple MATH calculations? For example: 10 + 10 James -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Writing to a text file

2003-01-10 Thread James Meers
Hi, I want to create a sort of log/text file, everytime I run a query or something I would like to write/append it to a text file. Does anyone know what function I can use for this? Or even any examples? Cheers James -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http:

RE: [PHP-WIN] date format, php, mysql

2002-11-07 Thread James Meers
Hi, You can use something like this: $todaydatetime = date("Y m d G:i"); That will translate into: 2002 11 07 18:12 or if you want to us 12hour clock try this: $todaydatetime = date("Y m d g:i"); That will translate into: 2002 11 07 6:12 (changed G (hour, 24-hour format without leading zer

RE: [PHP-WIN] MySQL Query

2002-10-25 Thread James Meers
ssage- From: Ignatius Reilly [mailto:ignatius.reilly@;free.fr] Sent: Fri 25/10/2002 12:57 To: James Meers; PHP Helplist Windows Cc: Subject: Re: [PHP-WIN] MySQL Query arrays are not a datatype for MySQL.

[PHP-WIN] MySQL Query

2002-10-25 Thread James Meers
i want to update a field and add an array, this is what i have so far, however it doesnt work, can anyone help? update user_table set categories in ('5','6') where userid='1' James

[PHP-WIN] Mail

2002-10-23 Thread James Meers
Hi, I am trying to use the mail function, below is the code i am using: mail( "[EMAIL PROTECTED]","test","This is a test mail" ); I get an error: Warning: Server Error in F:\milinksroot\test.php on line 2 Does anyone know what i should be looking for to rectify this problem? CHe

RE: [PHP-WIN] Capturing IP Address

2002-08-28 Thread James Meers
Im new to PHP, so I don't know what you mean here? -Original Message- From: Richard Black [mailto:[EMAIL PROTECTED]] Sent: 28 August 2002 13:14 To: James Meers; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Capturing IP Address _SERVER["R

[PHP-WIN] Capturing IP Address

2002-08-28 Thread James Meers
How would I capture the IP address of a user coming to my site and then, putting that information into a database? Jambo

RE: [PHP-WIN] Query within Mail Function

2002-08-20 Thread James Meers
getting a list of all new users. I need to know how to put the list into the message part of the mail function? Jambo -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 20 August 2002 17:12 To: James Meers Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Query within Mail Function

[PHP-WIN] Query within Mail Function

2002-08-20 Thread James Meers
Hi, Please bear with my limited knowledge of PHP... Does anyone know if it is possible to code a sql query within the message part of the mail function, e.g.: mail( "$to_mail","$sumject"," $sql = mysql_query("select * from table") or die("error with query\n"); while ($row =

[PHP-WIN] PHP Cookie

2002-07-31 Thread James Meers
Does anyone know how to create a cookie that doesn't expire? Jambo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] PHP and Cookies

2002-06-24 Thread James Meers
Hi, Does anyone know any good PHP reference/learning sites for understanding how to use Cookies with PHP? Cheers Jambo

[PHP-WIN] Not a PHP problem, it's a MySQL problem

2002-06-18 Thread James Meers
Sorry, its not a PHP problem, it's a MySQL problem. I am trying to do a MySQL query below: select top 10 * from table order by record_number desc However, I am getting the following error: You have an error in your SQL syntax near '10 * from table order by record_number desc' at line

[PHP-WIN] Form Problem

2002-06-05 Thread James Meers
Hello, I have this form and its just not picking up the submit variable however it is posting them!!! Can someone double check this, what have i done? James \n"; } if (isset($submit)) { mysql_query("INSERT INTO $ntable VALUES ('

Re: [PHP-WIN] PHP on IIS5 WIN2K Problem - Help?

2002-04-22 Thread James Meers
gt;news:[EMAIL PROTECTED] ... Try adding IWAM_Machinename -Messaggio originale- Da: James Meers [mailto:[EMAIL PROTECTED]] Inviato: lunedì 22 aprile 2002 10.50 A: [EMAIL PROTECTED] Oggetto: [PHP-WIN] PHP on IIS5 WIN2K Problem - Help? I have installed PHP on my server and it works fine, howev

[PHP-WIN] PHP on IIS5 WIN2K Problem - Help?

2002-04-22 Thread James Meers
I have installed PHP on my server and it works fine, however, whenever executing a script in a new browser window, i always get prompted to enter a username and password!? I have given 'everyone' and 'I_USER' full access to the folder and IIS This is probably a school boy error, anyone know wha