Jump to content

[SOLVED] Error


zamp0e

Recommended Posts

Hai there, I've just started learning about PHP and I've been spending some time trying to make a vote thing that will display the results.

 

So far I've come up with everything but the actual Updating the database when someone votes. This is the error I'm receiving

 

Parse error: parse error in ************ on line 123

 

<?php

    }

else {

    if (is_array($_POST['design'])) {

        echo 'You selected: <br />';

        foreach ($_POST['design'] as $a) {

          echo "<i>$a</i><br />";

}

  if($a==Stilig)

  {

  UPDATE roster SET antal='1' WHERE id='1'

  }                                      <--- LINE 123!

        }

    else {

        echo 'Nothing selected';

}

   

}

?>

 

 

 

Any help would be appreciated, thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/159847-solved-error/
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.