Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

Showing Galleries_name

$
0
0
GALLERIES NAME:
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: views/editgalleries.php
Line Number: 46
Backtrace:
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\editgalleries.php
Line: 46
Function: _error_handler
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\controllers\Cpages.php
Line: 348
Function: view
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\index.php
Line: 315
Function: require_once



views/editgalleries.php


PHP Code:
<table>
                    <
tr>
                    <
td><i>GALLERIES NAME: <?php echo $galleries_name?></i></td>
                    </tr>
                    <tr>
                    <td>
                        <br><br>ADD IMAGE<br>
                        <input type="text"></input> 
                        <br><br>
                    </td>
                    
                    <td>
                        <div style="margin-left: 50px; margin-top: 60px;">
                                            
                        <div class="form-group">
                        <div class="row">
                        <div class="col-md-12">
                        
                        <input type="file" name="filename" size="20" />
                        <span class="text-danger"><?php if (isset($error)) { echo $error; } ?></span>
                        </div>
                        </div>
                        </div>
            
                        
                        <div class="row">
                            <div class="col-md-12">
                                <input type="submit" class="edit" value="Upload Image" class="btn btn-primary"/>
                            </div>
                        </div>
                        </div>
                    </td>
                    </tr>
                    </table> 




controllers/Cpages.php


PHP Code:
public function editgalleries() { 
    
        
$id $this->uri->segment(3);
    
        
$data['galleries_name'] = $this->Mpages->edit_gallery($id);
    
        
$this->load->view('editgalleries'$data); 
        
    } 


models/Mpages.php


PHP Code:
    public function edit_gallery($id)
    {
        
$this->db->where('galleries_id'$id);
        
$query $this->db->get('galleries');
        return 
$query->result_array();
        
    } 

Viewing all articles
Browse latest Browse all 14348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>