|
-
October 17th, 2007, 07:56 PM
#1
Junior Member
php script error help?
Iv been following through a tutorial on making a news system with php and sql, after alof of noncing around iv managed to get most of the system to work except this error.
Parse error: syntax error, unexpected T_VARIABLE, expecting ']' in /home/welshywoo/www/read_more.php on line 5
Can anyone help me out with the syntax for this script?
<?php
include("config.php");
$newsid = $_GET['newsid];
$result = mysql_query("SELECT * FROM news WHERE newsid='$newsid' ",$connect);
while($myrow = mysql_Fetch_assoc($result))
{
echo "<b>";
echo $myrow['title'];
echo "</b><br>On: <i>";
echo $myrow['dtime'];
echo "</i><hr>";
echo $myrow['text1'];
echo " ";
echo $myrow['text2];
echo "<br><br><a href=\"javascript :Self.history.back();\"><--Go Back</a>";
}
?>
cheers,
Similar Threads
-
By grindcore in forum Web Security
Replies: 0
Last Post: August 30th, 2007, 04:33 AM
-
By PuReExcTacy in forum Web Security
Replies: 11
Last Post: January 26th, 2005, 01:41 AM
-
By HDD in forum Other Tutorials Forum
Replies: 2
Last Post: February 1st, 2004, 08:05 PM
-
By CyberSpyder in forum AntiOnline's General Chit Chat
Replies: 0
Last Post: March 25th, 2003, 09:31 AM
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
|
|