Comparing a field in an SQL database to a field in an external CSV file

Discussion in 'PHP' started by AWSOM50, May 4, 2007.

  1. #1
    Hi guys, this is my first post here. I am very new to php but I have used other languages in the past.

    Basically I am trying to compare a field in an SQL database to field1 in a CSV file and then, if they match, display field2.

    Pretty basic but I dont really know the syntax of php yet and google isnt helping me as much as I hoped.

    So I open the CSV with fopen, but then what commands can I use to achieve this?

    Any help is appreciated
     
    AWSOM50, May 4, 2007 IP