List:General Discussion« Previous MessageNext Message »
From:Jerry Schwartz Date:May 6 2008 6:07pm
Subject:RE: PHP Question
View as plain text  
In general, if I have a PHP-generated page that produces a blank page, I
execute the PHP code from the command line. It will probably fall over dead
somewhere along the line, but you'll know if there are any syntax errors.

Regards,

Jerry Schwartz
The Infoshop by Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341

www.the-infoshop.com
www.giiexpress.com
www.etudes-marche.com

>-----Original Message-----
>From: Michael Condon [mailto:admin@stripped]
>Sent: Tuesday, May 06, 2008 10:39 AM
>To: mysql@stripped
>Subject: PHP Question
>
>I have a PHP script that seems to be failing. I execute it using
>window.location.href("http://www.vote.com/vote2.php"):
>
><?php
>$link = mysql_connect('localhost', 'login', 'password');
>if (!$link) {
>    die('Could not connect: ' . mysql_error());
>}
>$result = use election
>if (!$result) {
>    die('Could not connect: ' . mysql_error());
>}
>$result = mysql_query("update election set Votes = Votes + 1 where
>Name='TheGuy'");
> if (!$result) {
>    $message  = 'Invalid update: ' . mysql_error() . "\n";
>    $message .= 'Whole query: ' . $result;
>    die($message);
>
>mysql_close($link);
>?>
>
>
>--
>MySQL General Mailing List
>For list archives: http://lists.mysql.com/mysql
>To unsubscribe:    http://lists.mysql.com/mysql?unsub=1
>infoshop.com




Thread
MySQL (mysql-5.0.54)Kaushal Shriyan6 May 2008
  • Re: MySQL (mysql-5.0.54)Juan Eduardo Moreno6 May 2008
  • PHP QuestionMichael Condon6 May 2008
    • Re: PHP QuestionSalah Nait-Mouloud6 May 2008
    • Re: PHP QuestionStut6 May 2008
    • RE: PHP QuestionJerry Schwartz6 May 2008
      • Re: PHP QuestionDarryle steplight6 May 2008
  • Security Web SiteMichael Condon6 May 2008