Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Free Virtual Servers

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 12:44:40 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Website Design > Scripts and Coding
Connect with Facebook

Scripts and Coding PHP, MySQL, scripts

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-05-2011, 04:41:32 PM     #11 (permalink)
Administrator
 
admin's Avatar
 
Join Date: Jun 2004
Posts: 8,601
admin has disabled reputation

In the auctions i only want the "view bids" to show if the auction has bids, how do I do that?

I also want to link (join) to another table to get the number of bids...

thanks

Admin
admin is offline  
Old 06-05-2011, 10:32:39 PM     #12 (permalink)

 
killaclown's Avatar
 
Join Date: Feb 2006
Posts: 218
killaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond repute

hi admin,

you probably already know, but i think maybe,

IF bidcount row >= 1 {

show }

else {
"be the first to bid" (whatever)
}

i could give a better answer if i could see the code, table/feild names.

pm me if you want me to have a "proper bash" tomo.
__________________
Wigan Web Design | Personalised Pop Art |
killaclown is offline  
Old 08-05-2011, 07:14:46 PM     #13 (permalink)
Administrator
 
admin's Avatar
 
Join Date: Jun 2004
Posts: 8,601
admin has disabled reputation

Quote:
Originally Posted by killaclown55 View Post
hi admin,

you probably already know, but i think maybe,

IF bidcount row >= 1 {

show }

else {
"be the first to bid" (whatever)
}

i could give a better answer if i could see the code, table/feild names.

pm me if you want me to have a "proper bash" tomo.
I'm already using the IF and ELSE to alternate the row colours. How do I do both?
admin is offline  
Old 09-05-2011, 09:12:07 AM     #14 (permalink)

 
killaclown's Avatar
 
Join Date: Feb 2006
Posts: 218
killaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond reputekillaclown has a reputation beyond repute

Hi admin,

Im dont know the names of your rows or excatly how you've done the if/elses for the row colours, but maybe something like this,



your IF (condition for row colour) {

your if code for row colour;

/* new if stament */ IF (yourbidcount.row >= 1) {

print ("<a href=\"linkToBidPage/\">view bids</a> ");

}



else {

print("be the first to bid");

}

}

your else {

your else code for the row colour

/* new if stament */ IF (yourbidcount.row >= 1) {

print ("<a href=\"linkToBidPage/\">view bids</a> ");

}



else {

print("be the first to bid");

}

}


}


Its a bit messy, but should work.
__________________
Wigan Web Design | Personalised Pop Art |
killaclown is offline  
Closed Thread



Bookmarks

Tags
php help please

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
Experienced freelance developer available (PHP, MySQL, Wordpress, feeds, APIs, etc. MartinWood Scripts and Coding 0 06-09-2010 11:33:05 AM
Which PHP framework monaghan Scripts and Coding 6 22-07-2010 08:31:56 PM
PHP include in a Smarty Template admin Scripts and Coding 1 13-05-2008 06:37:26 AM

Domain Sponsor 2


All times are GMT. The time now is 12:44:40 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".