The thing that i want to do is to check if there is a same row and if not to insert a new row to the table.
In that case, how can i use if not exists ?
if not exists
User Insert Into to ignore duplicates:
INSERT IGNORE INTO `facebook` SET `ID` = null, `fb_id` = '". $session['id'] ."', `label_id` = '$id', `page_ids`='', `token`='". $access_token ."';