mysqli - MYSQL and PHP output data limit -


when retrieving data mysql server seems limiting output results. please refer following attachments

code:

<style> tr,td {     border:1px red solid; } </style> <?php     include('./connect.php');      if (!$connect) {         die('could not connect: ' . mysql_error());     }      $db_selected = mysqli_select_db($connect, db_name);      if (!$db_selected) {         die('can\'t use ' . db_name . ': ' . mysql_error());     }        //execute sql query , return records     $result = mysqli_query($connect, "select * jobs order id desc limit 1");      echo "<table style='border:1px solid red'>";      while($row = mysqli_fetch_array($result)) {         echo '<tr><td>reference number:</td><td>'; echo $row['id'];'</td></tr>';         echo '<tr><td>first name:</td><td>'; echo $row['firstname'];'</td></tr>';         echo '<tr><td>lastname:</td><td>'; echo $row['lastname'];'</td></tr>';         echo '<tr><td>phone numbner:</td><td>'; echo $row['phone'];'</td></tr>';         echo '<tr><td>email:</td><td>'; echo $row['email'];'</td></tr>';         echo '<tr><td>items:</td><td>'; echo $row['items'];'</td></tr>';         echo '<tr><td>fault:</td><td style="width:100%">'; echo $row['issue'];'</td></tr>';      }     echo "</table>";      //close connection     mysqli_close($connect); ?> 

output results:

connected reference number:   100000 first name: jane lastname:   doe phone numbner:  3372555897 email:  janedoe@unknown.com items:  laptop fault:  client states laptop no longer power on. however, p 

as can see under fault heading there should more displaying.

you have multiple errors output.

echo '<tr><td>reference number:</td><td>'; echo $row['id'];'</td></tr>';                                                         ^^^^^^                                                     missing echo 

this occurs on every row , cause layout errors may hiding content.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -