How to make object .

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
MarioParty
New php-forum User
New php-forum User
Posts: 42
Joined: Tue Aug 02, 2011 2:52 am

Sat Dec 28, 2013 3:26 pm

I'm not really sure what you mean? You already have everything that you require.

Code: Select all

$video = "SELECT * FROM `video123`;
$vid = $mysqli->query($video) or die($mysqli->error.__LINE__);
    if($vid->num_rows!=0)
    {
             $video_array = array();
             while($row = $vid->fetch_assoc()) 
             {
                $video_array[] = $row;
             }
     }

var_dump($video_array);

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests