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 > frustrat

Re: [PHP-DB] please, please can we stop this kind of thing ..... !

2001-08-20 Thread Andre P.
Just to put my own in. Allthough I have been programming php for a while I agree with Marky. Manuals are not allways clear and when starting it is often difficult to know what you need to look up. With regards to losing time reading posts surely it is faster to hit delete than go to the bother

Re: [PHP-DB] HTML editors

2001-08-17 Thread Andre P.
I found this link from the phpnuke site. http://venus.prosalg.no/~savage/wysiwyg/ I haven't had time to look at it but it doesn't seem to use activex. looks simple and clear. Andre Ian Grant wrote: >Hi, > >I'm looking for something similar to eWebEdit Pro >(http://www.ewebeditpro.com), but a l

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 lik

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 di

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; filenam

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