Oh stimmt, super!
Bekomme bloß nen Error:
Parse error: syntax error, unexpected ';' in /web/include/functions.php on line 209
Das ist die Zeile:
Bekomme bloß nen Error:
Parse error: syntax error, unexpected ';' in /web/include/functions.php on line 209
Das ist die Zeile:
PHP:
$coordinates = rand(1, $row[sectors].':'.rand(1, $row[citysectors]);
PHP:
$row=mysql_fetch_assoc(mysql_query("SELECT * FROM config", $db));
$i = 0;
do
{
$coordinates = rand(1, $row[sectors].':'.rand(1, $row[citysectors]);
$found = mysql_num_rows(mysql_query("SELECT coordinates FROM citys WHERE coordinates = '$coordinates'", $db));
$i++;
}
while ($found && $i < $sectors*$citysectors);