Search
 
SCRIPT & CODE EXAMPLE
 

PHP

trying to get property

Check the manual for mysql_fetch_object(). It returns an object, not an array of objects.

I'm guessing you want something like this

$results = mysql_query("SELECT * FROM sidemenu WHERE `menu_id`='".$menu."' ORDER BY `id` ASC LIMIT 1", $con);

$sidemenus = array();
while ($sidemenu = mysql_fetch_object($results)) {
    $sidemenus[] = $sidemenu;
}
Comment

PREVIOUS NEXT
Code Example
Php :: Target class [LoginController] does not exist. 
Php :: Insert Data Into MySql Database Multiple Columns PHP Function 
Php :: laravel file upload 
Php :: unlink() in php 
Php :: laravel helper functions 
Php :: laravel route name with parameters 
Php :: download php 7.4 
Php :: laravel file permission denied 
Php :: php if equal 
Php :: php api call with headers 
Php :: how to change the colum type in migration laravel 
Php :: php nested array 
Php :: Laravael Blog Project 
Php :: add password php file 
Php :: logout php code 
Php :: select query into left join doctrine 
Php :: tackel discount in javascript 
Java :: android.support.design.widget.coordinatorlayout androidx 
Java :: Java JDK 11 ubuntu 
Java :: spigot cancel repeating task 
Java :: java android show toast 
Java :: java age from date 
Java :: flutter Uri toString and String to Uri 
Java :: java selenium new window 
Java :: java random 6 digit number 
Java :: array to map java10 
Java :: convert java date to sql date 
Java :: copy collection java 
Java :: How to connect java class file to xml file 
Java :: flutter request location permission 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =