mysql rowcount php

Solutions on MaxInterview for mysql rowcount php by the best coders in the world

showing results for - "mysql rowcount php"
Giada
27 Jun 2020
1<?php
2
3$link = mysql_connect("localhost", "mysql_user", "mysql_password");
4mysql_select_db("database", $link);
5
6$result = mysql_query("SELECT * FROM table1", $link);
7$num_rows = mysql_num_rows($result);
8
9echo "$num_rows Zeilen\n";
10
11?>