close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

default image

Thread began 8/21/2010 5:53 am by i.edwards384429 | Last modified 8/23/2010 10:29 am by Jason Byrnes | 808 views | 3 replies |

i.edwards384429

default image

Hi

At

users_Registration.php

is the registration solution with lots of modifications and all works.

I've added ten upload fields which do upload and update the database!!!!

In the table design I set the default to be noimage.jpg which is a place holder image for use if the user does not upload an image.

However when I fill in the form if I upload no images then it seems that a null value is written into the database so no default image is listed.

Clearly yet again I've missed something, is there a box i've forgotten to tick?

thanks

Ian



SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`UserID` int(11) NOT NULL auto_increment,
`UserEmail` varchar(500) default NULL,
`UserPassword` varchar(500) default NULL,
`UserFirstName` varchar(50) default NULL,
`UserLastName` varchar(50) default NULL,
`UserCity` varchar(90) default NULL,
`UserState` varchar(20) default NULL,
`UserZip` varchar(12) default NULL,
`UserContactHours` varchar(12) default NULL,
`UserEmailVerified` tinyint(1) default '0',
`UserRegistrationDate` timestamp NULL default CURRENT_TIMESTAMP,
`UserVerificationCode` varchar(20) default NULL,
`UserIP` varchar(50) default NULL,
`UserPhone` varchar(20) default NULL,
`UserFax` varchar(20) default NULL,
`UserCountry` varchar(20) default NULL,
`UserAddress` varchar(100) default NULL,
`UserAddress2` varchar(50) default NULL,
`UserSex` varchar(20) default NULL,
`UserEthnicity` varchar(20) default NULL,
`UserAge` varchar(20) default NULL,
`UserTypes` varchar(20) default NULL,
`UserArea` varchar(20) default NULL,
`UserImage1` varchar(20) default 'noimage.jpg',
`UserImage2` varchar(20) default 'noimage.jpg',
`UserImage3` varchar(20) default 'noimage.jpg',
`UserImage4` varchar(20) default 'noimage.jpg',
`UserImage5` varchar(20) default 'noimage.jpg',
`UserImage6` varchar(20) default 'noimage.jpg',
`UserImage7` varchar(20) default 'noimage.jpg',
`UserImage9` varchar(20) default 'noimage.jpg',
`UserImage8` varchar(20) default 'noimage.jpg',
`UserImage10` varchar(20) default 'noimage.jpg',
`UserEyeColour` varchar(20) default NULL,
`UserHairColour` varchar(20) default NULL,
`UserHips` varchar(20) default NULL,
`UserWaist` varchar(20) default NULL,
`UserBustChest` varchar(20) default NULL,
`UserHeight` varchar(20) default NULL,
`UserWeight` varchar(20) default NULL,
`UserHatSize` varchar(20) default NULL,
`UserDressSize` varchar(20) default NULL,
`UserSmoker` varchar(20) default NULL,
`UserDistinguishingFeatures` varchar(50) default NULL,
`UserShoeSize` varchar(20) default NULL,
`UserGloveSize` varchar(20) default NULL,
`UserModellingExperience` varchar(50) default NULL,
PRIMARY KEY (`UserID`)
) ENGINE=MyISAM AUTO_INCREMENT=127 DEFAULT CHARSET=latin1;

-- ----------------------------

Sign in to reply to this post

Jason ByrnesWebAssist

In the upload file server behavior, set the Default File to 'noimage.jpg'

Sign in to reply to this post

i.edwards384429

update

Thanks Jason

as usual looking for a complicated solution when a simple one was there ;-(

cheers

Ian

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...