I am new to php. I use the below query, - <?php
-
if(isset($_POST['btn']))
-
{
-
$table=<<<table
-
<table>
-
<thead>
-
<tr>
-
<th style="text-align:center">"#"</font></th>
-
<th>1</font></th>
-
<th>2</font></th>
-
<th>3</font></th>
-
<th>4</font></th>
-
<th>5</font></th>
-
<th>6</font></th>
-
<th>7</font></th>
-
<th>8</font></th>
-
<th>9</font></th>
-
<th>10</font></th>
-
<th>11</font></th>
-
<th>12</font></th>
-
<th>13</font></th>
-
<th>14</font></th>
-
<th>15</font></th>
-
<th>16</font></th>
-
<th>17</font></th>
-
<th>18</font></th>
-
<th>19</font></th>
-
<th>20</font></th>
-
<th>21</font></th>
-
<th>22</font></th>
-
<th>23</font></th>
-
<th>24</font></th>
-
<th>25</font></th>
-
<th>26</font></th>
-
<th>27</font></th>
-
<th>28</font></th>
-
<th>29</font></th>
-
<th>30</font></th>
-
<th>31</font></th>
-
</tr>
-
</thead>
-
<tbody>
-
include ("DBconnection.php");
-
$month_N="1";
-
$Year_No = date("Y");
-
$CurrentDate = date('Y-m-d');
-
$Employee = $_POST['Employee'];
-
//echo $Employe;
-
if($Employee!="" && $Employee!="Select"){
-
$EmployeeQuery="Select employeedetails_id, concat(firstname,' ', lastname) as EmpName, employeeenrollnumber from employeedetails where employeedetails.Status!='Dismissed' and employeedetails_id=".$Employee." order by firstname";
-
}
-
table;
-
}
It give the Syntax Error for me..
Please help me any one ..
Thanks...
1 1650
What's going on with line 4-42? You can't just have HTML within PHP tags like that. If you want to output HTML within PHP tags, you need to echo them.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: kestrel |
last post by:
I have some html code that is supposed to be displayed by php echo. But for some reason i keep getting a syntax error, and i cant figure out what is going on.
Heres what i have
<?php...
|
by: basswhizz |
last post by:
Hi everyone im a high school student and I'm having trouble with one of my projects could you please help!!
I'm getting this error message.
Parse error: syntax error, unexpected...
|
by: sclarkstone |
last post by:
Im getting this error;
Parse error: syntax error, unexpected T_STRING, expecting ':' or ';'
with this line;
header ('postcodesearch.php?e=nw&pcode=',);
I cant find whats wrong, can anyone...
|
by: paulrajj |
last post by:
hi to all,
i am getting syntax error on my code..
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in D:\xampp\htdocs\Dummy\paulraj\matrim\exam.php on line 62
...
|
by: benicio |
last post by:
Parse error: syntax error, unexpected T_STRING, expecting '(' in C:\wamp\www\study_group\includes\functions.php on line 19
I got this error and this syntax is from 8 to 19th line.
<?php
...
|
by: karine |
last post by:
Hi, I keep getting this error message "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/env49986/public_html/welcome.php on line 16"
below is the code
...
|
by: Carrie Kemp |
last post by:
I am having an error that reads
the code that is in question is:
$list_data->save($dataFile);
How would I fix this?
|
by: Adam Pelling |
last post by:
I'm getting this error
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/neblncbt/public_html/forum/includes/acp/acp_board.php on line 69
Here is the...
|
by: lenamarie |
last post by:
I received this full message today after updating the copyright year.
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in...
|
by: tiff zhan |
last post by:
the error
public function getTable($tableName)
{
if (!isset($this->_tables)) {
$this->_tables = Mage::getSingleton('core/resource')->getTableName($tableName);
...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| | |