HTML Web someting?

7 posts Page 1 of 1
Contributors
User avatar
Esky
VIP - Donator
VIP - Donator
Posts: 86
Joined: Tue Dec 22, 2009 11:36 am

HTML Web someting?
Esky
Hi guys, i have no idea how to explane what i need ill describe it :)

Ok with 1 html file or php i dont know i want it to be able to go to different pages on my website and grab a piece or the whole page of each page and put it into 1 page ill use a lil example

PAGE1: Account Names
PAGE2: Time and Dates
PAGE3: Location

And the html/php file will go to each page grab them all and put it into 1 page

HTML/PHP : Account Names & Time and Dates & Location

If someone can understand what ate the i would much appreciate the help!
Current Project: Server Browser - Beta & Text based MMORPG
Image
User avatar
Toxikr3
Dedicated Member
Dedicated Member
Posts: 69
Joined: Tue Dec 08, 2009 12:49 am

Re: HTML Web someting?
Toxikr3
Sorry I don't quite get what you are trying to say.

Do you want it to retrieve the information and make it so it turns into one page?

That could be possible but would require knowledge of PHP I guess.

-Toxikr3
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Re: HTML Web someting?
Nery
You want to merge the 3 pages on a single page?
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: HTML Web someting?
Lewis
<?php
echo '</u>Names</u>';
include '1.php';
echo '<br /><br /> <u>Times And Dates</u>';
include '2.php';
echo '<br /><br /> <u>Location</u>';
include '3.php';
?>

I have not tested this but im shure it would work if thats waht you wanted :D That can go into html + Php bbut you can use an html way witch would be using iframes and if you want it in a table i will post that code soon :D
Image
User avatar
Esky
VIP - Donator
VIP - Donator
Posts: 86
Joined: Tue Dec 22, 2009 11:36 am

Re: HTML Web someting?
Esky
Thanks heaps!
Current Project: Server Browser - Beta & Text based MMORPG
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: HTML Web someting?
Lewis
No problem :D
Image
User avatar
rocky4126
VIP - Donator
VIP - Donator
Posts: 258
Joined: Mon Nov 16, 2009 7:39 pm

Re: HTML Web someting?
rocky4126
Lewis-frooms idead would definately work but also you could make the 3 pages you want to pull from store to a database (mySQL etc) and then retrieve it via php. Just note that to do the database idea you would have to use all php.

To insert it into the database use this as a template:
<?php
/**
* Change the first line to whatever
* you use to connect to the database.
*
* We're using two values, title and
* text. Replace these with whatever
* you want to add to the database.
*
* Finally, change tablename to the
* name of your table.
*/

// Your database connection code
db_connect(); $query = "INSERT INTO tablename(title, text) VALUES('$title','$text')"; $result = mysql_query($query);
echo "The data has been added to the database."; ?>

You don't have to use the echo code if you don't want ;)
Image
7 posts Page 1 of 1
Return to “Help & Support”