ASP interesse |
|
Dag kinderen,
Ik had even een vraag. Ik heb een php script en moet iets uit database halen. dit script:
<?
include("config.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Main::Carriere-manager.nl</title>
<style type="text/css">
<!--
.style1 {font-size: 12px}
-->
</style>
</head>
<body>
<table width="395" height="223">
<tr>
<td width="91"><img src="images/competitielogos/bundesliga.jpg" width="80" height="80"></td>
<td width="96"><img src="images/competitielogos/eredivisie.jpg" width="80" height="80"></td>
<td width="97"><img src="images/competitielogos/primeradivision.jpg" width="80" height="80"></td>
<td width="91"><img src="images/competitielogos/primierleaque.jpg" width="80" height="80"></td>
</tr>
<tr>
<td><span class="style1">Competities: </span></td>
<td><span class="style1">Competities: </span></td>
<td><span class="style1">Competities: </span></td>
<td><span class="style1">Competities: </span></td>
</tr>
<tr>
<td><img src="images/competitielogos/superliga.jpg" width="80" height="80"></td>
<td><img src="images/competitielogos/seriea.jpg" width="80" height="80"></td>
<td><img src="images/competitielogos/JupilerLeague.jpg" width="80" height="80"></td>
<td><font size="2"> <img src="images/competitielogos/mls.jpg" width="80" height="80" border="0"></font></td>
</tr>
<tr>
<td><span class="style1">Competities: </span></td>
<td><span class="style1">Competities: </span></td>
<td><span class="style1">Competities: </span></td>
<td><span class="style1">Competities: </span></td>
</tr>
</table>
<font size="2"><strong>
</strong></font>
<p> </p>
</body>
</html>
<? include("config.php"); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Main::Carriere-manager.nl</title> <style type="text/css"> <!-- .style1 {font-size: 12px} --> </style> </head> <body> <table width="395" height="223"> <tr> <td width="91"><img src="images/competitielogos/bundesliga.jpg" width="80" height="80"></td> <td width="96"><img src="images/competitielogos/eredivisie.jpg" width="80" height="80"></td> <td width="97"><img src="images/competitielogos/primeradivision.jpg" width="80" height="80"></td> <td width="91"><img src="images/competitielogos/primierleaque.jpg" width="80" height="80"></td> </tr> <tr> <td><span class="style1">Competities: </span></td> <td><span class="style1">Competities: </span></td> <td><span class="style1">Competities: </span></td> <td><span class="style1">Competities: </span></td> </tr> <tr> <td><img src="images/competitielogos/superliga.jpg" width="80" height="80"></td> <td><img src="images/competitielogos/seriea.jpg" width="80" height="80"></td> <td><img src="images/competitielogos/JupilerLeague.jpg" width="80" height="80"></td> <td><font size="2"> <img src="images/competitielogos/mls.jpg" width="80" height="80" border="0"></font></td> </tr> <tr> <td><span class="style1">Competities: </span></td> <td><span class="style1">Competities: </span></td> <td><span class="style1">Competities: </span></td> <td><span class="style1">Competities: </span></td> </tr> </table> <font size="2"><strong> </strong></font> <p> </p> </body> </html>
Hij moet uit de tabel competities halen hoeveel competities in dat land zitten. hier een vb:
http://img357.imageshack.us/img357/3450/zo07kk.jpg
En de tabel zit er zo uit:
CREATE TABLE `competities` (
`bundesliga` int(10) NOT NULL default '0',
`eredivisie` int(10) NOT NULL default '0',
`primeradivision` int(10) NOT NULL default '0',
`primierleaque` int(10) NOT NULL default '0',
`superliga` int(10) NOT NULL default '0',
`seriea` int(10) NOT NULL default '0',
`jupilerleaque` int(10) NOT NULL default '0',
`mls` int(10) NOT NULL default '0'
) TYPE=MyISAM;
CREATE TABLE `competities` ( `bundesliga` int(10) NOT NULL default '0', `eredivisie` int(10) NOT NULL default '0', `primeradivision` int(10) NOT NULL default '0', `primierleaque` int(10) NOT NULL default '0', `superliga` int(10) NOT NULL default '0', `seriea` int(10) NOT NULL default '0', `jupilerleaque` int(10) NOT NULL default '0', `mls` int(10) NOT NULL default '0' ) TYPE=MyISAM;
Bedankt voor jullie hulp:)
|