Originally Posted by
lanadekat
If only I knew how php/mysql worked, is it hard to learn to do something like that? ( I mean the php/mysql part )
and you can just use a webhost, I saw those terms used somewhere when I was trying to make a website.
(very messy code)
PHP Code:
if($action == "checkTrade"){
$ip = $_SERVER['REMOTE_ADDR'];
$q = mysql_query("SELECT * FROM accounts WHERE ip LIKE '".$ip."'") or die(mysql_error());
$result = mysql_fetch_array($q);
echo "<trade>";
echo $result['trade'];
echo "</trade>";
}
Simba:
Simba Code:
function checkWebTrade(): Boolean;
var site : String;
begin
site := GetPage('http://abc.zxy/accounts.php?action=checkTrade');
result := pos('true', site) > 0;
end;
if (checkWebTrade()) then
begin
updateStatus('Going to trade as requested');
ect();
ect();
end;
It's very easy to expand once you have the basic knowledge of php/mysql