Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. $user="";
  2. $password="";
  3. $mdbFilename="C:\WebSites\database\db2.mdb";
  4. $connect = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", $user, $password);
  5.  
  6. $rs=odbc_exec($connect,("select link from radio"));
  7.  
  8. ;if (!($rs==0))
  9. {
  10.  
  11. if ((strpos($rs["link"],"http") ? strpos($rs["link"],"http")+1 : 0)>0)
  12. {
  13.  
  14. $link_string=$rs["link"];
  15.  
  16. //MY 1st HTML HERE//
  17.  
  18.  
  19. }
  20. else
  21. {
  22. if (trim($rs["link"])=="mp3")
  23. {
  24.  
  25. //MY HTML HERE //
  26.  
  27. }
  28.  
  29. }
  30. }
  31. ?>
  32.  
  33. 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