Do not use on any
shared computer
August 29, 2008 03:55pm pdt
 
[x]
Attachment Details

Problem with gallery

Im creating this gallery using php and data set in live preview show all of my images but in the brouser it show just one. See sample

see code
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:
<?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_rs_indexNav = "SELECT id FROM indexCont ORDER BY id ASC";
$rs_indexNav = mysql_query($query_rs_indexNav, $newWeb) or die(mysql_error());
$row_rs_indexNav = mysql_fetch_assoc($rs_indexNav);
$totalRows_rs_indexNav = mysql_num_rows($rs_indexNav);
 
$maxRows_rs_indexCont = 2;
$pageNum_rs_indexCont = 0;
if (isset($_GET['pageNum_rs_indexCont'])) {
  $pageNum_rs_indexCont = $_GET['pageNum_rs_indexCont'];
}
$startRow_rs_indexCont = $pageNum_rs_indexCont * $maxRows_rs_indexCont;
 
mysql_select_db($database_newWeb, $newWeb);
$query_rs_indexCont = "SELECT versArticulo FROM indexCont";
$query_limit_rs_indexCont = sprintf("%s LIMIT %d, %d", $query_rs_indexCont, $startRow_rs_indexCont, $maxRows_rs_indexCont);
$rs_indexCont = mysql_query($query_limit_rs_indexCont, $newWeb) or die(mysql_error());
$row_rs_indexCont = mysql_fetch_assoc($rs_indexCont);
 
if (isset($_GET['totalRows_rs_indexCont'])) {
  $totalRows_rs_indexCont = $_GET['totalRows_rs_indexCont'];
} else {
  $all_rs_indexCont = mysql_query($query_rs_indexCont);
  $totalRows_rs_indexCont = mysql_num_rows($all_rs_indexCont);
}
$totalPages_rs_indexCont = ceil($totalRows_rs_indexCont/$maxRows_rs_indexCont)-1;
 
$colname_rs_iglesiaNav = "-1";
if (isset($_GET['pagkey'])) {
  $colname_rs_iglesiaNav = $_GET['pagkey'];
}
mysql_select_db($database_newWeb, $newWeb);
$query_rs_iglesiaNav = sprintf("SELECT versArticulo FROM indexCont WHERE id = %s", GetSQLValueString($colname_rs_iglesiaNav, "int"));
$rs_iglesiaNav = mysql_query($query_rs_iglesiaNav, $newWeb) or die(mysql_error());
$row_rs_iglesiaNav = mysql_fetch_assoc($rs_iglesiaNav);
$totalRows_rs_iglesiaNav = mysql_num_rows($rs_iglesiaNav);
 
mysql_select_db($database_newWeb, $newWeb);
$query_rs_colDerch = "SELECT * FROM colDer ORDER BY libro_id ASC";
$rs_colDerch = mysql_query($query_rs_colDerch, $newWeb) or die(mysql_error());
$row_rs_colDerch = mysql_fetch_assoc($rs_colDerch);
$totalRows_rs_colDerch = mysql_num_rows($rs_colDerch);
 
