mi spiego:
in poche parole ho creato un recordset da dove estrago un campo in particolare
quesco campo (che si chiama percorso) lo devo mettere dentro una tabella in questo modo:
quindi dovra essere una tabella co una riga e 6 colonne il punto è che non riesco a far andare il puntatore al record successivo quinti tutta la riga ha lo stesso percorso.codice:<table width="200" border="1"> <?php do { ?> <tr> <td><?php echo $row_foto['percorso']; ?></td> <td><?php echo $row_foto['percorso']; ?></td> <td><?php echo $row_foto['percorso']; ?></td> <td><?php echo $row_foto['percorso']; ?></td> <td><?php echo $row_foto['percorso']; ?></td> <td><?php echo $row_foto['percorso']; ?></td> </tr> <?php } while ($row_foto = mysql_fetch_assoc($foto)); ?> </table>
come posso fare???
per completezza posto anche il RECORDSET:
o provato anche così:codice:<?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_strin… ? 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; } } $idfoto_foto = "-1"; if (isset($_GET['id'])) { $idfoto_foto = $_GET['id']; } mysql_select_db($database_gallery, $gallery); $query_foto = sprintf("SELECT * FROM foto WHERE id = %s", GetSQLValueString($idfoto_foto, "int")); $foto = mysql_query($query_foto, $gallery) or die(mysql_error()); $row_foto = mysql_fetch_assoc($foto); $totalRows_foto = mysql_num_rows($foto); ?>
codice:<table width="200" border="1"> <?php do { ?> <tr> <td><?php echo $row_photo['percorso']; mysql_fetch_assoc($photo)++;?></td> <td><?php echo $row_photo['percorso']; mysql_fetch_assoc($photo)++;?></td> <td><?php echo $row_photo['percorso'];mysql_fetch_assoc($photo)++;?></td> <td><?php echo $row_photo['percorso']; mysql_fetch_assoc($photo)++;?></td> <td><?php echo $row_photo['percorso'];mysql_fetch_assoc($photo)++;?></td> <td><?php echo $row_photo['percorso']; mysql_fetch_assoc($photo)++;?></td> </tr> <?php } while ($row_photo = mysql_fetch_assoc($photo)); ?> </table>

Rispondi quotando

