Login   Register  
PHP Classes
elePHPant
Icontem

File: sql-link.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 12 years ago
Size: 768 bytes
 

Contents

Class file image Download
<?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();