SHARE
TWEET
Untitled
a guest
Jan 29th, 2018
47
in 21 hours
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- <?php
- $link = mysqli_connect("localhost", "my_user", "my_password", "world");
- /* Select queries return a resultset */
- if ($result = mysqli_query($link, "SELECT Name FROM City LIMIT 10")) {
- printf("Select returned %d rows.\n", mysqli_num_rows($result));
- /* free result set */
- mysqli_free_result($result);
- }
- ?>
RAW Paste Data

