[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
ClanKiller.com Tweaks, Games and General Disorder 2007-02-20T07:33:46-06:00 https://forums.clankiller.com/feed.php?f=24&t=2209 2007-02-20T07:33:46-06:00 2007-02-20T07:33:46-06:00 https://forums.clankiller.com/viewtopic.php?t=2209&p=44360#p44360 <![CDATA[SQL Question]]> Statistics: Posted by Satis — Tue Feb 20, 2007 7:33 am


]]>
2007-02-20T01:26:25-06:00 2007-02-20T01:26:25-06:00 https://forums.clankiller.com/viewtopic.php?t=2209&p=44356#p44356 <![CDATA[SQL Question]]> Statistics: Posted by Pig — Tue Feb 20, 2007 1:26 am


]]>
2007-02-19T15:45:15-06:00 2007-02-19T15:45:15-06:00 https://forums.clankiller.com/viewtopic.php?t=2209&p=44351#p44351 <![CDATA[SQL Question]]> Statistics: Posted by Satis — Mon Feb 19, 2007 3:45 pm


]]>
2007-02-17T15:07:37-06:00 2007-02-17T15:07:37-06:00 https://forums.clankiller.com/viewtopic.php?t=2209&p=44332#p44332 <![CDATA[SQL Question]]> Statistics: Posted by Pig — Sat Feb 17, 2007 3:07 pm


]]>
2007-02-17T11:19:58-06:00 2007-02-17T11:19:58-06:00 https://forums.clankiller.com/viewtopic.php?t=2209&p=44331#p44331 <![CDATA[SQL Question]]>
btw...I have a new job now (more horizontal promotions) and now I'm constantly working. :/

Statistics: Posted by Satis — Sat Feb 17, 2007 11:19 am


]]>
2007-02-16T18:57:58-06:00 2007-02-16T18:57:58-06:00 https://forums.clankiller.com/viewtopic.php?t=2209&p=44330#p44330 <![CDATA[SQL Question]]>
Now if you had CatID in table 2, that is another matter.

table1
id
name
description

table2
id
table1id
name
description

SELECT table1.name AS t1name, table2.name AS t2name FROM table1 LEFT JOIN table2 ON table2.table1id = table1.id WHERE table1.id = 1234;

Statistics: Posted by Pig — Fri Feb 16, 2007 6:57 pm


]]>
2007-02-16T09:52:53-06:00 2007-02-16T09:52:53-06:00 https://forums.clankiller.com/viewtopic.php?t=2209&p=44323#p44323 <![CDATA[SQL Question]]>
I have 2 tables.

table1:
CatID
Name
Description

table2:
SubCatID
Name
Description

I have the CatID and SubCatID and I want to resolve these back to the associated names. I could do two queries, but I'm sure it's possible in one query.

select [Name] FROM table1 WHERE CatID = $CatID;
select [Name] FROM table2 WHERE SubCatID = $SubCatID;

I thought maybe

select a.[Name], b.[Name]
FROM table1 a, table2 b
WHERE a.CatID=$CatID
AND b.SubCatID=$SubCatID

Also tried an OR in the where clause, but no go. Any advice?

Statistics: Posted by Satis — Fri Feb 16, 2007 9:52 am


]]>