Onderstaande code levert mij de daar onderstaande meldingen op
. Heb een system dsn 'quotes' die goed gelinkt staat naar de .mdb file. MySQL is geen probleem. Access gebruik om de reden dat het niet op de webserver aanwezig is (en niet komt), odbc met access is wel aanwezig.
Warning: SQL error: , SQL state 00000 in SQLConnect in C:\wwwroot\www.gerwinwoelders.nl\www\quotes.php on line 17
Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in C:\wwwroot\www.gerwinwoelders.nl\www\quotes.php on line 20
Enig idee?
PHP:
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
| <table width="100%" border="0" cellspacing="1" cellpadding="1"> <?php //connect to the database $connectionstring = odbc_connect('quotes','',''); //execute query $queryexe = odbc_exec($connectionstring, 'SELECT message, byliner FROM quotemonger'); //query database while(odbc_fetch_row($queryexe)) { //collect results //$message = odbc_result($queryexe, 1); $byliner = odbc_result($queryexe, 2); //format and display results print ("<tr>"); print ("<td>$message</td>"); print ("</tr>"); print ("<tr>"); print ("<td>$byliner</td>"); print ("</tr>"); } //disconnect from database odbc_close($connectionstring); ?> </table> |
Warning: SQL error: , SQL state 00000 in SQLConnect in C:\wwwroot\www.gerwinwoelders.nl\www\quotes.php on line 17
Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in C:\wwwroot\www.gerwinwoelders.nl\www\quotes.php on line 20
Enig idee?
Remember this; very little is needed to make a happy life. ~ Marcus Aurelius Antoninus (121-180)