분류 php

odbc_prepare() 함수

컨텐츠 정보

  • 조회 442 (작성일 )

본문

코드 : 

$connect = @odbc_connect("myAccessDB", "user", "secret") or die("Could not connect to ODBC database");
$query = "UPDATE myTable set id = \"1\" WHERE id \"2\"";
$result = odbc_prepare($connect, $query) or die("Couldn't prepare query!");
$result = odbc_execute($result) or die("Couldn't execute query!");
odbc_close($connect);



php