Webdetector Webmaster Forums - Your favorite webmaster community
 
  #1 (permalink)  
Old 07-21-2008, 09:48 AM
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP + Html?

Im having a hard time with php code and html code in one. I know you can have something like
html code here...<? php code here ?> and than more html code here....

But i keep getting a syntax error, why?
No i dont, this is what it fully says...

Parse error: syntax error, unexpected $end in C:\wamp\www\Work\surveyGuide.php on line 201

and it points to my end thing ?>
See it goes <? php code ?> and than html....<?php code ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 07-21-2008, 10:03 AM
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP + Html?

Probably because you have a syntax error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-21-2008, 10:17 AM
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP + Html?

Yes, you do. From the looks of it, you might be missing a semicolon.

You probably have the <? PHP ?> stuff correct, but the actual PHP code is wrong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-21-2008, 10:32 AM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP + Html?

You Can Make Php Code inside php files and importet the HTML files by:

print $tpl->display("header.html");

or You Can make you own function:

function Yahoo (){echo"<p align='center' dir='ltr'>Powered by Yahoo!</p>";
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-21-2008, 11:00 AM
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP + Html?

Hi eva,
It is hard to debug(find out what is wrong) with limited information. Can you paste at least few lines of the code before line 201 and lets figure it out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 03:41 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Ad Management by RedTyger