November 11th, 2013, 01:16 AM
How to make object .
This is my code
I want its response to be like this
$video = "SELECT * FROM `video123`;
$vid = $mysqli->query($video) or die($mysqli->error.__LINE__);
while($row = $vid->fetch_assoc())
November 11th, 2013, 01:58 AM
November 14th, 2013, 01:25 PM
Nothing will give you the response you're asking for, especially since your thread title asks about objects and your sample output is for an array.
Read the PHP manual chapter on objects to learn more about OOP.
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.