Location: PHPKode > projects > YW-GuestBook > YW Guestbook 1.45/YW Guestbook/ywgb/libs/db_mysqli.php
<?php
  //-------------------------------------------------------------------------
  //                            YW Guestbook
  //                              db_mysqli.php
  //
  //                              Version: 1.2
  //-------------------------------------------------------------------------
  //                     Copyright (c) 2005  YahooWebs
  //                        http://www.yahoowebs.tk
  //-------------------------------------------------------------------------
  //  This program is free software. You can redistribute it and/or modify
  //  it under the terms of the License that was distributed with this file!
  //-------------------------------------------------------------------------

  function vgb_query( $inQuery, $err = true) {
    // executes the query and returns a handle or error
    global $lang,$mySQL,$Prefix;

    // replace VGB by Prefix
    $inQuery = str_replace("VGB",$Prefix,$inQuery);

    $_handle = mysqli_query($mySQL,$inQuery); 
    if (!$_handle && $err) 
      error($lang['queryError']); // .$inQuery."<br /><br />".
        // mysqli_errno($mySQL).": ".htmlspecialchars(mysqli_error($mySQL),ENT_QUOTES));
    
    return $_handle;
  }

  function vgb_result( $q ) {
    return mysqli_fetch_array($q);
  }
  
  function vgb_fetchrow( $q ) {
    return mysqli_fetch_row($q);
  }
  
  function vgb_numrows( $q ) {
    return mysqli_num_rows($q);
  }
?>
Return current item: YW-GuestBook