Jump to content

Query System


elflacodepr

Recommended Posts

hello all,

 

I designing my MySQL query system, for now I can do all commands(insert, delete..etc.), the next step add a script where it displays the results, for example if I type: SELECT * FROM tbl,  it must display the results in a table. any help?

 

Heres the script

<?php
if(isset($_POST['save']))
{
include 'library/config.php';
include 'library/opendb.php';


$querybox = $_POST['query_content'];


//Query
$sql = mysql_query($querybox) or die('Error, query failed<br/><b>Query:</b><pre>' . $querybox . '</pre><b>Error: </b>' . mysql_error());

echo "Query entered!";

include 'library/closedb.php';
}

?>

Link to comment
https://forums.phpfreaks.com/topic/116264-query-system/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.