Jump to content

Help for a script


adamriley

Recommended Posts

Any help

 

error

-------------------------------------------------------------------------------------------------

"Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\Counter\demo.php on line 23"

-------------------------------------------------------------------------------------------------

 

<?php
if ($visitors_online == '1'){
/* CLOSE PHP HERE BECAUSE WE WANT TO OUTPUT HTML */ ?>
<html>
<body>
<h2>this would be 2 minute wait time</h2>

<?php } else $visitors_online == '0'{ /* OPEN PHP FOR THE if THEN CLOSE IT FOR HTML AGAIN */ ?>
<html>
<body>
<h2>This spot is free</h2>
<?php } // OPEN PHP AGAIN FOR THE CLOSING BRACE?>

Link to comment
https://forums.phpfreaks.com/topic/201114-help-for-a-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.