View Single Post
Old 11-28-2012, 10:29 AM   PM User | #1
KazeFlame
New Coder

 
Join Date: Sep 2012
Location: Philippines
Posts: 11
Thanks: 9
Thanked 0 Times in 0 Posts
KazeFlame is an unknown quantity at this point
Question [HELP]Parse error: syntax error, unexpected T_VARIABLE

Hello guys. I'm having trouble with the error on my codes. Please can someone help me with this problem?

The Error:


MySQL:


My Code:
PHP Code:
<?php

//Connect to our Database
$connect mysql_connect("localhost","root","") or die("Could not connect to database!");
if(!
$connect)
    die(
"No Database!");
if(!
mysql_select_db("animecore",$connect))
    die(
"No Database Selected!")

//Selecting Table from Database

//Templates
$tem1 "SELECT templates FROM config";
$tem2 mysql_query($tem1) or die ("Could not select template!");
$template mysql_fetch_array($tem2);

?>
I am using WAMPSERVER 2.2
Thanks in Advance!
KazeFlame is offline   Reply With Quote