Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Database connection start */
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "blubuk";
- $conn = mysqli_connect($servername, $username, $password, $dbname) or die("Connection failed: " . mysqli_connect_error());
- $requestData= $_REQUEST;
- $columns = array(
- 0 => 'foto_forum',
- 1 => 'judul_forum',
- 2 => 'name',
- 3 => 'waktu'
- );
- // getting total number records without any search
- $sql = "SELECT * ";
- $sql.=" FROM forum ";
- $sql.=" ORDER BY id_forum DESC ";
- $query=mysqli_query($conn, $sql) or die("");
- $totalData = mysqli_num_rows($query);
- $totalFiltered = $totalData; // when there is no search parameter then total number rows = total number filtered rows.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement