1

Im getting syntax error, unexpected $q at the $q line..

<?php
$sql = "SELECT title FROM `PREFIX_GOOGLEMAPZZZ_markers`"
$q = mysql_query($sql)
echo "<select name=\"title\">";
echo "<option size =30 ></option>";
while ($row = mysql_fetch_array($q)) {
echo "<option value='" . $row['title'] . "'>" . $row['title'] . "</option>";
}
echo "</select>";
?>

1 Answer 1

1

You are missing semicolons at the end of these lines.

 $sql = "SELECT title FROM `PREFIX_GOOGLEMAPZZZ_markers`";
 $q = mysql_query($sql);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.