Re: [PHP-DB] Parse error

2009-09-23 Thread Chris
Ron Piggott wrote: Let me try this is a different way. What is the variable which I am able to retrieve? I am expecting the result to be a 0, 1 or 2. Your original problem was getting a parse error. Your query is not php code - step 1 is to fix that. Once you've done that, post the new

Re: [PHP-DB] Parse error

2009-09-23 Thread Chris
Ron Piggott wrote: This is the actual code. What should I have? Same as when you do a query normally. $query = "SELECT ... WHERE "; $result = mysql_query($query); . On Thu, 2009-09-24 at 13:20 +1000, Chris wrote: Ron Piggott wrote: The following code gives me this error message:

Re: [PHP-DB] Parse error

2009-09-23 Thread Chris
Ron Piggott wrote: The following code gives me this error message: Parse error: syntax error, unexpected ':' in /home/thev4173/public_html/test.php on line 8 It is referencing the : that follows EasterDate (and will eventually get mad at ChristmasDate) mysql_connect('localhost',$username,$pas

[PHP-DB] Parse error

2009-09-23 Thread Ron Piggott
The following code gives me this error message: Parse error: syntax error, unexpected ':' in /home/thev4173/public_html/test.php on line 8 It is referencing the : that follows EasterDate (and will eventually get mad at ChristmasDate) mysql_connect('localhost',$username,$password); @mysql_select

[PHP-DB] one input, much mails, insert in db

2009-09-23 Thread Emiliano Boragina
Hello again… I could explode and/or replace the “, ” for “”. But how do I get each mail if the client type on the textarea a lot of mails, and insert in the data base? I dont understand how use for or for each to do this... Thanks a lot +

RE: [PHP-DB] more than one mail separate with comma or space insert one register for each mail

2009-09-23 Thread Emiliano Boragina
Sorry Vinay… I dont read right your answer... sorry a lot... Thank you! + _ // Emiliano Boragina _ // Diseño & Comunicación // +

RE: [PHP-DB] more than one mail separate with comma or space insert one register for each mail

2009-09-23 Thread Emiliano Boragina
Thank… but the question is “how” and not “what”... “what” I must do... I know... dont know “how” Thanks anyway + _ // Emiliano Boragina _ // Diseño & Comunicación // +

Re: [PHP-DB] Need help in PHP file Management System

2009-09-23 Thread nagendra prasad
Hi Vinay, Eric & Everyone, Sorry, I was down with fever 'malaria' since last Friday. I was hospitalized for 3 days. It will take more 2-3 days for me to start working again on my project. Anyways till now I didn't get anything which will solve my issue. Lets see if anyone comes with something new.

Re: [PHP-DB] Need help in PHP file Management System

2009-09-23 Thread Vinay Kannan
Hi Nagendra, Any progress on the task you were at? On Fri, Sep 18, 2009 at 12:40 AM, nagendra prasad wrote: > Eric, I am new to file or content management. So, if possible can you send > me few scripts or some links from where I can learn more about it? > > > Best, > >

[PHP-DB] more than one mail separate with comma or space insert one register for each mail

2009-09-23 Thread Emiliano Boragina
Hello… I must do a form with only one input text. In this the client want to write more than one mail, separte with comma or white space. But each mail must be a register in the table in the data base. How do I do this? +

Re: [PHP-DB] scheduler

2009-09-23 Thread Richard Quadling
2009/9/23 Vinay Kannan : > Thank You Neil ! > > So if I write in a command like C:\php\php.exe C:\path\to\script.php in a > batch file, and have another batch file to run it at given time frames, then > the PHP file would make the updates and perform the functionalities that its > required to do, i

Re: [PHP-DB] scheduler

2009-09-23 Thread Vinay Kannan
Thank You Neil ! So if I write in a command like C:\php\php.exe C:\path\to\script.php in a batch file, and have another batch file to run it at given time frames, then the PHP file would make the updates and perform the functionalities that its required to do, is it? coz what I have on my mind is

Re: [PHP-DB] scheduler

2009-09-23 Thread Richard Quadling
2009/9/23 Vinay Kannan : > Hi, > > I am developing a web application in PHP, the db is mysql. > > I want to develop something like a batch file, which would run everyday, > query mysql and throw the output to another table which would then perform > some additional functions. > > Is something like

Re: [PHP-DB] scheduler

2009-09-23 Thread Niel Archer
> Hi, > > I am developing a web application in PHP, the db is mysql. > > I want to develop something like a batch file, which would run everyday, > query mysql and throw the output to another table which would then perform > some additional functions. > > Is something like this possible?? i am w

Re: [PHP-DB] scheduler

2009-09-23 Thread Phpster
Scheduled task? Bastien Sent from my iPod On Sep 23, 2009, at 6:46 AM, Vinay Kannan wrote: Hi, I am developing a web application in PHP, the db is mysql. I want to develop something like a batch file, which would run everyday, query mysql and throw the output to another table which would

Re: [PHP-DB] scheduler

2009-09-23 Thread Samar Hedaoo
If you had been using linux, I would have suggested *cron* for job scheduling. On Windows, there should be something like Task Scheduler for the same. You can write the code for database query and dumping in PHP and then have a batch file containing "php yourfile.php" scheduled to run using the ab

Re: [PHP-DB] scheduler

2009-09-23 Thread Kamil Walas
Hi, try this: http://cronw.sourceforge.net/ Kamil Walas Vinay Kannan pisze: Hi, I am developing a web application in PHP, the db is mysql. I want to develop something like a batch file, which would run everyday, query mysql and throw the output to another table which would then perform some

[PHP-DB] scheduler

2009-09-23 Thread Vinay Kannan
Hi, I am developing a web application in PHP, the db is mysql. I want to develop something like a batch file, which would run everyday, query mysql and throw the output to another table which would then perform some additional functions. Is something like this possible?? i am working on windows