Oracle B25-317-01 Uživatelský manuál Strana 78

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 94
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 77
Using Oracle LOBs to Store and Load Employee Images
7-6 Oracle Database Express Edition 2 Day Plus PHP Developer Guide Beta Draft
14.
Edit anyco.php. In insert_new_emp(), add a call between the
db_execute_statement() and construct_employees() calls to insert the
thumbnail picture:
$r = db_execute_statement($conn, $statement, $err, $bindargs);
if ($r) {
$r = db_insert_thumbnail($conn, $bindargs['NEWEID'],
$_FILES['empphoto']['tmp_name'], $e);
construct_employees();
}
15. In a browser, enter the following application URL:
http://localhost/~<username>/chap7/anyco.php
16. In the Departments page, click Show Employees to navigate to the Employees
page:
17. In the Employees page, to insert a new employee click Insert new employee:
18. The Insert New Employee form allows you to choose a thumbnail image on your
system to be uploaded to the database. Enter your own values in the fields or use
the values as shown. Click Browse:
Zobrazit stránku 77
1 2 ... 73 74 75 76 77 78 79 80 81 82 83 ... 93 94

Komentáře k této Příručce

Žádné komentáře