Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 1st, 2004, 02:49 PM
spinsan spinsan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 spinsan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PHP in HTML

I have looked at many posts on this topic but still can't figure it out. I have a page in php that I want to appear in a table on an HTML page, it is important that the rendered page remains in perspective to the size of the table.

Someone tell me what i'm doing wrong.

Reply With Quote
  #2  
Old July 1st, 2004, 05:25 PM
brut brut is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 367 brut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 30 sec
Reputation Power: 2
RE: PHP in HTML

"What am I doing wrong?" is a bit vague without examples or code.
Take whatever code you have, and integrate it into the html page, having the code create the table.

Reply With Quote
  #3  
Old July 1st, 2004, 08:01 PM
spinsan spinsan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 spinsan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP in HTML

Okay here is the situation.

I have a game developed by one of my friends who was killed in iraq. I would like to put this game online however i do not know php therfore it is hard for me to make a page design out of the one window that displays the game, I refuse to use frames. I am just asking for the code i need to use to integrate a php document into a cell of an html table. You guys use php alot more than i do so i figured i would ask here on the forum. I thought it would be a little ridiculous to post over 1600 lines of code in a forum post but now i am rambling on. Ok here is the scenario:

PHP Page(Example):
php Code:
Original - php Code
  1.  
  2. <?php echo "ABCDEFG"; ?>


Html Page that i wish to display php page in:

<html>
<head><title>This is pissing me off</title>
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Here is my navigation bar</td>
<td>Here is where i want the PHP page to show
</td>
</tr>
</table></body>

There now how do i get the php page into the second cell of the table.
</html>

Reply With Quote
  #4  
Old July 2nd, 2004, 12:05 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: PHP in HTML

Say you have the php page named 'test.php'. Then you can embed that peticular PHP page into HTML table cell like this:
php Code:
Original - php Code
  1.  
  2. <html>
  3. <head><title>This is pissing me off</title>
  4. </head><body>
  5. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  6. <tr>
  7. <td>Here is my navigation bar</td>
  8. <td><? include("test.php"); ?>
  9. </td>
  10. </tr>
  11. </table></body>
It should work in your situation well. For example, if you want to embed php script into html code, just write php within <? ?> tags.
eg:
php Code:
Original - php Code
  1. <html>
  2. <body>
  3. <b>My age is <? echo "18"; ?></b>
  4. </body>
  5. </html>
got it?

Reply With Quote
  #5  
Old July 6th, 2004, 11:55 AM
spinsan spinsan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 spinsan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP in HTML

Great, I must have been coding my includes wrong i don't think so but I tried again and it worked must have been forgetting something.

Thanks

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > PHP in HTML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT