Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user="";
- $password="";
- $mdbFilename="C:\WebSites\database\db2.mdb";
- $connect = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", $user, $password);
- $rs=odbc_exec($connect,("select link from radio"));
- ;if (!($rs==0))
- {
- if ((strpos($rs["link"],"http") ? strpos($rs["link"],"http")+1 : 0)>0)
- {
- $link_string=$rs["link"];
- //MY 1st HTML HERE//
- }
- else
- {
- if (trim($rs["link"])=="mp3")
- {
- //MY HTML HERE //
- }
- }
- }
- ?>
- Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x858 Thread 0xda0 DBC 0x223e024 Jet'., SQL state S1000 in SQLConnect in C:\WebSites\index0.php on line 99 PHP Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in C:\WebSites\index0.php on line 101
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement