I have an application on facebook which has been running smoothly for the past 12 months, however today, it has stopped working due to and offset error as seen below:
**Fatal error**: Cannot use string offset as an array in **/home/username/public_html/application/[url removed, login to view]** on line **23
I have checked the code and have found it to be in the following:
// Get user details from facebook
$get_name="SELECT name, pic_square FROM user WHERE uid = '".$user_id."'";
The error is in this line:
If i remove the "" the page loads but the data requested isnt sent which is causing the application to break.
I need you to tell me how to fix this issue so the user data requested is displayed when called from my application.
This is an urgent job, and i will be selecting a bidder in the next hour.