<?php include 'config.php'; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM name"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); echo "<center>Database Output</center><br><br>"; $i=0; while ($i < $num) { $responses=mysql_result($result,$i,"Kiya_responses"); $responses = preg_replace("/%u([0-9a-f]{3,4})/i","\\1;",urldecode($responses)); $questions=mysql_result($result,$i,"Kiya_questions"); $questions = preg_replace("/%u([0-9a-f]{3,4})/i","\\1;",urldecode($questions)); echo "<br>$questions</br>"; echo "<br>$responses</br>"; $i++; } ?>
$query="SELECT * FROM name ORDER BY id";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)