7 Replies - 1340 Views - Last Post: 24 January 2003 - 01:26 PM Rate Topic: -----

#1 aswettla  Icon User is offline

  • D.I.C Addict

Reputation: 1
  • View blog
  • Posts: 603
  • Joined: 27-September 02

PHP with HTML!

Post icon  Posted 23 January 2003 - 09:57 PM

Hi..

I have a include in php to bring in the news from the forum.
It works fine..
but...
when i go and put it in a html table it doesn't work. I get an Warning on line 10. I go..nothing is wrong with it. I still get the error. Only when i put it in the html table. I have the books and everything...i do what it says and i still get the error. :huh:

Is This A Good Question/Topic? 0
  • +

Replies To: PHP with HTML!

#2 capty99  Icon User is offline

  • i am colt mccoy
  • member icon

Reputation: 98
  • View blog
  • Posts: 10,081
  • Joined: 26-April 01

Re: PHP with HTML!

Posted 23 January 2003 - 10:08 PM

code plz?
Was This Post Helpful? 0
  • +
  • -

#3 The Neoracle  Icon User is offline

  • Check, check, 1, 2.
  • member icon

Reputation: 21
  • View blog
  • Posts: 4,097
  • Joined: 30-March 01

Re: PHP with HTML!

Posted 23 January 2003 - 10:20 PM

What error are you getting? Code?
Was This Post Helpful? 0
  • +
  • -

#4 arniie  Icon User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 999
  • Joined: 08-October 02

Re: PHP with HTML!

Posted 24 January 2003 - 04:09 AM

code might be handy....
Was This Post Helpful? 0
  • +
  • -

#5 aswettla  Icon User is offline

  • D.I.C Addict

Reputation: 1
  • View blog
  • Posts: 603
  • Joined: 27-September 02

Re: PHP with HTML!

Posted 24 January 2003 - 09:05 AM

Quote

Parse error: parse error in /home/truegeek/public_html/index_2.php on line 2


Quote

<?php
<html>
<head>

<title>Truegeek.net //v2 //home</title>

</head>
<body>
<table>
<tr>
<td>
include("http://www.truegeek.net/index.php");
</td>
</tr>
</table>
</body>
</html>
?>

Was This Post Helpful? 0
  • +
  • -

#6 SoLi  Icon User is offline

  • andydust.com

Reputation: 41
  • View blog
  • Posts: 1,438
  • Joined: 27-January 02

Re: PHP with HTML!

Posted 24 January 2003 - 09:25 AM

the php tags need to be directly at the start and end of ur php scripting.

So it should look like this:

Quote

<html>
<head>
<title>Truegeek.net //v2 //home</title>
</head>
<body>
<table>
<tr>
<td>
<?php
include("http://www.truegeek.net/index.php");
?>
</td>
</tr>
</table>
</body>
</html>

Was This Post Helpful? 0
  • +
  • -

#7 Quik  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2
  • View blog
  • Posts: 3,750
  • Joined: 06-March 01

Re: PHP with HTML!

Posted 24 January 2003 - 09:30 AM

And just for some information, the reason why there was a error is because <html> is not a recognized PHP function. You had it within the php tags, and that is why :)
Was This Post Helpful? 0
  • +
  • -

#8 aswettla  Icon User is offline

  • D.I.C Addict

Reputation: 1
  • View blog
  • Posts: 603
  • Joined: 27-September 02

Re: PHP with HTML!

Posted 24 January 2003 - 01:26 PM

thanks.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1