Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 03-07-2005, 02:13 PM   #1 (permalink)
Inactive
 
TeKBuzz's Avatar
 
Join Date: 11-12-03
Location: Ohio
Posts: 558
iTrader: 0 / 0%
Latest Blog:
None

TeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebody
Send a message via ICQ to TeKBuzz Send a message via AIM to TeKBuzz Send a message via MSN to TeKBuzz Send a message via Yahoo to TeKBuzz
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?
TeKBuzz is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-07-2005, 02:22 PM   #2 (permalink)
v7n Mentor
 
gorillaboy's Avatar
 
Join Date: 11-01-04
Location: USA! USA! USA!
Posts: 2,851
iTrader: 0 / 0%
Latest Blog:
None

gorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to behold
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? ;
gorillaboy is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-07-2005, 02:23 PM   #3 (permalink)
Inactive
 
TeKBuzz's Avatar
 
Join Date: 11-12-03
Location: Ohio
Posts: 558
iTrader: 0 / 0%
Latest Blog:
None

TeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebody
Send a message via ICQ to TeKBuzz Send a message via AIM to TeKBuzz Send a message via MSN to TeKBuzz Send a message via Yahoo to TeKBuzz
Where would I be putting a semi-colon?
TeKBuzz is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-07-2005, 02:26 PM   #4 (permalink)
Inactive
 
Thermit's Avatar
 
Join Date: 02-14-05
Posts: 86
iTrader: 0 / 0%
Latest Blog:
None

Thermit is liked by many
I usually put AND's between my WHERE clause expressions...

WHERE g.id_game=1 AND g.pub_id=p.id_pub AND ...
Thermit is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-07-2005, 02:28 PM   #5 (permalink)
Inactive
 
TeKBuzz's Avatar
 
Join Date: 11-12-03
Location: Ohio
Posts: 558
iTrader: 0 / 0%
Latest Blog:
None

TeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebody
Send a message via ICQ to TeKBuzz Send a message via AIM to TeKBuzz Send a message via MSN to TeKBuzz Send a message via Yahoo to TeKBuzz
O_O Thanx Thermit! That was my problem...
TeKBuzz is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-07-2005, 02:32 PM   #6 (permalink)
v7n Mentor
 
gorillaboy's Avatar
 
Join Date: 11-01-04
Location: USA! USA! USA!
Posts: 2,851
iTrader: 0 / 0%
Latest Blog:
None

gorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to behold
Actually, you left out "And" between your clauses.
gorillaboy is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > 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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP: MySQL, phpymyadmin form problems. Foxtrck Coding Forum 1 04-18-2007 02:56 PM
mySQL IE Problems SN3 Coding Forum 17 05-16-2005 07:22 PM
MySQL syntax question downtroden Coding Forum 1 12-27-2004 01:16 AM
mysql page problems Limit Coding Forum 4 07-15-2004 07:59 AM
MySQL Problems Limit Coding Forum 28 04-02-2004 05:19 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:33 AM.
© Copyright 2008 V7 Inc