Greetings
I am, trying to get 2 maps out of a database using 2 variables. But when I put the clause AND it does not give me second map ie see below.
This scrip works
$map1 = 1;
function listmaps( $map1 )
{
$result = mysql_query ( "SELECT * from mpn_war_maps WHERE id='$map1' ");
while ( $a_row = mysql_fetch_array( $result ))
{
echo "$a_row[1]";
}
}
then all I have to do is
listmap( $map1); to display result. But i cannot get 2 out ie
##############################################
$map1 = 1;
$map2 = 2;
function listmaps( $map1, $map2 )
{
$result = mysql_query ( "SELECT * from mpn_war_maps WHERE id='$map' AND id='$map2' ");
while ( $a_row = mysql_fetch_array( $result ))
{
echo "$a_row[1]";
}
}
lismaps ( $map1, $map2 );
I am abviously doing something wrong. Please advise me if ya can.
Thanks