Hi Michael,
Try placing the following at the top of your PHP code:
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 'On');
What error messages do you see on your page?
On Tue, May 6, 2008 at 12:07 PM, Jerry Schwartz <[EMAIL PROTECTED]>
wrote:
> In general, if I have a P
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
19
On 6 May 2008, at 15:39, Michael Condon wrote:
I have a PHP script that seems to be failing. I execute it using
window.location.href("http://www.vote.com/vote2.php";):
$result = mysql_query("update election set Votes = Votes + 1 where
Name='TheGuy'");
if (!$result) {
$message = 'Invalid up
Hi.
try this
or this
regards
On Tue, May 6, 2008 at 4:39 PM, Michael Condon <[EMAIL PROTECTED]>
wrote:
> I have a PHP script that seems to be failing. I execute it using
> window.location.href("http://www.vote.com/vote2.php";):
>
> $link = mysql_connect('localhost', 'login', 'password');
>
At 09:13 AM 4/11/2002, you wrote:
>Ok so this really doesnt have anything to do with MySQL but I thought this
>might be a good placeto ask.
>Ok heres the problem. I am constructing a Message Board with MySQL and php
>(was usingASP) and I dont want the user to reload/repost data. For
>example, say
Hi,
> Ok so this really doesnt have anything to do with MySQL but I
> thought this
> might be a good placeto ask.
Why?
As you say, it's not in any way related to MySQL.
> reload the page and postthe message again! doh!
> Anyways, has anyone come up against a similar problem and found a
> way a
Here's what I do:
Insert their post into the database at the very top of the page. Then use
php's header() function to forward them to another page after the post has
been put into the database. This way, they can reload all they like because
they'll no longer be on the page that puts the post