DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = Is it better to use ids or classes to style my divs with CSS? - iTechForums
Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 3
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2008, 01:16 PM
Chris M Chris M is offline
Junior Member
 
Join Date: May 2008
Posts: 13
Default

Is it better to use ids or classes to style my divs with CSS?


I'm testing out making web page layouts using css, but i'm not quite sure what the best practice is when it comes to classes or ids or classes for specific tags..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-06-2008, 01:18 PM
dhvrm dhvrm is offline
Member
 
Join Date: May 2008
Posts: 57
Default

Use contextural selectors (IDs) if you intend the style to apply to only one element (DIV). Use classes if the style applies to more than one element.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-06-2008, 01:18 PM
Tasm Tasm is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

I thin Id is used if you only have to use the style on one item such as the title or something.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Your Ad Here

All times are GMT. The time now is 08:10 PM.