my comments are inline....

Code:

For Each $proc In $PList

;this will turn the string value of $proc into an array.
$proc = split($proc,'*')

$processSQL = "INSERT INTO processes(cid,Name,ProcessID,ProcessPath)


; i have no idea what is going on here.... but one thing that i see is,
; you can not put array index insode of a string. hell you should not be putting
; var's in a string at all... your quoptes are all ooer the road.
; you even have a quote on the outside of the ending )

VALUES('$cid','"+$proc[0]+"','"+$proc[1]+"','"+$proc[2]+"')"

;since i have no idea what the VALUES UDF is doing.... looks like you are wanting to
; create a string using the array indexes and putthem into a comma delimited string.

VALUES($cid,"'" + $proc[0] + "','" + $proc[1] + "','" + $proc[2] +"'")


$ = DBExecuteSQL($objConn,$processSQL)

? "Error @ERROR: @SERROR"
Next