Mabe you guys can tell me what is wrong with this code cause I can't find it.
Thanks in advance.
Parse error: parse error in /www/b/bsmlight/htdocs/admin/secure/articles/articles.php on line 33
I get an error similar to this every time it runs into a variable or pretty much any thing related to php.
I have been running other scripts on this server for awhile and have had no problems. I am really stumped and would appreciate and help you can give me.
BTW Winner gets a free cookie 😃
<?php
/-----------------------------------
In this area put a query that will be
used to displays the subjects of the
articles and automatically populates
the form with the data.
-----------------------------------/
// include connection properties such as username, pass, etc.
// include ("../connection_info.inc");
$hostname = "hostname";
$user = "user";
$password = "pass";
$database = "mydb";
$query = "SELECT * FROM Articles"
// Connect to SQL
$db_connect = mysql_connect ($hostname, $user, $password) or die("Could Not Connect to MySQL.");
// Connect to Database
@mysql_select_db ($database);
// Perform Query
$qry_results = mysql_query ($query) or die ("Error: Please check your query and try again.");
// Check to see if the article is being edited or is new
if (!$id = "") {
// Tell the form that it is edited content
$is_edited = "Yes";
// Form is being edited, set the edit ID to number in url
$editID = $id;
}
?>