PHP Classes

File: sql-link.php

Recommend this page to a friend!
  Classes of Pablo Gazmuri  >  RemoteSQL  >  sql-link.php  >  Download  
File: sql-link.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: RemoteSQL
Provides client-side access to server-side DB
Author: By
Last change:
Date: 14 years ago
Size: 768 bytes


Class file image Download
//Made by Pablo Gazmuri (
//Example usage of SQL_link class

//connect to mysql and select DB before using class
mysql_connect("localhost", "username", "pass");


$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