eerst: basshunter
Berichten: 518
hallo allemaal,
ik heb even een probleempje waar ik even niet uit kom.
Dit is de error.
1
|
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/crimehel/domains/crime-hell.nl/public_html/explo/index.php on line 12
|
|
|
dit is de code vanaf lijn 8.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
include "config.php";
$dbres = mysql_query("SELECT * FROM `status` WHERE `status'");
$data = mysql_fetch_object($dbres);
{
if ($data->status == 1) {
$status = "<font color='orange'>Geen ijs aanwezig</font>";
}
elseif ($data->status == 2) {
$status = "<font color='red'>Gevaarlijk!</font>";
}
elseif ($data->status == 3) {
$status = "<font color='green'>Veilig</font>";
}
}
echo "
</head>
<body>
<div id='wrapper'>
<div id='menu'>
<ul>
<li class='current_page_item'><a href='#'>Home</a></li>
<li><a href='#'>Blog</a></li>
<li><a href='#'>Photos</a></li>
<li><a href='#'>About</a></li>
<li><a href='#'>Links</a></li>
<li><a href='#'>Contact</a></li>
</ul>
</div>
<!-- end #menu -->
<div id='header'>
<div id='logo'>
<h1><a>Status ijs:</a></h1>
<p>$status </p>
</div> ";
?>
|
|
|
alvast bedankt
22-11-2010 20:09
Dit topic is 303 keer bekeken door 48 verschillende leden
Reacties op: "Opvraag foutje"
1 |
2
Reageer op: "Opvraag foutje"
1 |
2