PHP Code Not Working HELP.

I am getting an error when I run this code

      if($_GET['id'] == "")
            echo = "<div class="floatleft"><h1><strong>Some Text Here</strong></h1></div>";
            echo = "<div class="floatleft"><h1><strong>".gettitle($_GET['id'])." Some Text Here</strong></h1></div>";
      function gettitle($querystring)
            $connection = mysql_connect('servername', 'password', '') or die (mysql_error());
            $db = mysql_select_db('databasename', $connection) or die (mysql_error());
            $query = "select the_description from the_table where the_code = '".$querystring."'";
            $result = mysql_query($query) or die (mysql_error());
            $row = mysql_fetch_array($result);
            return $the_description;

the error i get is:

Parse error: parse error, expecting `','' or `';'' in /var/www/html/ on line 40

Any ideas?

Hopefully a silly mistake on my part.
Who is Participating?
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>            echo = "<div class="floatleft"><h1><strong>Some Text Here</strong></h1></div>";
is a problem:
            echo = "<div class=\"floatleft\"><h1><strong>Some Text Here</strong></h1></div>";

            echo = "<div class=\"floatleft\"><h1><strong>".gettitle($_GET['id'])." Some Text Here</strong></h1></div>";
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.