2010-06-14, 03:59 PM
i am trying to make up an mysql query to insert the data from one other open source script into the mybb database table but i cant seem to work out what is wrong with this mysql that inserts the data into the mybb table any one got any ideas. i get T_CONSTANT_ENCAPSED_STRING on line 108
$sql = "INSERT INTO 'mybb_users' ('uid', 'username', 'password',
'salt', 'loginkey', 'email', 'postnum', 'avatar', 'avatardimensions',
'avatartype', 'usergroup', 'additionalgroups', 'displaygroup',
'usertitle', 'regdate', 'lastactive', 'lastvisit',
'lastpost','website', 'icq', 'aim', 'yahoo', 'msn',
'birthday','birthdayprivacy', 'signature', 'allownotices',
'hideemail','subscriptionmethod', 'invisible', 'receivepms',
'pmnotice','pmnotify', 'remember', 'threadmode', 'showsigs',
'showavatars', 'showquickreply', 'showredirect', 'ppp', 'tpp',
'daysprune', 'dateformat', 'timeformat', 'timezone', 'dst',
'dstcorrection', 'buddylist', 'ignorelist', 'style', 'away', 'awaydate',
'returndate', 'awayreason', 'pmfolders', 'notepad', 'referrer',
'reputation', 'regip', 'lastip', 'longregip', 'longlastip', 'language',
'timeonline', 'showcodebuttons', 'totalpms', 'unreadpms',
'warningpoints', 'moderateposts', 'moderationtime', 'suspendposting',
'suspensiontime', 'coppauser', 'classicpostbit', 'loginattempts',
'failedlogin') VALUES (2, '".$aname."', '".$apass."', '".$salt."',
'".$login_key."', '".$amail."', 0, '', '', '0', 4, '', 0, '',
1271608659, 1271608659, 1271608659, 0, '', '', '', '', '', '', 'all',
'', 1, 0, 0, 0, 1, 1, 1, 1, '', 1, 1, 1, 1, 0, 0, 0, '', '', '0', 0, 0,
'', '', 0, 0, 0, '', '', '', '', 0, 0, '".$ip"', '', 1603640497, 0, '',
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0)";