<?php require("config.php"); require("connect.php"); $image = $rekord['image']; $sciezka = $rekord['sciezka']; echo '<div id="panel"> <table width="100%" height="50px" background="'.$image.'"> <tr> <td></td> </tr> </table> <table width="100%" height="auto"> <tr> <td>'; include ($sciezka); echo '</td> </tr> </table> </div>'; } ?>
I rozchodzi mi o to, że nie includuje mi ($sciezka), chyba ze usune $image z tła tabeli. Błąd wygląda tak:
Kod
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.;C:\php5\pear') in D:\Program Files (x86)\WebServ\httpd-users\New Project\panel.php on line 31