note 113717 added to mysqli.quickstart.connections

From: Date: Wed, 20 Nov 2013 16:47:15 +0000
Subject: note 113717 added to mysqli.quickstart.connections
Groups: php.notes 
Request: Send a blank email to php-notes+get-197574@lists.php.net to get a copy of this message
<?php $con=mysqli_connect("localhost","root","","abc"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM Persons"); echo "<table border='1'> <tr> <th>Firstname</th> <th>Lastname</th> </tr>"; while($row = mysqli_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['FirstName'] . "</td>"; echo "<td>" . $row['LastName'] . "</td>"; echo "</tr>"; } echo "</table>"; mysqli_close($con); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/mysqli.quickstart.connections.php Edit -- https://master.php.net/note/edit/113717 Del: integrated -- https://master.php.net/note/delete/113717/integrated Del: useless -- https://master.php.net/note/delete/113717/useless Del: bad code -- https://master.php.net/note/delete/113717/bad+code Del: spam -- https://master.php.net/note/delete/113717/spam Del: non-english -- https://master.php.net/note/delete/113717/non-english Del: in docs -- https://master.php.net/note/delete/113717/in+docs Del: other reasons-- https://master.php.net/note/delete/113717 Reject -- https://master.php.net/note/reject/113717 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197574) next »