SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2004
    Location
    Rehovot
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question access dB and sql injection

    Greetings.

    I have two questions.

    The first: I saw several days ago an article about sql injection with PHP and how to avoid it - I can't locate it again, Does anybody know where it is?

    The second: How do I connect with PHP to Access dB (Don't ask why...)

    Thanks
    I Moav

  2. #2
    SitePoint Addict myrdhrin's Avatar
    Join Date
    Jul 2004
    Location
    Montreal
    Posts
    210
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SQL Injection on SitePoint: SQL Injection Attacks - Are You Safe?

    The second: How do I connect with PHP to Access dB (Don't ask why...)
    Create an ODBC connection for that Access dB and look at the odbc_ functions in a PHP manual..

    for example to open a odbc connection named MYAccessDB you'd do:

    Code:
    $dbconnection = odbc_connect('MYAccessDB', '', '');
    There are other options but I'm not too familiar with them. Among them I know that you can create the ADO Com object directly in PHP and then use ADO methods (so if you're familiar with that library it could be a more interesting path the ODBC)
    Jean-Marc (aka Myrdhrin)
    M2i3 - blog - Remind-M


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •