- Joined
- Sep 8, 2007
- Messages
- 202
- Reaction score
- 24
I seem to be having issues selecting data from 1 table and inserting it into another
Somewhere between
I have confirmed that the problem is with $user_idx.
Both data types are int in database.
Any help help would be greatly appreciated.
Thanks for your time and patience
Sincerely,
- xHalloweenx
Code:
Warning: mssql_query() [[URL="http://127.0.0.1:81/Panel/function.mssql-query"]function.mssql-query[/URL]]: message: Conversion failed when converting the varchar value 'Resource id #7' to data type int.
Somewhere between
PHP:
$user_idx = mssql_query("SELECT user_idx FROM game..TB_CHARACTER WHERE CHARACTER_NAME = '$character'");
mssql_query("UPDATE member..chr_log_info SET UserLevel = '7' WHERE id_idx = '$user_idx'");
I have confirmed that the problem is with $user_idx.
Both data types are int in database.
Any help help would be greatly appreciated.
Thanks for your time and patience
Sincerely,
- xHalloweenx

