Advertisement

05.27.2008 at 01:05PM PDT, ID: 23436185
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

replacing page with a different one

Asked by saul_roldan in PHP and Databases, Macromedia Dreamweaver

if you go to this link:   http://justiciadedios.com/newsite/estudiosBiblicos.php

and click on "Fundamento Doctrinal" I will like to replace what you see with "pecado original" the first story in the fundamento doctrinal section. How can I do it.

below is the codeStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
<?php require_once('Connections/newWeb.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
 
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
 
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}
 
 
 
mysql_select_db($database_newWeb, $newWeb);
$query_fundDoct_NavBar = "SELECT id, titulo_articulo FROM fundDoct ORDER BY id ASC";
$fundDoct_NavBar = mysql_query($query_fundDoct_NavBar, $newWeb) or die(mysql_error());
$row_fundDoct_NavBar = mysql_fetch_assoc($fundDoct_NavBar);
$totalRows_fundDoct_NavBar = mysql_num_rows($fundDoct_NavBar);
 
$colname_fundDoct_Cont = "-1";
if (isset($_GET['id'])) {
  $colname_fundDoct_Cont = $_GET['id'];
}
mysql_select_db($database_newWeb, $newWeb);
$query_fundDoct_Cont = sprintf("SELECT contenido FROM fundDoct WHERE id = %s", GetSQLValueString($colname_fundDoct_Cont, "int"));
$fundDoct_Cont = mysql_query($query_fundDoct_Cont, $newWeb) or die(mysql_error());
$row_fundDoct_Cont = mysql_fetch_assoc($fundDoct_Cont);
$totalRows_fundDoct_Cont = mysql_num_rows($fundDoct_Cont);
 
mysql_select_db($database_newWeb, $newWeb);
$query_EstExeg_NAV = "SELECT id, titulo_articulo FROM EstudiosExegeticos ORDER BY id ASC";
$EstExeg_NAV = mysql_query($query_EstExeg_NAV, $newWeb) or die(mysql_error());
$row_EstExeg_NAV = mysql_fetch_assoc($EstExeg_NAV);
$totalRows_EstExeg_NAV = mysql_num_rows($EstExeg_NAV);
 
$colname_EstExeg_CONT = "-1";
if (isset($_GET['id2'])) {
  $colname_EstExeg_CONT = $_GET['id2'];
}
mysql_select_db($database_newWeb, $newWeb);
$query_EstExeg_CONT = sprintf("SELECT contenido FROM EstudiosExegeticos WHERE id = %s", GetSQLValueString($colname_EstExeg_CONT, "int"));
$EstExeg_CONT = mysql_query($query_EstExeg_CONT, $newWeb) or die(mysql_error());
$row_EstExeg_CONT = mysql_fetch_assoc($EstExeg_CONT);
$totalRows_EstExeg_CONT = mysql_num_rows($EstExeg_CONT);
 
mysql_select_db($database_newWeb, $newWeb);
$query_docFin_NAV = "SELECT id, titulo_articulo FROM docFin ORDER BY id ASC";
$docFin_NAV = mysql_query($query_docFin_NAV, $newWeb) or die(mysql_error());
$row_docFin_NAV = mysql_fetch_assoc($docFin_NAV);
$totalRows_docFin_NAV = mysql_num_rows($docFin_NAV);
 
$colname_docFin_CONT = "-1";
if (isset($_GET['id3'])) {
  $colname_docFin_CONT = $_GET['id3'];
}
mysql_select_db($database_newWeb, $newWeb);
$query_docFin_CONT = sprintf("SELECT contenido FROM docFin WHERE id = %s", GetSQLValueString($colname_docFin_CONT, "int"));
$docFin_CONT = mysql_query($query_docFin_CONT, $newWeb) or die(mysql_error());
$row_docFin_CONT = mysql_fetch_assoc($docFin_CONT);
$totalRows_docFin_CONT = mysql_num_rows($docFin_CONT);
 
