SQL queries for website

Status
Not open for further replies.
Experienced Elementalist
Joined
Feb 27, 2010
Messages
283
Reaction score
32
Hi all
I am having some problem with the sql query to be executed while adding [Super shue,Lore,And skillslvl1 or lvl3].I need the query code to be executed for the website to execute when user clicks the option.
 
Wut?
Code:
<form method=post>
<input type=submit name='item' value='click to get item `item`' />
</form>

PHP:
<?PHP
include "config.php"; //your database connections
if(isset($_POST['item'])){
 $sql = mysql_query("SELECT * FROM `table` WHERE `item` = '{$_POST['item']}'");

 $sqlly = mysql_fetch_assoc($sql);
 //the rest, lul
}
?>
 
Status
Not open for further replies.
Back