Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in...
Wiem, że ma być mysqli ale jak ma wyglądać cały ten powyższy kawałek?
Coś takiego:
$this->conn = mysqli_connect( "localhost", "root", "rootroot" ); mysqli_select_db( 'baza', $this->conn );
oczywiście wywala:
mysqli_select_db() expects parameter 1 to be mysqli, string given in ...
mysql_query() expects parameter 2 to be resource, object given in ...
a w dalszym kodzie:
Invalid argument supplied for foreach() in ...