Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Database conversion

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 28, 2012
Messages
80
Reaction score
44
Hey Folks;

for my travian-projekt i have this problem :

PHP:
function get_user($spalte,$userid) { // Userdaten holen 
$sql ='SELECT '.$spalte.' FROM player_key_users where key_usr_id=\''.$userid.'\'';  
$result = mysql_query($sql) OR die(mysql_error());    
$user = mysql_fetch_assoc($result); 
return $user;
}  

function update_user($updatewerte, $userid) { 
	
$update = 'UPDATE player_key_users SET '.$updatewerte.' WHERE key_usr_id=\''.$userid.'\'';
$updatetrue=mysql_query($update);	

return $updatetrue;

What must i change that it will goes with the databasestructure from travian?
I use google, but i found nothing that helps me and i'm not firm enough in mysql :mellow:

please help as fast as possible :)

best wishes
Ralf
 
Last edited:
Status
Not open for further replies.
Back
Top