[PHP] is there a number translation function?

2005-10-29 Thread Linda H
Hi, Does anyone know of a function for translating a decimal number into an English number. In other words, if you pass it 1 it will return 'one', if you pass it 127 it will return 'one hundred twenty seven', and etc. Thanks, Linda -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] curious (and frustrating) php/apache behavior

2005-10-29 Thread Linda H
, if there is any php code in the include, you can't rely on the include being inside a php block. You must put a php block inside the include as well. This is true no matter how you name the include file (.php, .inc, .htm). Linda H -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Retrieve Data Formated from Text field

2005-10-29 Thread Linda H
that connects it to the main record, the text, and a sequence number that tells you the order in which the paragraphs should be displayed). Linda H -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date confusion

2005-07-27 Thread Linda H
Hi, I must admit I am surprised at the paucity of date and time functions in PHP. I have a date stored in a MySQL database in field of datatype date. PHP doesn't seem to have a function I can use to format it for print. I tried the following but regardless of the value in the date field, it

[PHP] PHP and Perl

2005-07-23 Thread Linda H
I am needing to write a front end for an online application written in Perl. Is there a way for PHP to call a module or function written in Perl? Thanks, Linda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Hi, I'm trying to code a form that will call itself. The first time it is called (by a link), it should display the empty form. If it was called by a submit to itself, it will validate and then process or re-display the form if it didn't pass validation. In Programing PHP I found a

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Where is fahrenheit? change the input name... fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; Linda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Where is fahrenheit? change the input name... fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; Linda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Linda H
For those who didn't join this thread at the beginning, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. I installed in the sequence - MySQL, then Apache, then PHP. MySQL was running when the others were installed (which is what the book I am using seemed to

Re: [PHP] Re: SOLVED! Need help with PHP / MySQL connect problem

2005-07-18 Thread Linda H
do you have this in your php.ini extensions? extension=php_mysql.dll yes Make sure you extension path is referencing its location also so it can find it... for example: extension_dir = c:/php/ext/ I changed this and now I can connect to MySQL! Haven't runa query yet, but I think I'm

[PHP] Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
Hi, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. I can run scripts with PHP and HTML statements and see correct output in my browser. But when I try to connect to MySQL I get nothing, including no error messages. One book I have says to run the following

[PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
have notices and warnings turned off in php.ini: Find php.ini (not sure where it installs to in Windows version), and set error_reporting = E_ALL. This will show all notices and warnings generated by your PHP code; extremely usefull in debugging. Matt Darby Linda H wrote: I'm running MySQL

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
Try this just for kicks: ? aslkdjfalsd; ? Nope - nothing :-( See if this will output errors. It's rather hard to debug without error messages ;) No kidding! If I remember correctly, isn't php.ini supposed to be in c:/PHP? It came in c:/php5 as php.ini-recommended. My instructions

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
I added the following to the top of my script: ?php echo phpinfo(); ? Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wrong, though I don't understand a lot of it. I ried reinstalling MySQL, Apache, and PHP. No change.