[PHP] creating a mailbot in php

2004-03-16 Thread Leonard B Burton
Greetings,

I have been trying to come up with a script in PHP to take an email and do a little 
parsing and upload the data into a mysql database.  However I have had a couple of 
glitches.

Would someone be so nice to send me the code to just get it to do something (like 
update a counter or anything) simple that I will be able to tell if the email is 
getting  to the script or not?

My host has an option that allows you to easily make an alias [by way of an html form] 
that will send emails to certain files and I can not tell if it is not working or if 
my script is not working.  I have tried to read around and could not figure it out.  I 
wish I could RTFM but I cant find one.  The few pages I found on the net do not give a 
good enough explaination.  Thanks,

Leonard Burton
Wilmington, NC
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php, mysql How to do a random selection and limit response?

2004-03-24 Thread Leonard B Burton
greetings,

I would like to do a random selection in mysql [select * from members order by rand() 
limit $limit] and then I'd like to insert the items selected into a table [named 
already_selected] with a datetime stamp to make sure one item is only sleceted once 
over a defined period of time.

Would it be best to do the select and then an insert?  Would it be best to do a left 
join in  The select statement?

Can anyone suggest a more efficient way?

Thanks,

Leonard Burton

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] control panel--graphic question

2004-04-02 Thread Leonard B Burton
Greetings,

This is more of a graphic question

For a program I am writting I need to have a control panel to display anything that 
may be wrong.  I would like to use something like a stoplight so that it would be 
easily understood by a lay person.  Does anyone have any comments as to what they have 
used?  Also does anyone have a function/graphic that would be a stop light and 
changing the var would make it either show red, green, or yellow?

Thanks,

Leonard.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] opening cash register drawer

2004-04-02 Thread Leonard B Burton
Greetings,

I am working on a Point of Sale Program for PHP.  I need to find out how to open a 
cash register drawer.  Could anyone give me any info?  Do I need to do this with a 
javascript section?

Thanks,



Leonard Burton

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php