Hey guys, im so glad to join this community cuz im so lost!
I tried for the last 3 days to solve this ****in annoying "unexpected T_STRING", and didnt mange to do it!
so I addressed my question to some guy and he tried to help me, but his code didnt work as well.
please try and look at this, im so desperate 🙁
So this is the original code:
[signup form that connects the users to the database sql]:
<?php/////////////////////////////////////////////////////////////////////////////////
// //
// DO NOT COPY ANYTHING FROM HERE
SITE BY XXXXXXXX //
// //
// //
/////////////////////////////////////////////////////////////////////////////////
include('config.php');
if(PAGE == 'none')
{
include(parts . '/parts/header.php');
$content = '<h2> Sign Up </h2>
<br />
<?php
ob_start();
?>
<html dir="rtl">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
</head>
<body>
<br><br>
<?php
$selcom = mysql_query("SELECT * FROM `com` ORDER BY ID DESC");
$selcom = mysql_fetch_array($selcom);
?>
<center>
<?php
?>
<?php
if(empty($_POST['sub']))
{
?>
<form method="post">
<table>
XXXXXXXXXXXXXXXXXXXXXX
</table>
</form>
<?php
}
else
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXX
}
}
?>
</body>
</html>
<?php
ob_end_flush();
?>
<?php
?>
<br /> <br /> <br />
include(parts . '/parts/footer.php');
}
else
{
header('Location: pages/' . PAGE);
}
?>
it's supposed to insert to the page the footer & header php's, for the "design", and to add the form in the middle of the page. this is my goal..
so it's didn't work cuz:
Parse error: syntax error, unexpected T_STRING
leads me to:
if(empty($_POST['sub'])){
SO what is the problem around here?
I did NOT miss anything, closed everyline as I should to..
I really dont know what to do..
Thanks to the helpers, REALLY BIG THANK YOU!
I don't know why it's so complicated.. it's just a ****in sign up form with few php's around it for the design .. that's all..