Can't select images from database? (PHP)
<p>I was never bofore used OOP in PHP, only in C#,C++ etc but now i want to make one website where i will use OOP.</p>

<p>I want to select all photos from my slike table, and show in index page.</p>

<p>this is engine.php file Select() function works good, but Select_Slike() does not select anything. Can you explain me please, where is error? Thank you.</p>

<pre><code>&lt;?php
error_reporting(E_ALL);
ini_set('display_errors', '0');
include("connect.php");
class Manage{
    public function Select(){
        $query = mysql_query("SELECT naslov FROM slike");
        if($query)
        {
            while($row=mysql_fetch_array($query)){
                echo '&lt;option value="'.$row['slike_id'].'"&gt;'.$row['naslov'].'&lt;/option&gt;';
            }
        }
        else{
            die(mysql_error());
        }
    }
    public function Select_Slike(){
        $query = mysql_query("select * from slike");
        if($query)
        {   
            while($row = mysql_fetch_array($query)){
            echo '&lt;img src="../images/'.$row['string'].'.jpg'.'"/&gt;';
            }
        }
        else{
            echo mysql_query();
        }
    }
}
?&gt;
</code></pre>

<p>index.php page</p>

<pre><code>&lt;center&gt;
&lt;?php
$m = Manage;
$m-&gt;Select_Slike();
?&gt;
&lt;/center&gt;
</code></pre>
