I've got this string: /comp.php?section=view&drawing=68&title=1234 How do I show the title output in php? So that it shows up in: $title .= $model_name; - the title field is called comments in a table... A previous one that worked was: } elseif ($_GET["blogID"] != "") { $query = "SELECT * FROM blog_sets WHERE setslug = '".mysql_real_escape_string($_GET["blogID"])."'"; $result = doQuery($query); $row = mysql_fetch_array($result); $model_name = $row["title_meta"]; $title .= $model_name; } Code (markup):
Is the task to change source-field id a database from "title meta" to "comments"? Then the code will be next: } elseif ($_GET["blogID"] != "") { $query = "SELECT * FROM blog_sets WHERE setslug = '".mysql_real_escape_string($_GET["blogID"])."'"; $result = doQuery($query); $row = mysql_fetch_array($result); $model_name = $row["comments"]; $title .= $model_name; } Code (markup):
Thanks, I think the code I gave isn't relevant. I just wanted to work out how to code if I've got the terms: section=XX&drawing=XX&title=XX ? Thanks