<?php
class DBA
{
var $sqlresource;
var $sqlusername;
var $sqlpassword;
var $con;
public function DBA($sqlres, $sqlun, $sqlpass)
{
$this->sqlresource = $sqlres;
$this->sqlusername = $sqlun;
$this->sqlpassword = $sqlpass;
$this->con = array();
for($i = 0; $i < 10; $i++)
{
$this->con[$i] = mysql_connect($sqlres, $sqlun, $sqlpass);
if (!$this->con)
{
die('Could not connect: ' . mysql_error());
}
}
}
....................
mysql_select_db($database, $this->con[(rand(0, 9))]);
thats where i am now, making it use random connections did not help at all. I know nothing about this sort of stuff, ive taught myself everything i know about coding through brute forc. It sucks cause i really want to finish what im working on, but down the raod this could amount to a real problem. anybody have any ideas?
The thing is im entering 10,000+ (now that i think about it its actually around 20,000) some entries at a time(update table), getting data to perform tests on how to enter it, i mean the raw calculations have got to tear my lil' laptop apart. I just wish it would complete it and not give up cause its taking to long... its ok if its slow it just needs to work...
this is a list of some the functions im using...
public function DBA($sqlres, $sqlun, $sqlpass)
public function deletedatabase($database)
public function deletetable($database, $table)
public function createdatabase($i)
public function createtable($databasename, $ii, $a, $b)
public function tableinsert($databasename, $ii, $a, $c)
public function displaytable($dbname, $ii)
public function displayedittable($dbname, $ii)
public function gettabledata($database, $table, $row, $field)
public function deletetablerow($database, $table, $row)
public function listdatabases()
public function listtables($dbname)
public function displaytablelength($database, $table)
public function gettablelength($database, $table)
public function getdatabases()
public function gettables($dbname)
public function getfieldnames($database, $table)
public function insertempty($database, $table)
public function updatetable($database, $table, $row, $col, $newdata)
public function addfield($database, $table, $newfield, $newfieldtype)
public function deletecol($database, $table, $col)
public function getcol($database, $table, $col)