I am new about php and mysql.
I start a project for make a little application, and it's work like this:
- Load API facebook
- if the ID of user doesn't exist on database, insert ID and username on a specific table of database.
- after that, load the row of the user where the ID facebook is equal on the database.
the problem is on the third step!!
This is the code:
if ( $loadspecific == "caricadati" ) {
$query =array() == "SELECT * UIDfacebook FROM tabletest WHERE UIDfacebook = $id";
$result = mysql_query(mysql_real_escape_string($query)) or die (mysql_error());
while($row = mysql_fetch_array($result))
{
echo "{$row['UIDfacebook']} <br>" ;
}
}else{
echo $result;
}
mysql_close($dblink);
//Close off the MySQL connection to save resources.
?>
thank you so much!!!