Hi there Guru's of php!
I've not posted on here for ages, and now in the midst of a project that I need advise on.
echo mysqli_fetch_object(Mysqli_Query("Select * FROM Somedb where ID = 1 LIMIT 1"))->FieldReturned;
Why doesn't this work? In know as it's not the best practice to have no error catching on there, but for now that's not my concern - I can't understand why nested functions don't work like this anymore.
I've a feeling as it's because it needs to be iterated through? Because the nature of the return data of this function is that it's in array format (index/relational), so potentially I could get this going by doing:-
while ($got = Mysqli_fetch_object("something to query")) $got->FieldReturned;
Any thought's on this?
Been so long since I've written php now too, just a bit rusty - still got the graphical skills to shame my little bro!