Hey.
I’ve got an issue with my script. The Data is pulled from the database, but for some reason the printed Data skips 1 Row, which is not what it’s supposed to do. It pulls the rest of them quite successfully, but the fact that it skips 1 ruins the whole point of the script.
Here’s a picture of the Database Table Data, currently:
Here’s a picture of the Printed Data on the website:
And here’s the code
[php] if($_SESSION[‘SESS_MEMBER_ID’] == $data[‘uid’]) {
$sql = “SELECT * FROM grannar where uid=’”.$data[‘uid’]."’ ORDER BY targetname";
$query = mysql_query( $sql );
$rows = mysql_nuM_rows( $query );
$data = NULL;
echo ‘
echo ‘
echo ’ - Mina Grannar -’;
echo ‘
if($rows == 0) {
echo ‘Du har tyvärr inga grannar ännu.’;
}
if($query) {
$row = mysql_fetch_array($query);
$table_start = "<table border='0' style='color: #8e0046;'>