MIST 5990 - Zlatko Unger's PHP Experience

Sunday, December 03, 2006

Final Project - Part 1

so I started working on this final project here is my progress

first i created a table uploads

SQL-query:
CREATE TABLE uploads(
upload_id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
file_name varchar( 30 ) NOT NULL ,
file_size int( 6 ) unsigned NOT NULL ,
file_type varchar( 30 ) NOT NULL ,
description varchar( 100 ) default NULL ,
date_entered TIMESTAMP,
PRIMARY KEY ( upload_id ) ,
KEY ( date_entered )
)

then I started messing around with add_file.php

I got it to connect to the server, but im getting lots of errors
working on them one by one

here is the latest one

Fatal error: Call to undefined function: escape_data() in C:\Domains\ugasmis.org\wwwroot\_officers\add_file.php on line 24


that was fun, apparently the connections that the book uses and the one that the website uses is different ... i had to add some extra statements to correct overflow

here is the latest error

Could not connect to MySQL: Unknown MySQL Server Host 'DB_HOST' (11001)


grrr... thsi is just some lame error due to the fact that the way the book does stuff (more professional) is not in sync with the website which was designed poorly

anyway, we are sucessful !

File number 1 has been uploaded!

wooo hooo... its working ... yey ... check it out ... the files are saved as binary files ... hopefully the view file will make it all work ...


0 Comments:

Post a Comment

<< Home