[PHP-DB] Help needed

2004-10-04 Thread Manoj Japher
hi, I am new to PHP and I am not sure if this is the right forum. I am trying to run PHP thro webmin using CGI scripts. PHP runs fine except that when I am trying to read variables coming thro' a form after hitting the submit button, I get NULL values. I can read and write to the database wi

[PHP-DB] Number Conversion

2002-10-18 Thread Manoj Japher
hi, I would like to format my output. I would like to represent my integer outputs as 2,000 instead of 2000 which it prints by default. For e.g. I want 200 to be printed as 2,000,000 Do we have any functions which does that? Thanks in advance, Best Regards, Manoj "Life,it is not a pro

Re: Re: [PHP-DB] Number Conversion

2002-10-18 Thread Manoj Japher
hi, thanks ryan, marco and matias for your quick response. Solved my problem. Thanks once again. Best Regards, Manoj On Fri, 18 Oct 2002 Marco Tabini wrote : number_format(): http://ca.php.net/manual/en/function.number-format.php On Thu, 2002-10-17 at 14:52, Manoj Japher wrote: > hi, &g

[PHP-DB] A Doubt

2002-08-28 Thread Manoj Japher
hi, I have a question. Hoping someone may help me out. Can a PHP page say file "abcd.php" access a variable $xyz which is used in another file "mnop.php"? I mean can I refer to a variable whose value has been set in some other file. The point is that the file "mnop.php" after finishing i

[PHP-DB] Mail Function

2002-08-27 Thread Manoj Japher
hi, I know this question is in the wrong group, but I hope someone maybe able to help me out. I need to use the mail() function in my code to send out mails which I am able to do successfully. But I am not able to set the 'from address' in the mail I sent. It always varies. Can I set the fro

Re: Re: [PHP-DB] Date Subtraction

2002-08-21 Thread Manoj Japher
>weeks, months, >years etc > >i realize there could be flaws with this b/c it just subtracts 24hours, but >it works > > > > "Manoj Japher" > fmail.com> cc: >

[PHP-DB] Date Subtraction

2002-08-21 Thread Manoj Japher
hi, Is there any way I can get previous day's date, like we get current date by using getdate() or date() function. I mean is there some in-built function in PHP which can subtract date to give me yesterday's date. I am currently calculating it using some code, which I have written and it is

[PHP-DB] Help Needed

2002-08-01 Thread Manoj Japher
hi, I have started working with PHP-MySQL recently. I have been getting a warning message which i am not able to debug. Could some one pls help me out? The message is Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/apache2/htdocs/verify.php on