Ok ve been working on a cash shop and this part of it but its kinda screwed atm so any help please post ok :)
Oh and BTW I haven't coded this stuff n Like a year so I forgot most of it xDCode:<?php $srvip = ""; $srvport = "6000"; $mssql_user = "sa"; $mssql_pass = ""; $mssql_database = "GunZDB"; $mssql_host = "DECLAN"; $conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass); mssql_select_db($mssql_database); ?> <?php $user = ($_POST[user]); $item = ($_POST[item]); $query1 = mssql_query("SELECT AID FROM Accounts WHERE UserID='$user'"); { $aid = mysql_fetch_array($query1); { $query2 = mssql_query("INSERT INTO AccountItems (AID,ItemID) VALUES ('$aid','$item')"); }} ?>



Reply With Quote![[MSSQ]Making a GunZ cash shop need help!](http://ragezone.com/hyper728.png)

