Editing PHP web page
Moderator: General Moderators
Editing PHP web page
I opened a PHP web page with Macromedia Dreamweaver but I could not edit the navigation bars. The bars appear only as PHP icons, can anyone assist on how i can have access to the navigation bar contents?
is the navigation bar generated by a php code.
if so, and you have a wysiwyg(did i get that right?) editor, it;s probably showing you the php icon as your in design mode or something
try opening the same page in notepad, and see if you can find the code that does navigation
if you need more help just post here
if so, and you have a wysiwyg(did i get that right?) editor, it;s probably showing you the php icon as your in design mode or something
try opening the same page in notepad, and see if you can find the code that does navigation
if you need more help just post here
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Editing a PHP web page
I was able to open the web page using notepad. I discovered that the navigation bars are generated using php code as follows:
<?php
main_toplinks();
?>
and
<?php
product_leftlinks();
?>
yet, i cannot locate where the PHP content is. for adequate referencing, u can click the url below
http://www.standardalliancegroup.com/st ... oducts.php
the vertical (red-formatted) and horizontal(green-formatted) links can be observed. Thanks.
<?php
main_toplinks();
?>
and
<?php
product_leftlinks();
?>
yet, i cannot locate where the PHP content is. for adequate referencing, u can click the url below
http://www.standardalliancegroup.com/st ... oducts.php
the vertical (red-formatted) and horizontal(green-formatted) links can be observed. Thanks.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Editing a PHP web page
Everah, I can see u're d man i need, meanwhile, i don't understand how to post a code, what do i want to achieve for doing that? Can u make it clearer pls.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
ignore previous pls
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<?php
include('links.php');
?>
<html>
<head>
<title>Standard Alliance Insurance PLC</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="alliance.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {color: #CCCCCC}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytext">
<tr>
<td height="72" valign="top"><img src="images/onetop.jpg" width="779" height="72"> </td>
</tr>
<tr>
<td height="21" class="topline">
<?php
main_toplinks();
?>
</td>
</tr>
<tr>
<td height="229" valign="top">
<div align="left"> </div>
<div align="left"> </div>
<table width="779" height="636" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" id="table2">
<tr>
<td height="23"> </td>
</tr>
<tr>
<td height="599" align="left" valign="top">
<table width="779" border="0" cellpadding="0" cellspacing="0" id="table3">
<tr>
<td width="180" height="438" valign="top" background="images/49734__1x554_scale_F.gif">
<div align="justify">
<?php
product_leftlinks();
?>
</div>
</td>
<td width="599" valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="454" valign="top">
<div align="right"><img src="images/products.jpg" width="586" height="110" border="0"><br>
<font color="#006600" size="2"><strong>Downloads </strong></font><br>
</div>
<p></p>
Incorporated in 1981, the company commenced full operations
in 1982 under the name, Jubilee Insurance Company Limited.<br>
<br>
The company's operations are fully automated reflecting
a commitment to use technology to drive excellence in
service delivery. Furthermore, the company operates under
the revolutionary concept of total quality management
(TQM). Incorporated in 1981, the company commenced full
operations in 1982 under the name, Jubilee Insurance Company
Limited.<br> <br>
The company's operations are fully automated reflecting
a commitment to use technology to drive excellence in
service delivery. Furthermore, the company operates under
the revolutionary concept of total quality management
(TQM). Incorporated in 1981, the company commenced full
operations in 1982 under the name, Jubilee Insurance Company
Limited.<br> <br>
The company's operations are fully automated reflecting
a commitment to use technology to drive excellence in
service delivery. Furthermore, the company operates under
the revolutionary concept of total quality management
(TQM). Incorporated in 1981, the company commenced full
operations in 1982 under the name, Jubilee Insurance Company
Limited.<br> <br>
The company's operations are fully automated reflecting
a commitment to use technology to drive excellence in
service delivery. Furthermore, the company operates under
the revolutionary concept of total quality management
(TQM). Incorporated in 1981, the company commenced full
operations in 1982 under the name, Jubilee Insurance Company
Limited.<br> <br>
The company's operations are fully automated reflecting
a commitment to use technology to drive excellence in
service delivery. Furthermore, the company operates under
the revolutionary concept of total quality management
(TQM). <br> </td>
</tr>
</table> <br> <br>
<?php
main_toplinks();
?>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#4D934B">
<tr>
<td width="59%" height="51" valign="top" bgcolor="#FFFFFF"><a href="#"><img src="images/prods.gif" width="468" height="60" border="0"></a></td>
<td width="41%" valign="top" bgcolor="#FFFFFF"><a href="whatwedo.php"><img src="images/newss.gif" width="311" height="62" border="0"></a></td>
</tr>
<tr>
<td height="31" colspan="2" valign="top" class="footerm">
<?php
copyright_text();
?>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Editing a PHP web page
Yes, truly the page content is embedded in the code but what i need to see is the content of the navigation bars(both horizontal and vertical).
u may check out the page on :
http://www.standardalliancegroup.com/st ... oducts.php
not even a trace of it is visible in the code!
u may check out the page on :
http://www.standardalliancegroup.com/st ... oducts.php
not even a trace of it is visible in the code!
- tasteslikepurple
- Forum Commoner
- Posts: 46
- Joined: Thu Jan 26, 2006 3:38 am
- Location: Bath, UK
that's not much use, we need to see the actual php code, not the html that php creates. anyway, as Everah said, open up links.php and inside there will probably be two functions, main_toplinks () and product_leftlinks (), those functions are what make the navigation bars. I would guess that all of the stuff is probably in a database somewhere so to edit it, you'll probably need to look in the database and modify the rows in there.
Editing a web page: Im very grateful guys..
Guys you a too good. Thanks for not giving up on me. I hope that one day, i'll be so good to assist guys like you've done for me. I have got the navigation bars in the links.php file. I have even edited it to my taste. Thanks guys. Once again, thanks. i'll patronise this forum continually. Everah and tastelikepurple. I doff my cap. I like to meet u beta.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA