-
Senior SEO Specialist
php/Html, cant figure this out,?
echo "<table><tr>":
echo "<th><a href="CW1.php?firstselection">Country</a></th></tr>";
if ($QUERY_STRING=='firstselection')
{}
if ($QUERY_STRING=="secondselection")
{}
if ($QUERY_STRING=="thirdselection")
{}
else
{}
i get The error message
"Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'"
echo "<th><a href="CW1.php?firstselection">Country</a></th></tr>";
If i take the quote from "CW1.php?firstselection"
i then get
Notice: Undefined variable: QUERY_STRING
for the if ($QUERY_STRING=='firstselection')
{}
not sure what to do
Join
ACP and get Payment Weekly!
-
-
I recommend you to use a editor with syntax highlightning and you would see what the problem.
echo "<th><a href="CW1.php?firstselection">Country</a></th></tr>";
You see, you use "" around what is echoed. Then you can't use " inside these! Well you can, then you must put a \ before. so it's like this
echo "<th><a href=\"CW1.php?firstselection\">Country</a></th></tr>";
Or you could change the outer " to '. or the inner ' to "
echo '<th><a href="CW1.php?firstselection">Country</a></th></tr>';
or
echo "<th><a href='CW1.php?firstselection'>Country</a></th></tr>";
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Bookmarks