mysql_select_db($database_newWeb, $newWeb);
$query_Salva_NAV = "SELECT id, titulo_articulo FROM salvacion ORDER BY id ASC";
$Salva_NAV = mysql_query($query_Salva_NAV, $newWeb) or die(mysql_error());
$row_Salva_NAV = mysql_fetch_assoc($Salva_NAV);
$totalRows_Salva_NAV = mysql_num_rows($Salva_NAV);
 
$colname_Salva_CONT = "-1";
if (isset($_GET['id4'])) {
  $colname_Salva_CONT = $_GET['id4'];
}
mysql_select_db($database_newWeb, $newWeb);
$query_Salva_CONT = sprintf("SELECT contenido FROM salvacion WHERE id = %s", GetSQLValueString($colname_Salva_CONT, "int"));
$Salva_CONT = mysql_query($query_Salva_CONT, $newWeb) or die(mysql_error());
$row_Salva_CONT = mysql_fetch_assoc($Salva_CONT);
$totalRows_Salva_CONT = mysql_num_rows($Salva_CONT);
 
mysql_select_db($database_newWeb, $newWeb);
$query_Cristo_NAV = "SELECT id, titulo_articulo FROM cristo ORDER BY id ASC";
$Cristo_NAV = mysql_query($query_Cristo_NAV, $newWeb) or die(mysql_error());
$row_Cristo_NAV = mysql_fetch_assoc($Cristo_NAV);
$totalRows_Cristo_NAV = mysql_num_rows($Cristo_NAV);
 
$colname_Cristo_CONT = "-1";
if (isset($_GET['id5'])) {
  $colname_Cristo_CONT = $_GET['id5'];
}
mysql_select_db($database_newWeb, $newWeb);
$query_Cristo_CONT = sprintf("SELECT contenido FROM cristo WHERE id = %s", GetSQLValueString($colname_Cristo_CONT, "int"));
$Cristo_CONT = mysql_query($query_Cristo_CONT, $newWeb) or die(mysql_error());
$row_Cristo_CONT = mysql_fetch_assoc($Cristo_CONT);
$totalRows_Cristo_CONT = mysql_num_rows($Cristo_CONT);
 
$colname_introduccion = "1";
if (isset($_GET['id'])) {
  $colname_introduccion = $_GET['id'];
}
mysql_select_db($database_newWeb, $newWeb);
$query_introduccion = sprintf("SELECT id, introSeccion FROM fundDoct WHERE id = %s", GetSQLValueString($colname_introduccion, "int"));
$introduccion = mysql_query($query_introduccion, $newWeb) or die(mysql_error());
$row_introduccion = mysql_fetch_assoc($introduccion);
$totalRows_introduccion = mysql_num_rows($introduccion);
 
mysql_select_db($database_newWeb, $newWeb);
$query_MenuPrincipal = "SELECT * FROM menuPrincipal ORDER BY id ASC";
$MenuPrincipal = mysql_query($query_MenuPrincipal, $newWeb) or die(mysql_error());
$row_MenuPrincipal = mysql_fetch_assoc($MenuPrincipal);
$totalRows_MenuPrincipal = mysql_num_rows($MenuPrincipal);
?>
<!--
ENCABEZAMIENTO DEL HTML --------------------------------------------------------------------------------------------------------------------------
  -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"  />
<title>Untitled Document</title>
<style type="text/css">
<!--
-->
</style>
<link href="Css_files/global.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="Css_files/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--
CONTENEDOR --------------------------------------------------------------------------------------------------------------------------
  -->
<div id="contenedor">
    <!--
NAVEGADOR DEL SITE --------------------------------------------------------------------------------------------------------------------------
  -->
 
<div id="navBar"> 
	<?php include("includes/BarraNavegPrincipal.php"); ?>
</div>
 
    <!--
