[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[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!

7.4

paging inside a page

Asked by saul_roldan in PHP Scripting Language, Adobe Dreamweaver

Tags: php

Im publishing an article that i divide in two pages I use this script that will be inside the main page that allowed me to go from one page to another. This page will be called from the database. What you see in this link is just an illustration to show you the idea of what Im doing and the results Im getting.  The pager is not working, what is wrong? Can I call php script from the inside of  another page?

I dont what to creat a complex pager. I what to learn how to make this work if is possible.
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:
<html>
<head>
<style type="text/css">
 
body p{text-align:justify;margin-bottom:10px;}#navBar a{float:left;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:14px;text-decoration:none;text-align:center;}#contenedor .imgIntro{margin-bottom:20px;float:left;}#recibidorArticulo #VolverArriba{font-weight:bold;text-align:right;color:#2A1FFF;font-size:12px;float:right;}#sidebar h1{background-color:#603;color:#FFF;margin-right:-40px;margin-left:-40px;text-align:center;margin-top:-40px;margin-bottom:20px;font-size:20px;padding:10px;font-weight:normal;}#sidebar p{padding-bottom:200px;font-style:italic;text-align:left;}.titulo,.autor,.contenido,.TituloLibroItalico,.capituloLibro{font-family:Georgia,"Times New Roman",Times,serif;}indentado,.NoIndentado,body p,h2,h3,#muchosUnoContenido p,ul{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;font-style:2px;}.titulo{font-size:30px;margin-bottom:20px;text-align:left;text-indent:0px;line-height:normal;}.autor{font-size:16px;font-style:italic;margin-bottom:10px;text-indent:0px;}.contenido{font-size:11px;line-height:16px;}.indentado{display:block;margin-left:40px;font-size:12px;margin-top:10px;line-height:16px;margin-bottom:10px;}.NoIndentado{text-indent:0px;}h2{font-size:13px;margin-top:10px;margin-bottom:8px;line-height:20px;;font-weight:bold;}h3{font-size:12px;margin-left:0px;margin-bottom:10px;margin-top:10px;text-align:left;line-height:20px;}.img{margin-right:10px;margin-bottom:10px;border:2px solid #009966;margin-left:0px;float:left;margin-top:10px;}.TituloLibroItalico{font-size:32px;font-style:italic;text-align:center;margin-bottom:20px;margin-top:30px;color:#4E0507;}.capituloNAV{text-align:center;margin-bottom:10px;}.capituloLibro{font-size:23px;text-align:center;margin-bottom:40px;}#muchosUnoContenido p{margin-top:9px;}#muchosUnoContenido .indentmore{padding-left:24px;font-style:italic;}#libroContenido #paginacion{font-size:12px;}#navPiePlana a{color:#64998C;}#auspicia{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt;font-style:normal;text-align:center;font-weight:normal;color:#FFFFFF;letter-spacing:0.08em;}#navPiePlana{font-weight:normal;text-align:center;font-family:Verdana,Geneva,sans-serif;font-size:12px;color:#369;}.clear{clear:both;}
 
</style>
</head>
 
 
<div id="estbib_contenido">
<p><a style='VolverArriba' href="#_VolverArriba" name="_VolverArriba" title=""></a></p>
 
 
<b>Páginas:</b> <a href="?page=pag1">1</a> | <a href="?page=pag2">2</a> 
 
<?php 
 
$pag1 = '<p class="indentado">2 Corintios 8:5 Incluso hicieron más de lo que esperábamos, ya que se entregaron a sí mismos, primeramente al Señor y después a nosotros, conforme a la voluntad de Dios (NVI).</p>
				<p>Una pareja hacia 50 años que se había casado; unos amigos le prepararon una fiesta para su aniversario de oro. El marido, muy conmovido por la ocasión, quería decirle a su esposa qué pensaba de ella. Ella tenía dificultad para oír, por lo que a menudo entendía mal lo que él le decía. Con familiares y amigos reunidos se puso de pie para hacer un brindis y dijo: «Mi querida esposa, después de 50 años aún estoy enamorado de ti!»</p>
				<p>Todos aplaudieron, pero su esposa un poco irritada le pregunta: ¿Qué dijiste? Habla más fuerte. «Mi querida esposa, que después de 50 años aún estoy enamorado de ti!»</p>
				<p>La esposa visiblemente alterada le grita de nuevo: ?Bueno, después de 50 años yo también estoy cansada de ti!?</p>
				<p>El Dr. Howard Hendricks expresó que las personas se casan con una fotografía en sus mentes de un matrimonio perfecto. Después de algunas pruebas descubren que no están casadas con la perfecta fotografía, sino con una imperfecta persona. Cuando este descubrimiento ocurre, ellas o hacen pedazos a la foto mental o hacen pedazos a la persona (Kent Crockett, The 911 Handbook, Peabody, MA: Hendrickson Publishers, 2003, 86).</p>
				<p>Al hablar del amor en el matrimonio algunos de ustedes esperan una fórmula, alguna ley espiritual que al ponerla en práctica puedan obtener los resultados que procuran. Quizás alguno de ustedes ha asistido a una consejería matrimonial esperando alguna formula mágica que haga desaparecer sus problemas. Y puesto que ustedes esperan algunos principios, se los daré.</p>';
 
 
 
 
 
 
 
$pag2 = '<p class="titulo">Darse por completo al Señor</p>
				<h2>Se entregaron a sí mismos
primeramente al Señor</h2>
 
<img src="images/elBeso.jpg" width="150" height="150" alt="" name="pecadoOriginal" class="img" />
				<p>Darse por completo es algo que el hombre natural no conoce y, aún más, aborrece. Es una gracia que disfrutas estando en Cristo, el Nuevo Hombre. Y puesto que no es natural al corazón humano pecaminoso, debes procurarlo en Dios. Agustín decía: ama a Dios y haz lo que te dé la gana. ¿Qué es amar a Dios? Es estar tan enamorado de su gracia que no hay tiempo para pensar en ninguna otra cosa, amar ninguna otra cosa o desear ninguna otra cosa que no sea al Señor. Desde un punto más práctico implica que todo cuanto haces en la vida tiene como centro su gloria. Le amas a tal punto que te causa tristeza ofenderle, horror el sólo pensar que estarás separado de él, y una inmensa pena el no tener la capacidad de obedecerle como merece. Pero a la vez tienes una energía y un empeño en usar todas tus fuerzas para luchar por cumplir sus deseos hacia ti. El que ama a Dios hace lo que le da la gana porque desea hacer lo que honra y agrada al Cielo. Cristo te libró del poder del pecado para hacerte siervo de la justicia, y tu cuerpo es un instrumento para la gracia. Darte al Señor es una decisión que requiere un esfuerzo constante para no permitir que tus deseos carnales usurpen el lugar de los deseos de Cristo.</p>';
				
				
				
				
 
if(isset($_GET['page'])){
	$page = $_GET['page'];
}
if(!isset($_GET['page'])){
	$page =='pag1';
	echo $pag1;
}elseif($page == 'pag1'){
	echo $pag1;
 
}else{
	$page == 'pag2';
echo $pag2;
}
 
 
 
?>
 
<p><a id="VolverArriba" style='VolverArriba' href="#_VolverArriba"	name="_VolverArriba" title="">Regresar al Principio</a></p>
<p>&nbsp;</p>
</div>
 
</html>
[+][-]03/22/09 06:14 AM, ID: 23951387Accepted Solution

View this solution now by starting your 30-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 Scripting Language, Adobe Dreamweaver
Tags: php
Sign Up Now!
Solution Provided By: v2Media
Participating Experts: 2
Solution Grade: A
 
[+][-]03/20/09 08:57 AM, ID: 23940648Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/20/09 09:01 AM, ID: 23940709Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/20/09 10:12 AM, ID: 23941471Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/20/09 10:16 AM, ID: 23941514Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/20/09 04:23 PM, ID: 23944833Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/20/09 04:56 PM, ID: 23945018Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/21/09 01:08 AM, ID: 23946334Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/21/09 03:39 AM, ID: 23946672Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/21/09 06:45 AM, ID: 23947319Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/22/09 05:40 AM, ID: 23951307Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/16/09 08:54 PM, ID: 24404844Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625