28.02.2013, 15:56
So, I am expierenced in web development, PHP, MySQL, CSS, JS, all that. The question I had was if MySQL just uses normal comammands like "mysql_connect();" and "mysql_fetch_assoc" blah blah...
In php, I would do the following (after connected to DB)
ETC. and then just set those variables to the player, but obviously it is different in PAWN. Is it a lot different or kinda similar? Cause I would love to use that instead cause then I could write my own UCP.
In php, I would do the following (after connected to DB)
PHP Code:
<?php
$info = mysql_query("SELECT * FROM users WHERE username = '$username'");
$row = mysql_fetch_assoc($info);
$money = $row['money'];
$loc = $row['loc'];
?>