Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

MYSQLI code to retrieve info

$
0
0

This code is meant to retrieve a row in a form but it returns nothing, I have tried it many different times even with HTML in it it returns nothing at all.

<?php
$conn = new mysqli("****", "***", "****");
$conn->select_db('mynotesdatabase');
$result = mysqli_query($conn, "SELECT * FROM" . $_GET['Folder'] . "WHERE Name='" . $_GET['Name'] . "'") or die(mysql_error());
	

while($row = mysqli_fetch_array($result) or die(mysql_error()))
  {
   echo "<br>";
  echo $row['Main'];
  echo "<br>";
  }
		
echo "<br/> <a href='javascript:history.back(-1);'>Back</a>";

?>


Viewing all articles
Browse latest Browse all 13200

Trending Articles