Why do I get this error?
Posted on
16th Feb 2014 07:03 pm by
admin
Error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/runevid/public_html/Quests/finished_tutorial.php on line 18
Did you know?Explore Trending and Topic pages for more stories like this.
Code:
<?php session_start(); ?>
<html>
<head>
<title>CrazyQuest - The online website for quests!</title>
<link type="text/css" href="style.css" rel="stylesheet" media="screen" />
</head>
<body>
<center>
<div id="container" >
<div id="banner" >
<img src="Images/logo.png" alt="" width="414" height="56" border="0" />
<h1>CrazyQuest</h1>
</div>
<?php
$username = "$_SESSION['username']";
//connect
$connect = mysql_connect("localhost","","") or die("Connection failed!");
mysql_select_db("") or die("Database fail!");
//write
$update_complete = mysql_query("UPDATE users SET quest1 = quest1 + 1 WHERE username='$username'");
$points = mysql_query("UPDATE users SET points = points + 3 WHERE username='$username'");
echo "<b><span style='color:green'>You have completed quest and gained 3 points!</span></b>";
}
?>
<div id="footer"><h1>Copyright 2009 - CrazyQuest</h1></div>
No comments posted yet
Your Answer:
Login to answer
236
5
Other forums
help with Get_
ok some how this is not working i am not sure what i am doing wrong here but what this does is when
EU VAT Package 2010
Does any one know whether SAP will be developing new reporting functionality due the new VAT rules t
How do I get the row number from from an sql table query
Hi all
I have a table that I query and it returns a number of rows.
mysql_num_rows($query)
recrawling
Can anyone suggest me how may i know a page is updated before it is being downloaded, so that i can
form submit at godaddy?
Trying to test form submission at GoDaddy and it does not seem to work. Here's the page...
h
Mail sending is slow on server
Why mail is taking time to be send on apache-linux server
Pspell with my own dictionary
Hello!
I've tested two cases using pspell functions.
1)
Code: $dictionary_link = pspell_new
Is it possible to put an entire 500-page book in a database with PHP?
I am working on an intranet and I was wondering if its possible to code php with mysql to enter a fu
Upload file!
Ok i have a form..
Code: <form name="form1" method="post" action=&quo
Preg_match with an array
is there an away to use preg_match with an array?
i want to check a string with an array to s