db4 dba_replace doesnt seem to work for me

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • google@charliefortune.com

    db4 dba_replace doesnt seem to work for me

    I am trying to write to a dba and the result is creating a database
    file, but not writing anything to it. The relevant function is being
    called, and my variables are populated, but the database file remains
    empty. Am I writing the string arguments wrong, please ?





    function addplayer($real name,$pokername ){
    $dbh=dba_open(" ../pokeraliases"," n","db4") or die ("Couldnt make the
    database");
    dba_replace("$r ealname","$poke rname",$dbh);
    dba_close($dbh) ;
    print ("PERFORMING ADD FUNCTION <br />");
    print ("posted variables are $realname and $pokername <br /><br />");
    }

    if ($addplayer=="a dd") {
    addplayer($name ,$alias);
    }

Working...