Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 03-07-2005, 01:13 PM
TeKBuzz's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 11-12-03
Location: Ohio
Posts: 377
iTrader: 0 / 0%
mySQL syntax problems

Ok, I haven't done mysql in a while and someone will yell at me for not realizing why this is wrong but...
Code:
SELECT * FROM games AS g, game_types AS gt, publishers AS p, developers AS d WHERE g.id_game =1, g.pub_id = p.id_pub, g.dev_id = d.id_dev, g.type_id = gt.id_type
Anyone know why that doesn't work?
__________________
Juggalo Forums ~ A true juggalo community come to life.
TekBuzz ~ Under Construction
Crystal Ball Developing ~ Under Construction
 
Reply With Quote
  #2 (permalink)  
Old 03-07-2005, 01:22 PM
gorillaboy's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 11-01-04
Location: USA! USA! USA!
Posts: 1,258
iTrader: 0 / 0%
Quote:
Originally Posted by TeKBuzz
Ok, I haven't done mysql in a while and someone will yell at me for not realizing why this is wrong but...
Code:
SELECT * FROM games AS g, game_types AS gt, publishers AS p, developers AS d WHERE g.id_game =1, g.pub_id = p.id_pub, g.dev_id = d.id_dev, g.type_id = gt.id_type
Anyone know why that doesn't work?
Don't you need a semi colon? ;
 
Reply With Quote
  #3 (permalink)  
Old 03-07-2005, 01:23 PM
TeKBuzz's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 11-12-03
Location: Ohio
Posts: 377
iTrader: 0 / 0%
Where would I be putting a semi-colon?
__________________
Juggalo Forums ~ A true juggalo community come to life.
TekBuzz ~ Under Construction
Crystal Ball Developing ~ Under Construction
 
Reply With Quote
  #4 (permalink)  
Old 03-07-2005, 01:26 PM
Thermit's Avatar
Member
Latest Blog:
None

 
Join Date: 02-14-05
Posts: 54
iTrader: 0 / 0%
I usually put AND's between my WHERE clause expressions...

WHERE g.id_game=1 AND g.pub_id=p.id_pub AND ...
__________________
SEO + Directory = SEOMA :: seo1.net
 
Reply With Quote
  #5 (permalink)  
Old 03-07-2005, 01:28 PM
TeKBuzz's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 11-12-03
Location: Ohio
Posts: 377
iTrader: 0 / 0%
O_O Thanx Thermit! That was my problem...
__________________
Juggalo Forums ~ A true juggalo community come to life.
TekBuzz ~ Under Construction
Crystal Ball Developing ~ Under Construction
 
Reply With Quote
  #6 (permalink)  
Old 03-07-2005, 01:32 PM
gorillaboy's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 11-01-04
Location: USA! USA! USA!
Posts: 1,258
iTrader: 0 / 0%
Actually, you left out "And" between your clauses.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Forum Replies Last Post
PHP: MySQL, phpymyadmin form problems. Foxtrck Coding Forum 1 04-18-2007 01:56 PM
mySQL IE Problems SN3 Coding Forum 17 05-16-2005 06:22 PM
MySQL syntax question downtroden Coding Forum 1 12-27-2004 12:16 AM
mysql page problems Limit Coding Forum 4 07-15-2004 06:59 AM
MySQL Problems Limit Coding Forum 28 04-02-2004 04:19 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:49 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.