Hey guys I am having trouble with how my website pops up. You will see the problem when you go to it.
Here is the code I am using:
<?
mysql_connect(localhost,'xxxxxx','xxxxxx');
@mysql_select_db('xxxxxx');
$result = mysql_query("SELECT * FROM xxxxxx");
$numofrows = mysql_num_rows($result);
$height=240*ceil($numofrows / 3);
?>
<center>
<div id="games">
<?
$i=$numofrows-1;
while($i > -1){
$k = $i;
$linkname = mysql_result($result,$i,'nameofgame');
$linkhref = mysql_result($result,$i,'URL');
$linkpic = mysql_result($result,$i,'picurl');
$sidedecider = $i % 3;
if($sidedecider == 0){
$align = "left";
}
if($sidedecider == 1){
$align = "center";
}
if($sidedecider == 2){
$align = "right";
}
?>
<a href="javascript:;" onclick="javascript:document.getElementById('<? echo $linkname; ?>').submit();">
<img align="<? echo $align; ?>" src="<? echo $linkpic; ?>" class="game"></a>
<form id="<? echo $linkname; ?>" action="game.php" method="post">
<input type="hidden" name="gameurl" value="<? echo $linkhref; ?>">
</form>
<?
$i--;
}
$otherresult = mysql_query("SELECT * FROM xxxxxx");
$othernumberofrows = mysql_num_rows($otherresult);
$j=0;
?>
</div>
</center>
my website is at http://mpm.x10.mx
please help
Here is the code I am using:
<?
mysql_connect(localhost,'xxxxxx','xxxxxx');
@mysql_select_db('xxxxxx');
$result = mysql_query("SELECT * FROM xxxxxx");
$numofrows = mysql_num_rows($result);
$height=240*ceil($numofrows / 3);
?>
<center>
<div id="games">
<?
$i=$numofrows-1;
while($i > -1){
$k = $i;
$linkname = mysql_result($result,$i,'nameofgame');
$linkhref = mysql_result($result,$i,'URL');
$linkpic = mysql_result($result,$i,'picurl');
$sidedecider = $i % 3;
if($sidedecider == 0){
$align = "left";
}
if($sidedecider == 1){
$align = "center";
}
if($sidedecider == 2){
$align = "right";
}
?>
<a href="javascript:;" onclick="javascript:document.getElementById('<? echo $linkname; ?>').submit();">
<img align="<? echo $align; ?>" src="<? echo $linkpic; ?>" class="game"></a>
<form id="<? echo $linkname; ?>" action="game.php" method="post">
<input type="hidden" name="gameurl" value="<? echo $linkhref; ?>">
</form>
<?
$i--;
}
$otherresult = mysql_query("SELECT * FROM xxxxxx");
$othernumberofrows = mysql_num_rows($otherresult);
$j=0;
?>
</div>
</center>
my website is at http://mpm.x10.mx
please help