Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-17-2004, 07:29 AM   #1 (permalink)
DavH27
PHP Pilgrim
 
DavH27's Avatar
 
Join Date: Aug 2004
Location: London
Posts: 170
DavH27 is on a distinguished road
Stickies

Can they be done?

I have not seen any around. I'm not sure if this board calls them 'stickies' but to those that don't know - they are topics that will always be listed on the top of all other topics.

I wanted to ask somebody who knew what theyw ere doing to write a quick 'How to install MySQL' sticky for idiots like me that know a lil SQL from college and such forth but cannot install it from adam.

__________________
Davy - Programming since 1998 [CV]
Currently working on: n/a
Status: n/a
DavH27 is offline   Reply With Quote
Old 08-17-2004, 08:17 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
yes, this board calls them stickys. there is not really a 'right' way to do this and it really depends how your database is setup, but let me give an example.

let's say i have a table named: posts
it looks like this:
postid
threadid
posttitle
posttext
postdate
issticky

now if i wanted to grab all posts for thread id# 100, and ordered by date, but display sticky posts first, then i'd do this:

select * from posts where threadid=100 order by sticky desc,date
__________________
Mike
sde is offline   Reply With Quote
Old 08-17-2004, 08:37 AM   #3 (permalink)
DavH27
PHP Pilgrim
 
DavH27's Avatar
 
Join Date: Aug 2004
Location: London
Posts: 170
DavH27 is on a distinguished road
Ahh cool ok. So...can we do it then? Do you plan on getting stickies implemented? As I understand it only admins / mods / people of importance can assign stickies so fair enough.

Is this your way of trying to teach me a lil SQL?

Okay...*makes notes*
__________________
Davy - Programming since 1998 [CV]
Currently working on: n/a
Status: n/a
DavH27 is offline   Reply With Quote
Old 08-17-2004, 08:44 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
oh, i thought u were asking that on a program level .. if you are just inquiring about how this forum works .. you got it right. only admins/moderators can make things sticky. otherwise it could get pretty ugly.
__________________
Mike
sde is offline   Reply With Quote
Old 08-17-2004, 09:19 AM   #5 (permalink)
DavH27
PHP Pilgrim
 
DavH27's Avatar
 
Join Date: Aug 2004
Location: London
Posts: 170
DavH27 is on a distinguished road
I think I confused you when I mentioned SQL.

I was asking because I think certain topic need stickies for everybody's reference and I used the MySQL thread as an example!

Nevermind!

So can you guys do them already? If you can then I might instigate the CN sticky revolution and start a few and suggest them for stickyness
__________________
Davy - Programming since 1998 [CV]
Currently working on: n/a
Status: n/a
DavH27 is offline   Reply With Quote
Old 08-17-2004, 10:14 AM   #6 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
Yes we can make anything sticky

Just point us in the right direction, and we'll considder if it's apropriate to make it stick.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 08-17-2004, 01:10 PM   #7 (permalink)
DavH27
PHP Pilgrim
 
DavH27's Avatar
 
Join Date: Aug 2004
Location: London
Posts: 170
DavH27 is on a distinguished road
Here is the first one.

It would probably need proof reading and checked over for in integrity and accuracy but I did it based from experience

Beating down Spyware
__________________
Davy - Programming since 1998 [CV]
Currently working on: n/a
Status: n/a
DavH27 is offline   Reply With Quote
Old 08-17-2004, 02:40 PM   #8 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
and that is what a sticky looks like thanks.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

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 On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 11:27 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting