Jump to content

emontcol

New Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About emontcol

  • Rank
    Newbie
  1. Oh not quite, in this case I am talking about a dashboard where users or myself can see their stats, profile, etc.
  2. Hello, Do you know where I can download a nice looking PHP admin dashboard for free? Thanks in advance for the help
  3. Thank you so much everyone, I was able to find out that the issue was with the fields when I was calling them from PHP ("They were in miniscule")
  4. Hello, I hope all of you are safe with your families. Currently I am starting with PHP Coding and I am trying to do a simple query to MySQL DB using PHP but even when is able to bring the number of rows is not displaying the values in the DB. This is my code: <?php $servername = "localhost"; $database = "mydbtest"; $username = "root"; $password = "root"; // Create connection $conn = mysqli_connect($servername, $username, $password, $database); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } //echo "Connected successfully"; $myquery = "SELECT * FROM Country"; $result = $conn->query($myquery); $numf = $result->num_rows; echo "Number of rows " . $numf . "<br>"; if($numf >0){ while($row = $result->fetch_object()){ echo "Code" . $row->countrycode . "<br>"; echo "Country" . $row->countryname . "<br>"; } }else{ echo '0 results'; } mysql_free_result($myout); mysqli_close($conn); ?> What is failing? Thanks in advance for the assistance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.