Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
mysql query - default option
Old 06-23-2005, 04:43 PM mysql query - default option
Experienced Talker

Posts: 36
Trades: 0
i got row in table for link to picture, can i by default put link to some default picture when someone don't type link?

link_to_picture varchar(100) default ''
crodream is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-24-2005, 11:26 AM
reli4nt's Avatar
Extreme Talker

Posts: 168
Location: New York
Trades: 0
when you create a table you can set a default:

Code:
CREATE TABLE `table_name` (
`link_to_picture` VARCHAR( 100 ) DEFAULT '<img src="link" alt="" title="">' NOT NULL ,
`id` AUTO_INCREMENT,
PRIMARY KEY ( `id` )
);
__________________

Please login or register to view this content. Registration is FREE

Designing the world we live in.
Defining the terms we live by.
reli4nt is offline
Reply With Quote
View Public Profile Visit reli4nt's homepage!
 
Old 06-24-2005, 12:44 PM
Experienced Talker

Posts: 36
Trades: 0
thanks
crodream is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mysql query - default option
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14701 seconds with 12 queries