Jump to content

Parse error: syntax error, unexpected T_INCLUDE


eleven0

Recommended Posts

<?php

 

include 'config2.php';

include 'opendb.php';

$query = "SELECT * FROM xxxx WHERE ID_TOPIC='237'";

 

$result = mysql_query($query) or die(mysql_error());

 

 

// keeps getting the next row until there are no more to get

while($row = mysql_fetch_array( $result )) {

// Print out the contents of each row into a table

$row['body'];

 

$query="INSERT INTO members (name, rank, pos, tod) VALUES

('".$_POST['name']."', '".$_POST['rank']."', '".$_POST['pos']."', '".$row['body']."')";

 

 

mysql_query($query) or die('Error, insert query failed');

echo "Member added";

 

 

?>

 

 

It gets the inputs from the another page using forms.

 

now, i'm getting this problem

Parse error: syntax error, unexpected T_INCLUDE on line 7. What am i doing wrong?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.