[PHP-DB] Authentication question

2003-10-03 Thread Robin Kopetzky
Good evening! I need to setup a user, 'commerce' with a password, that can be accessed from any web server in our farm 'blackmesa-isp.net'. What "GRANT" statement do I need to make this work? I've tried a bunch of the examples in the manual and can't get it right. Specifically, I need the user to

[PHP-DB] Re: Calculating time unused

2003-10-03 Thread Shaun
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "David Robley" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > > says... > > > Hi, > > > > > > I have a table called Bookings which has two important column

[PHP-DB] Re: Hours available in a day

2003-10-03 Thread Shaun
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have a table called Bookings which has two important columns; > Booking_Start_Time and Booking_End_Time. These columns are both of type > DATETIME. Given any day how can I calculate how many hours are available > betwe

RE: [PHP-DB] PHP Issue

2003-10-03 Thread Jack van Zanen
check your apache httpd.conf (or iis configuration or whatever your webserver is) see if you told it to parse php scripts before presenting it to the web. *** LoadModule php4_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php *** or insta

[PHP-DB] PHP Issue

2003-10-03 Thread Michael Cupp, Jr.
I'm trying to 'run' a php pgoram by loading it into my browser, but instead of running, it only displays it to me - how can I fix this?

[PHP-DB] RE: Hyperlinks in MySQL dB

2003-10-03 Thread Jeremy Shovan
-Original Message- From: Gary H. Holabird [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:06 AM To: [EMAIL PROTECTED] Subject: Hyperlinks in MySQL dB This has got to be really simple & I feel really stupid having to ask but... I'm a very green n00b writing my first php sc

Re: [PHP-DB] Round a number

2003-10-03 Thread Ignatius Reilly
I just realized that this does not work with integers such as 80, so one should add a test condition: SELECT IF( ROUND( mycol ) = mycol, mycol, TRIM( TRAILING '.' FROM TRIM( TRAILING '0' FROM mycol ) ) ) Ignatius _ - Original Message - From: "Ignatius

RE: [PHP-DB] Round a number

2003-10-03 Thread Dillon, John
This should do it: http://www.mysql.com/doc/en/Miscellaneous_functions.html FORMAT(X,D) Formats the number X to a format like '#,###,###.##', rounded to D decimals, and returns the result as a string. If D is 0, the result will have no decimal point or fractional part: mysql> SELECT FORMAT(12332

Re: [PHP-DB] Round a number

2003-10-03 Thread Peter Beckman
On Fri, 3 Oct 2003, Shaun wrote: > I have a query that returns a number from culculation in my table. It > returns say 4.00, 8.75, 0.00, 12.50 etc. How can I get MySQL to return the > number without any zeros, i.e. 4, 8.75, 0, 12.5 etc? You can't in MySQL. At least not that I could figure out.

Re: [PHP-DB] Round a number

2003-10-03 Thread Ignatius Reilly
SELECT TRIM( TRAILING '.' FROM TRIM( TRAILING '0' FROM mycol ) ) Ignatius _ - Original Message - From: "Shaun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 03, 2003 5:12 PM Subject: [PHP-DB] Round a number > Hi, > > I have a query that r

RE: [PHP-DB] Round a number

2003-10-03 Thread Gary . Every
Try the rtrim function in php Gary Every Sr. UNIX Administrator Ingram Entertainment (615) 287-4876 "Pay It Forward" mailto:[EMAIL PROTECTED] http://accessingram.com > -Original Message- > From: Shaun [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 10:12 AM > To: [EMAIL PROTE

[PHP-DB] Round a number

2003-10-03 Thread Shaun
Hi, I have a query that returns a number from culculation in my table. It returns say 4.00, 8.75, 0.00, 12.50 etc. How can I get MySQL to return the number without any zeros, i.e. 4, 8.75, 0, 12.5 etc? Thanks for your help -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visi

RE: [PHP-DB] RE: [PHP-INSTALL] Problem by running mysql-connection in php-script

2003-10-03 Thread Michael Scappa
Looks possible that php isn't using that particular ini file. Make sure it's the correct ini file, because your error message has it looking in a different location. Try mysql_connect("127.0.0.1:3306:/tmp/mysql.sock", etc etc etc) for your connect (that might supposed to be the path to socket, no

[PHP-DB] RE: [PHP-INSTALL] Problem by running mysql-connection in php-script

2003-10-03 Thread Ruprecht Helms
On Thu, 2003-10-02 at 22:28, Michael Scappa wrote: > Ruprecht, > > Make sure you have PHP pointing to the right location for the > mysql.sock. "locate mysql.sock". Sometimes its in the /tmp dir. If it is > in another location you can point to it specifically when you call > mysql_connect (refer to

[PHP-DB] Hours available in a day

2003-10-03 Thread Shaun
Hi, I have a table called Bookings which has two important columns; Booking_Start_Time and Booking_End_Time. These columns are both of type DATETIME. Given any day how can I calculate how many hours are available between the hours of 09.00 and 17.30 so a user can see at a glance how many hours the

[PHP-DB] Re: Calculating time unused

2003-10-03 Thread Shaun
"David Robley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > says... > > Hi, > > > > I have a table called Bookings which has two important columns; > > Booking_Start_Time and Booking_End_Time. These columns are both of type > > D

[PHP-DB] online test, plz help

2003-10-03 Thread Muhammad Ibrahim
i'm developing on_line entry test facility in it. Any student who wants to take this test follows the following steps 1. he/she registered him/her self. 2.secondly he enters his user name & password in a login form,if these entries are valid another form appears ,prompting him to enter his comple

[PHP-DB] E-mail marketing tool?

2003-10-03 Thread Tristan . Pretty
Hi there, I've been trolling through hotscripts.com etc, looking for a tool that I can buy/download to use as a email marketing tool. My company has requested the ability to allow users to sign up for certian offers, news items etc, and need the following functionality: Multiple lists, and each