Hi Al...
I use Macromedia Dreamweaver UltraDev with PHAkt plugin (you'll have to add
it from the dreamweaver ultradev extensions @ www.macromedia.com/exchange
Macromedia UltraDev is available for 30 day free trial at their site
it has brilliant php support..you barely have to know a stitch
not on auto increment...thats the point!
why would you need to get the #6 back anyway...
this is the fundementals of database theory... chances are the database is
using this autoincrement field as the PRIMARY KEY...in which case no
duplicates are allowed..
In terms of records...your id#7 has be
LOL...thanks ed...figured it out last night...
don't need to do a file_exists
since i capture file_name in my db...I do a query before the insert to see
if the file_name entered in the form, matches any of the file_names stored
in mySQL. if the count of the record set > 0 then the file exists, a
I don't get an error message...but the page doesn't automatically forward to
the redirected url.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm creating an upload form for users to upload files to my server. but I
don't want them to overwrite existing files if they try to upload using the
same file name...
THE FOLLOWING SCRIPT WORKS PERFECTLY
if (file_exists("uploads/documents/".$file_name)==TRUE) {
die ("File already exists")
Do you mean the data doesn't transfer over to your database?
"Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Whenever I use a mult-line textfield, the data inside doesn't transfer
> over. But single-line textfields work just fine.
>
> how d
6 matches
Mail list logo