wynalazkowo - eksperymenty małe i duże

RaspberryPI – project for „Baltic Robo Battles” 11 – how to connect from php to ActianZen

RaspberryPI – project for „Baltic Robo Battles” 11 – how to connect from php to ActianZen

Easy way – using ODBC connection: a) created 64-bit ODBC connection (System) in Windows b) create user in your DB acc. to ODBC connection c) use following source code: $conn_str=”dnsNameofYourDB”; $conn=odbc_connect($conn_str,’user’,’passwd’); $sql=”SELECT top 10 First_Name,Last_Name FROM Person”; $rs=odbc_exec($conn,$sql); if ($rs) { while (odbc_fetch_row($rs)) { echo odbc_result($rs,”First_Name”); echo odbc_result($rs,”Last_Name”); } } odbc_close($conn); 2. proper way acc.Więcej oRaspberryPI – project for „Baltic Robo Battles” 11 – how to connect from php to ActianZen[…]