I have a funny error while I'm trying to output a single variable assigned from database.
I'm querying a top id from database and assigning it to a variable. Here:
$ID_Query = "SELECT DISTINCT MAX(pict_id) FROM picts;";
$temprID = mysql_query( $ID_Query, $Connection ) or die("ERROR: ".mysql_error());
$myID = mysql_fetch_row( $temprID );
But when I'm trying to pass it to the query or simply output $myID
I'm getting the Array to string conversion
error.
I tried to run the query in mysql and it returns a single value. Where is my mistake?