jeg er igang med en tagwall der kan hentes fra min hjemmeside til privat brug.
men den skriver en fejl
her er den
Tilføj Tag
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/web/gb2490/tag/index.php on line 10
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/web/gb2490/tag/index.php on line 12
Endnu Ingen Tags Tilføjet.
her er min kode
<body>
<div align="center">
<a href="post.php" onclick="MyWindow=window.open('post.php','MyWindow', 'toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=,resizable=no,width=300, height=250,left=25,top=25'); return false;" target="_blank">Tilføj Tag</a>
<?
require("config.php");
mysql_connect($host, $user, $pass);
mysql_select_db($db);
$inforesult = mysql_query("SELECT id, date, name, name, email, messege FROM $tabel order by date desc");
mysql_select_db($db);
$info = mysql_fetch_array($inforesult);
mysql_select_db($db);
if(mysql_num_rows($inforesult) > 0)
{ ?>
<table style="border: 2px solid black;" cellpadding="1" cellspacing="0" width="421">
<tr>
<td width="69">Skrevet Af</td>
<td width="10">
<div align="center">
<b>:</b></div>
</td>
<td width="128"><b><? echo($info[name]); ?></b></td>
<td width="17"></td>
<td width="30">Dato</td>
<td width="10">
<div align="center">
<b>:</b></div>
</td>
<td><b><? echo($info[date]); ?></b></td>
</tr>
<tr>
<td colspan="7">
<hr>
</td>
</tr>
<tr>
<td width="69">Besked</td>
<td width="10">
<div align="center">
<b>:</b></div>
</td>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="7">
<div align="right">
<hr>
<b>IP:</b>Logged</div>
</td>
</tr>
</table>
<?
}
else
{
echo "<center><b>Endnu Ingen Tags Tilføjet.</b></center>";
}
?></div>
</body>
-------------------------------------------
Husk At Besøge www.GenerationX.dk