?>
<!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>JusticiaDios</title>
<script type="text/JavaScript" src="../qm.js"></script>
<!-- Add-On Core Code (Remove when not using any add-on's) -->
<script type="text/JavaScript">var qmad = new Object();qmad.bvis="";qmad.bhide="";qmad.bhover="";</script>
<!--___________________________Navigation Bar scipt------------------------------->
<script type="text/JavaScript" src="Menu/qm.js"></script>
<!-- Add-On Core Code (Remove when not using any add-on's) -->
<script type="text/JavaScript">var qmad = new Object();qmad.bvis="";qmad.bhide="";qmad.bhover="";</script>
<!-- Add-On Settings -->
<script type="text/JavaScript">
/*Menu 0 Settings*/
			var a = qmad.qm0 = new Object();
					
			a.ienhance_main_position = "top";    //top, right, bottom, left
			a.ienhance_main_width_height = "5,5";
			a.ienhance_main_offset_width_height = "-1,0";
			
			a.ienhance_sub_width_height = "5,10";
			a.ienhance_sub_offset_width_height = "-2,0";
			a.ienhance_sub_position = "left";       //top, right, bottom, left
			
			//addtional styles for the item enhacer are below in the CSS styles section.
 
			a.mwidths_active = true;
</script>
<!-- Optional Add-On's (Must appear after core menu code) -->
<script type="text/JavaScript" src="Menu/qm_item_enhancer.js"></script>
<!--<script type="text/JavaScript" src="qm_match_widths.js"></script>-->
<!--%%%%%%%%%%%% QuickMenu Styles [Keep in head for full validation!] %%%%%%%%%%%-->
<!--___________________________End Navigation Bar scipt------------------------------->
<link href="Css_files/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="contenedor">
  <div id="head">
    <!-----------------------Navegacion Principal------------------------------>
    <div id="navBar">
      <ul>
        <li>
          <div id="paginaActiva"><a href="Index_JD.html" onclick="MM_effectAppearFade('NavRinconEstudio', 1000, 0, 100,   	false);MM_showHideLayers('NavRinconEstudio','','show')">Inicio </a></div>
        </li>
        <li><a href="SalaInvestigacion/salaInvest.html" onclick="MM_effectAppearFade('NavRinconEstudio', 1000, 0, 100, false);MM_showHideLayers('NavRinconEstudio','','show')">Sala de Investigaci&oacute;n </a></li>
        <li><a href="EstudiosBiblicos/estudiosBiblicos.html" onclick="MM_showHideLayers('NavEstudiosBiblicos','','show')">Estudios B&iacute;blicos </a></li>
        <li> <a href="Biblioteca/biblioteca.html">Biblioteca</a> </li>
        <li><a href="sermones/sermones.html">Sermones</a> </li>
      </ul>
    </div>
    <!-----------------------Fin Navegacion Principal------------------------------>
    <!--------------------------Segunda Barra de Navegacion----------------------->
    <div id="qm0" class="qmmc"> <a href="<?php include("../includes/quienesSomos.html"); ?>">Quienes Somos</a> <a href="Index_JD.php" >Iglesias</a> <a href="Noticias.html" matchwidthadjust=1 onclick="hpanel.loadContent(this.href); return false;">Noticias</a> <a href="Index_JD.html" onclick="MM_effectAppearFade">Inicio </a> <span class="qmclear">&nbsp;</span></div>
  </div>
  <!--------------------------Fin Segunda Barra de Navegacion----------------------->
  <p>
    <!--%%%%%%%%%%%% QuickMenu Create Menu (menu id, is vertical, show timer (ms), hide timer (ms), on click) %%%%%%%%%%%*-->
  </p>
  <script type="text/JavaScript">qm_create(0,false,0,500,false)</script>
  <div id="recibidorArticulo">
    <p >&nbsp;</p>
    <div id="IzquierdaCol">
      <?php do { ?>
        <p ><?php echo $row_rs_indexCont['versArticulo']; ?> </p>
        <?php } while ($row_rs_indexCont = mysql_fetch_assoc($rs_indexCont)); ?>
    </div>
 <!--ColumnaDerecha-->
    <div id="ColDerecha">
    
      <?php do { ?>
        <img src="images/<?php echo $row_rs_colDerch['image']; ?>" class="libroEsp" />
        <?php } while ($row_rs_colDerch = mysql_fetch_assoc($rs_colDerch)); ?>
    
    
    
      <div id="emisora"></div>
    </div>
          
   
  </div><!--RecibidorArticulo-->
  
    
</div><!--contenedor-->
  
</div>
 
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<div id="auspicia">Auspiciado por la iglesia Cristo Nuestra Justicia </div>
</div>
</body>
</html>
<?php
mysql_free_result($rs_indexNav);
 
mysql_free_result($rs_indexCont);
 
mysql_free_result($rs_iglesiaNav);
 
mysql_free_result($rs_colDerch);
?>
Start your free trial to view this solution
[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!

Question Stats
Zone: Web Development
Question Asked By: saul_roldan
Solution Provided By: nplib
Participating Experts: 1
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by saul_roldan
Author Comment by saul_roldan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by nplib

Rank: Wizard

Accepted Solution by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by nplib

Rank: Wizard

Expert Comment by nplib:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by ForestDenizen
Administrative Comment by ForestDenizen:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by Vee_Mod
Administrative Comment by Vee_Mod:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628