Adding a web page

Continued from connect database to html

hi,

I wanna add a web page my coder gave me a code and told me upload in the include folder after making changes… can u tell me where to add the content

<?php
$site_setting=mysql_fetch_array(mysql_query("select * from zw_websetting"));
$city_limit=$site_setting['home_city_limit'];
$city_select=mysql_query("select * from city where con_id='$site_setting[defaultcountry]' and show_hm_page='Yes' order by cit_name limit 0,$city_limit")or die(mysql_error());
$pageff=mysql_query("select * from page where position='footer' or position='both' and status='active' order by sort_num");
$builder_plans=mysql_query("select * from plans where type='builder' order by rand() LIMIT 0,2");
$agent_plans=mysql_query("select * from plans where type='agent' order by rand() LIMIT 0,2");
$individual_plans=mysql_query("select * from plans where type='individual' order by rand() LIMIT 0,2");
?>
<div id="zee-footer">
<div class="footer-texts">
<ul class="realestateindia">
<li><h1>Real Estate In India</h1></li>
<?php
while($fetch_city=mysql_fetch_array($city_select))
{	  
echo "<li><a href='city-properties-".$fetch_city['cit_id']."-".urlconvert('residential').'-'.urlconvert('sale').".html'>$fetch_city[cit_name]</a></li>"; ?>
<?php
}
?>
</ul>

<ul class="realestateindia">
<li><h1>Propertys Links</h1></li>
<li><a href="residential_properties-residential-residential.html">Residential Properties</a></li>
<li><a href="commercial_properties-commercial-commercial.html">Commercial Properties</a></li>
<li><a href="wanted.php">Wanted Properties</a></li>
</ul>

<ul class="realestateindia">
<li><h1>Buy Our Services</h1></li>
<li class="li_color"><strong>Builders</strong></li>
<?php
while($fetch_builder_plans=mysql_fetch_array($builder_plans))
{
?>
<li><a href="advertise.php"><?php echo $fetch_builder_plans['name'];?></a></li>
<?php
}
?>
<li class="li_color"><strong>Agent</strong></li>
<?php
while($fetch_agent_plans=mysql_fetch_array($agent_plans))
{
?>
<li><a href="advertise.php"><?php echo $fetch_agent_plans['name'];?></a></li>
<?php
}
?>
<li class="li_color"><strong>Individual</strong></li>
<?php
while($fetch_individual_plans=mysql_fetch_array($individual_plans))
{
?>
<li><a href="advertise.php"><?php echo $fetch_individual_plans['name'];?></a></li>
<?php
}
?>
</ul>

<ul class="realestateindia">
<li><h1>Company</h1></li>
<?php
while($page_fetchff=mysql_fetch_array($pageff))
{
echo "<li><a href='aboutcompany-".$page_fetchff[id]."-".urlconvert($page_fetchff[pagename]).".html' class='whitelinkp'>$page_fetchff[pagename]</a></li>"; 
}
?>
</ul>

<ul class="realestateindia">
<li><h1>Seller</h1></li>
<li><a href="sellproperty.php">Post Property</a></li>
<li><a href="advance_search.php">Search Buyer</a></li>
<li><a href="sellproperty.php">Advertise Property</a></li>
</ul>

<ul class="realestateindia">
<li><h1>Buyer</h1></li>
<li><a href="advance_search.php">Search Property</a></li>
<li><a href="buyproperty.php">Post your Requirement</a></li>
<li><a href="buyers_search.php">Builder</a></li>
<li><a href="news.php">Property News</a></li>

</ul>

<h2>All trademarks, logos and names are properties of their respective owners. All Rights Reserved. &#169; Copyright <A href="<?php echo $rs0['poweredbylink']; ?>"  class='whitelinkp' target=_blank><?php echo $rs0['poweredby']; ?></A></h2>

</div>

</div>

how to do ?? can i pm you Mittineague

I’m sorry, but I don’t have the time to teach a lot of HTML. Bits and pieces, yes, but all the basics, no.

A good place to start is SitePoint’s HTML Reference

You should take a look around and get a feel for how it works.

Then there’s the old “monkey see, monkey do” way of learning. Not the best as you can learn someone else’s bad habits, but it works in a pinch.

For example, the HTML mark-up for that page has

<div id="submenu2" class="anylinkcss">
<ul>
<li><a href="residential_properties-residential-residential.html">On Sale</a></li>
<li><a href="rent_properties-residential-residential.html">On Rent</a></li>
<li><a href="plot_properties-residential-residential.html">Plots/Lands</a></li>
</ul>
</div>

You could copy that structure, but where the “On Sale”, “On Rent” and “Plots/Lands” links are, put your new links. Add new <li><a></a></li>'s until all of the files are in the list.

Give the <div> a new unique id value, a maybe a new class value.

Then paste that where I put the try adding the links here in the snippet into your page file.

So it would look something like

<div id="zee-navigation2">
<ul>
<li><img src="images/navigation2-img_bg.jpg"  alt="navigation2img" style="margin:0px;padding:0px;"/></li>
<li><a href='city-properties-4-residential-sale.html'> Hyderabad</a></li><li class="cities"><a href="more_cities_city.php">More...</a></li>
</ul>
</div>
<div id="legal-doc-menu">
<ul>
<li><a href="path_to_doc_file/doc1.file">Legal Doc 1</a></li>
<li><a href="path_to_doc_file/doc2.file">Legal Doc 2</a></li>
<li><a href="path_to_doc_file/doc3.file">Legal Doc 3</a></li>
<li><a href="path_to_doc_file/doc4.file">Legal Doc 4</a></li>
<li><a href="path_to_doc_file/doc5.file">Legal Doc 5</a></li>
<li><a href="path_to_doc_file/doc6.file">Legal Doc 6</a></li>
</ul>
</div>
<div id="submenu2" class="anylinkcss">
<ul>
<li><a href="residential_properties-residential-residential.html">On Sale</a></li>
<li><a href="rent_properties-residential-residential.html">On Rent</a></li>
<li><a href="plot_properties-residential-residential.html">Plots/Lands</a></li>
</ul>
</div>

This is my website

www.hyderabadrealestate.com on the main page i created a page called legal documents
and i uploaded files at http://www.hyderabadrealestate.com/LegalDocuments/ how do i connect to the main page when i asked the coder he gave me the code and said u can connect it from here

It looks like the page content is pulled from a database. In particular the

zw_websetting
city
page
plans

tables.

OK. now I see. This isn’t PHP, its basic HTML

<div id="zee-navigation2">
<ul>
<li><img src="images/navigation2-img_bg.jpg"  alt="navigation2img" style="margin:0px;padding:0px;"/></li>
<li><a href='city-properties-4-residential-sale.html'> Hyderabad</a></li><li class="cities"><a href="more_cities_city.php">More...</a></li>
</ul>
</div>
<!-- try adding the links here -->
<div id="submenu2" class="anylinkcss">
<ul>
<li><a href="residential_properties-residential-residential.html">On Sale</a></li>
<li><a href="rent_properties-residential-residential.html">On Rent</a></li>
<li><a href="plot_properties-residential-residential.html">Plots/Lands</a></li>
</ul>
</div>