HTML Tables in PHP...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How can I give a <table> </table> with all of it's parameters in PHP in each
of the cells there is a variable that gives me the data back but I can't get
the table to show as it always gives me either this error "Parse error:
parse error, unexpected T_LNUMBER, expecting ',' or ';' in
C:\FoxServ\www\Dad\proofing\index.php on line 41" or this one when I don't
put in the quotes "Parse error: parse error, unexpected '<', expecting ','
or ';' in C:\FoxServ\www\Dad\proofing\index.php on line 41".

 

Here is the PHP code I'm using:

 

<?php

$datei="c:\licence.txt";

 

 

if(file_exists($datei)){

  $nachricht="The licence has been validated thank-you!";

  $fp = fopen($datei,"r");

  fpassthru($fp);

  fclose($fp);

  }

else{

  $nachricht="The licence doesn't exist please contact us!

  echo <table width="694" height="501" border="0" align="center"
cellpadding="0" cellspacing="0">

  <tr>

    <td height="109" colspan="7"><img src="images/1.jpg" width="857"
height="109" border="0" usemap="#Map"></td>

  </tr>

  <tr>

    <td width="39" rowspan="2"><img src="images/lefty.jpg" width="39"
height="394"></td>

    <td width="8" height="369">&nbsp;</td>

    <td width="240" class="style5"></td>

    <td width="12" height="369" class="style5">&nbsp;</td>

    <td width="407" height="369" class="style5"><span
class="style3"><b>$nachricht</b></span><br></td>

    <td width="346" rowspan="2"><img src="images/righty.jpg" width="346"
height="394" border="0" usemap="#Map2"></td>

  </tr>

  <tr>

    <td height="23" colspan="5"><img src="images/bottom.jpg" width="472"
height="23"></td>

  </tr>

</table>;

} 

?>


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux