Solutions Open Source

Référence du fichier Z:/doxygen/typo3_src-4.1.2/typo3/sysext/adodb/adodb/tests/client.php


Fonctions

send2server ($url, $sql)
 print_pre ($s)

Variables

 $serverURL = 'http://localhost/php/phplens/adodb/server.php'
 $testhttp = false
 $sql1 = "insertz into products (productname) values ('testprod 1')"
 $sql2 = "insert into products (productname) values ('testprod 1')"
 $sql3 = "insert into products (productname) values ('testprod 2')"
 $sql4 = "delete from products where productid>80"
 $sql5 = 'select * from products'
print< hr/> print
< h3 > Test 
Insert</h3 >
 $rs = send2server($serverURL,$sql2)
print< hr/> print
< h3 > Test 
Insert2</h3 >
 $rs = send2server($serverURL,$sql3)
print< hr/> print
< h3 > Test 
Delete</h3 >
 $rs = send2server($serverURL,$sql4)
print< hr/> print
< h3 > Test 
Select</h3 >
 $rs = send2server($serverURL,$sql5)
print< hr/> print
< aname=c >< h1 >
CLIENT Driver 
Tests</h1 >
 $conn = ADONewConnection('csv')
$conn debug = true
print< h3 > Bad SQL</h3 >
 $rs = $conn->Execute($sql1)
print< h3 > Insert
SQL</h3 > 
$rs = $conn->Execute($sql2)
print< h3 > Insert
SQL</h3 > 
$rs = $conn->Execute($sql3)
print< h3 > Select SQL</h3 >
 $rs = $conn->Execute($sql5)
print< h3 > Delete SQL</h3 >
 $rs = $conn->Execute($sql4)
print< h3 > Select SQL</h3 >
 $rs = $conn->Execute($sql5)

Documentation des fonctions

print_pre ( s  ) 

& send2server ( url,
sql 
)


Documentation des variables

$conn = ADONewConnection('csv')

$rs = $conn->Execute($sql5)

$rs = $conn->Execute($sql4)

$rs = $conn->Execute($sql5)

print<h3> Insert SQL</h3> $rs = $conn->Execute($sql3)

print<h3> Insert SQL</h3> $rs = $conn->Execute($sql2)

$rs = $conn->Execute($sql1)

$rs = send2server($serverURL,$sql5)

$rs = send2server($serverURL,$sql4)

$rs = send2server($serverURL,$sql3)

$rs = send2server($serverURL,$sql2)

$serverURL = 'http://localhost/php/phplens/adodb/server.php'

$sql1 = "insertz into products (productname) values ('testprod 1')"

$sql2 = "insert into products (productname) values ('testprod 1')"

$sql3 = "insert into products (productname) values ('testprod 2')"

$sql4 = "delete from products where productid>80"

$sql5 = 'select * from products'

$testhttp = false

$conn debug = true

print<hr/> print<h3> Test Delete</h3 >

print<hr/> print<h3> Test Insert2</h3 >

print<hr/> print<h3> Test Insert</h3 >

print<hr/> print<h3> Test Select</h3 >

print<h3> Select SQL</h3 >

print<h3> Delete SQL</h3 >

print<h3> Select SQL</h3 >

print<h3> Bad SQL</h3 >

print<hr/> print<aname=c><h1> CLIENT Driver Tests</h1 >


Généré le Fri Aug 31 11:38:53 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3