$rows = ( "SELECT * FROM `client` WHERE `clientid` = '".$_SESSION['clientid']."' LIMIT 1" );
$result1 = ( "SELECT `serverid`, `ipid`, `name`, `game`, `status`, `online`, `slots`, `type`, `port` FROM `server` WHERE `clientid` = '".$_SESSION['clientid']."' ORDER BY `serverid`" );
$servers = array( );
while ( $rows1 = ( $result1 ) )
{
if ( !empty( $rows1['ipid'] ) )
{
$rows2 = ( "SELECT `ip` FROM `ip` WHERE `ipid` = '".$rows1['ipid']."' LIMIT 1" );
$rows1 = ( $rows1, $rows2 );
}
( $servers, $rows1 );
}
so, i'm getting this error:
Parse error: syntax error, unexpected ',' in /path/to/index.php on line 10
live 10 is this one:
$rows1 = ( $rows1, $rows2 );
my friend gave me this php application so i'm not really familiar with the problem.
$row1a string; make$resulta string; make$row1equal to$resultin anifstatement; if an array element of the string$row1is filled (it isn't) fill$row2with a string; then start wrapping these strings in brackets separated by commas. Are you aware no SQL query has actually been performed anywhere?