To access the elements in the array, use array notation: $product['prodname']
$product->prodname
is object notation, which can only be used to access object attributes and methods.
More Related Contents:
- how to select only one value sql
- How to create codeigniter dynamic menu from single table
- Comma separated numeric values – PHP CodeIgniter
- CodeIgniter – foreach loop
- PHP – Change value y,n in database [closed]
- How to insert multiple rows from array using CodeIgniter framework?
- strange character encoding of stored data , old script is showing them fine new one doesn’t
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- Find total number of results in mySQL query with offset+limit
- How can I Use Prepared Statements in CodeIgniter
- Grouping WHERE clauses in Codeigniter
- What are the differences between backtick and single quote? Can I use IF statement in a query as above?
- How to create Codeigniter language files from database?
- Codeigniter Transactions
- Inserting NOW() into Database with CodeIgniter’s Active Record
- How to select rows where column value IS NOT NULL using CodeIgniter’s ActiveRecord?
- Escaping SQL queries in Codeigniter
- Search engine PHP return error [closed]
- Auto Increment ID’s of 4 digit
- php nested while loop. Inner loop works only once [closed]
- Problame with files on SQL
- PDOException “could not find driver”
- How can I write SQL for a table that shares the same name as a protected keyword in MySql? [duplicate]
- How to populate second dropdown based on selection of first dropdown using jQuery/AJAX and PHP/MySQL?
- Using Mysqli bind_param with date and time columns?
- How do I insert multiple checkbox values into a table?
- Is mysql_insert_id safe to use?
- Warning: mysqli_query() expects parameter 1 to be mysqli, resource given [duplicate]
- Using utf8mb4 with php and mysql
- How to write a stored procedure in phpMyAdmin?