L
|
larsonsc 2/17/2007 |
Do those two tables share a common field? If not, you are looking at needing to do two separate qeuries I think since you are trying to get results on two different criteria. If they do share a common field though, you could do something like this: select * from _Tournaments, _PlayerInformation where commonfield = submittedvalue;
|
T
|
thesofa 2/18/2007 |
Subqueries here |
M
|
mmponline author 2/18/2007 |
Let me try in simple explanation: $str = "select * from Table1 where 1ID='".$values["1ID"]."'";
$str = "select * from Table1, Table2 where 1ID='".$values["1ID"]."' and 2ID='".$values["2ID"]."'"; |
T
|
thesofa 2/18/2007 |
Does not retrieve both table's info: $str = "select * from Table1, Table2 where 1ID='".$values["1ID"]."' and 2ID='".$values["2ID"]."'";
$str1 = "select * from Table1 where 1ID='".$values["1ID"]."'";
|
M
|
mmponline author 2/19/2007 |
I get a parse error? function BeforeAdd(&$values) |
T
|
thesofa 2/19/2007 |
The 'and' between the two blocks of code should not have been in the code quote, sorry. |
M
|
mmponline author 2/19/2007 |
Now I get an "Undefined variable: st2r" error message |
T
|
thesofa 2/19/2007 |
Now I get an "Undefined variable: st2r" error message I get this error message on a similar code provided by Jane.
|
M
|
mmponline author 2/21/2007 |
Fixed, thanks |