<?php
//sql-link.php
//Made by Pablo Gazmuri (pabo@gazmuri.net)
//Example usage of SQL_link class
//connect to mysql and select DB before using class
mysql_connect("localhost", "username", "pass");
mysql_select_db("dbname");
include_once("class.SQL_link.php");
$sql = new SQL_link();
//change the key for your own use - the longer the key, the more secure the encryption
//remember to set the key to the same string in the VB Code in Query.bas
$sql->setKey("YOUR KEY GOES HERE");
//change this to your IP, remove calls to allowIP to allow access from anywhere (not recommended)
$sql->allowIP("your ip here");
//you can allow as many IP's as you wish
$sql->allowIP("someone else's IP");
//always end with this call
$sql->processQuery();
|