Re: [PHP] New to PHP, need help.

2002-03-07 Thread Matt Drake
Michele, Possible a dumb question, but does the machine you are running it on have PHP installed and configured to work with the server software? If so, did you name the file correctly? It may need to be called page.php rather than page.html... M On Thu, 7 Mar 2002, Michele wrote: I

Re: [PHP] Add associative element to an an array

2002-03-07 Thread Matt Drake
I'd think $arr['8'] = 6 would work... Using a number (as in $arr[8] = 6) would possibly confuse things, though I can't get to a PHP machine right now so I'm not sure. M On Fri, 8 Mar 2002, Bradley Goldsmith wrote: Hi, Ive got an array of associations like this: [1]=2 [2]=3

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Matt Drake
I don't see why addslashes wouldn't work, but why not roll your own? $dbStr = preg_replace(/'/, /\\'/); I believe that, in MySQL, you can also double-up single quotes to escape them: $dbStr = preg_replace(/'/, /''/); HTH Matt On Wed, 27 Feb 2002, Tim Thorburn wrote: Hi, I've sent a few

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Matt Drake
Whoops...helps if I write it legally. $dbStr = preg_replace(/'/, /\\'/, $dbStr); $dbStr = preg_replace(/'/, /''/, $dbStr); M On Wed, 27 Feb 2002, Matt Drake wrote: I don't see why addslashes wouldn't work, but why not roll your own? $dbStr = preg_replace(/'/, /\\'/); I believe

Re: [PHP] PHP/Java/SOAP

2002-02-21 Thread Matt Drake
Is there a webserver (Tomcat?) that supports both servlets/JSP and PHP? If so, is it possible to have PHP and servlet/JSP code collaborating? I'm looking into using SOAP (apache project's implementation) but I need some of PHP's functionality. You can use Tomcat and Apache together. There's

Re: [PHP] Returning table rows from MySQL

2002-02-18 Thread Matt Drake
On Mon, 18 Feb 2002, Scott Saraniero wrote: I've got a piece of code below that works great for me. Now I would like to modify the rows with alternating colors in the displayed results. Any suggestions on how to do this? Try this: $Count = 0; while ($Row = mysql_fetch_array($Result) {

Re: [PHP] PHP and HTTPS

2002-02-18 Thread Matt Drake
On Mon, 18 Feb 2002, wm wrote: i have written some PHP scripts that work every single time under http. under https (we have a valid security certificate) they work every single time on IE on mac and on NN on mac and pc. on IE on pc a this page cannot be displayed error (with possible

Re: [PHP] Trying to put ips into database

2002-02-08 Thread Matt Drake
On Fri, 8 Feb 2002, Dennis Moore wrote: Not sure what your exact problem is but I did notice you had back ticks(`) in your insert statement. You should be using ('). You may need a where clause in your insrt statement unless you want to populate all rows. Just a couple of thoughts.