Test VPHP

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Feb 13 19:06:24 CST 2003


on 2/13/03 6:18 PM, Lloyd Butler at lbutler at on.pelmorex.com wrote:

> - vphp_test_blob.php
> You have an error in this file in line 7.
> $path = $dbHomePath; //"test3.vdb";
> should be 
> $path = $dbHomePath."test3.vdb";

Aha, I have not replace it in archive.

In ideal it must looks as:



<?php
print "<pre>";

    // YOU MUST SET HERE YOUR PATH !!!
$dbHomePath = "/Users/rz/database/";

$path = $dbHomePath."test_blob.vdb";

    $dbRef = valDatabase_New( $path );

    $query = "CREATE TABLE Person( Photo BLOB(128) )";
    $affectedCount = valDatabase_SqlExecute( $dbRef, $query );

    $curs = valDatabase_SqlSelect( $dbRef, "SELECT * FROM Person WHERE RecID
= 0" );

    valCursor_SetField( $curs, "photo",
"123456789012345567890qweuidfgdfghbgbbbbbb" );

    valCursor_AddRecord( $curs );

    $curs = valDatabase_SqlSelect( $dbRef, "SELECT * FROM Person" );
    $str = valCursor_GetField( $curs, "photo" );
    print $str;

    valDatabase_Close($dbRef);

print "</pre>";
?>





-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list