Re: [PHP-DB] help please... session - database

2001-08-23 Thread Andre P.
Try $link = addslashed($HTTP_SESSION_VARS[HREF]) and then use $link in the sql insert and.. stripslashes(query result) when you retrieve the value and need to display it on the page. hth andre brendan wrote: hello, i have hit a major stumbling block and am now getting really frustrated..

Re: [PHP-DB] Averaging Numbers

2001-08-15 Thread Andre P.
Maybe I am missing the complexity but I would just add them all up as you retrieve them (or where you are printing them out) and then when you finish the loop divide the total by the number of of number you are averaging over have (i.e this would be 15 if you are taking 15 days). something

Re: [PHP-DB] upload problem ...

2001-06-25 Thread Andre P.
Steve, When you use input type=file the web server uploads the file to a temporary directory which it must have write access to, i.e. the user that the httpd process is run as must have write access to /php/tmp. To my knowledge there is no way of allowing the httpd process to write to that

Re: [PHP-DB] How do I backup my MySQL database? asks a Newbie.

2001-06-21 Thread Andre P.
Install phpMyAdmin and this will give you a web interface to manage your DB. You can do a dump of your database using it. Andre Dan Eskildsen wrote: *** NEWBIE ALERT! *** I am only new at this, but I have discovered one thing: I love php and mysql! I now have a

Re: [PHP-DB] raw file header in http

2001-06-21 Thread Andre P.
Try the following: create a link to a script download.php which will read the file (from anywhere on the disk) and send it to the user like this: header(Content-Type: application/force-download); header(Content-Length: .filesize($filename)); header(Content-Disposition: attachment;