NAVEGADOR DE ARTICULOS --------------------------------------------------------------------------------------------------------------------------
  -->
    <div id="navBarArticu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
            <li><a class="MenuBarItemSubmenu" href="#">Fundamento Doctrinal </a>
                <ul>
                    <?php do { ?>
                        <li><a href="estudiosBiblicos.php?id=<?php echo $row_fundDoct_NavBar['id']; ?>"><?php echo $row_fundDoct_NavBar['titulo_articulo']; ?></a></li>
                        <?php } while ($row_fundDoct_NavBar = mysql_fetch_assoc($fundDoct_NavBar)); ?>
                </ul>
            </li>
            <li><a href="#" class="MenuBarItemSubmenu">Estudios Exeg&eacute;ticos</a>
                <ul>
                    <?php do { ?>
                        <li><a href="estudiosBiblicos.php?id2=<?php echo $row_EstExeg_NAV['id']; ?>"><?php echo $row_EstExeg_NAV['titulo_articulo']; ?></a></li>
                        <?php } while ($row_EstExeg_NAV = mysql_fetch_assoc($EstExeg_NAV)); ?>
                </ul>
            </li>
            <li><a class="MenuBarItemSubmenu" href="#">Dias Finales</a>
                <ul>
                    <?php do { ?>
                        <li><a href="estudiosBiblicos.php?id3=<?php echo $row_docFin_NAV['id']; ?>"><?php echo $row_docFin_NAV['titulo_articulo']; ?></a> </li>
                        <?php } while ($row_docFin_NAV = mysql_fetch_assoc($docFin_NAV)); ?>
                </ul>
            </li>
            <li><a href="#" class="MenuBarItemSubmenu">La Salvaci&oacute;n</a>
                <ul>
                    <?php do { ?>
                        <li><a href="estudiosBiblicos.php?id4=<?php echo $row_Salva_NAV['id']; ?>"><?php echo $row_Salva_NAV['titulo_articulo']; ?></a></li>
                        <?php } while ($row_Salva_NAV = mysql_fetch_assoc($Salva_NAV)); ?>
                </ul>
            </li>
            <li><a href="#" class="MenuBarItemSubmenu">Cristo</a>
                <ul>
                    <li><a href="estudiosBiblicos.php?id5=<?php echo $row_Cristo_NAV['id']; ?>"><?php echo $row_Cristo_NAV['titulo_articulo']; ?></a></li>
                </ul>
            </li>
            <li><a href="#" class="MenuBarItemSubmenu">El Esp&iacute;ritu</a>
                <ul>
                    <li><a href="#">en progreso</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <!--
VENTANA RECEPTORA DE ARTICULOS --------------------------------------------------------------------------------------------------------------------------
  -->
    <div class="contenido" id="recibidorArticulo">
        <p><?php echo $row_introduccion['introSeccion']; ?><?php echo $row_fundDoct_Cont['contenido']; ?><?php echo $row_EstExeg_CONT['contenido']; ?><?php echo $row_docFin_CONT['contenido']; ?><?php echo $row_Salva_CONT['contenido']; ?> <?php echo $row_Cristo_CONT['contenido']; ?></p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
    </div>
    <!--
LINEA DE AUSPICIO --------------------------------------------------------------------------------------------------------------------------
  -->
    <div id="auspicia">
        <?php include('includes/auspicia.php'); ?>
    </div>
</div> 
<!--DIV DEL CONTENEDOR-->
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
<?php
mysql_free_result($fundDoct_NavBar);
 
mysql_free_result($fundDoct_Cont);
 
mysql_free_result($EstExeg_NAV);
 
mysql_free_result($EstExeg_CONT);
 
mysql_free_result($docFin_NAV);
 
mysql_free_result($docFin_CONT);
 
mysql_free_result($Salva_NAV);
 
mysql_free_result($Salva_CONT);
 
mysql_free_result($Cristo_NAV);
 
mysql_free_result($Cristo_CONT);
 
mysql_free_result($introduccion);
 
mysql_free_result($MenuPrincipal);
?>
[+][-]05.27.2008 at 07:00PM PDT, ID: 21657193

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 07:26PM PDT, ID: 21657298

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 07:50PM PDT, ID: 21657376

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.27.2008 at 08:05PM PDT, ID: 21657425

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP and Databases, Macromedia Dreamweaver
Sign Up Now!
Solution Provided By: saul_roldan
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628