A
Anonymous
Guest
Hi all,
I have recently downloaded a program called sitcom, which if installed on my server correctly will perform miracles ( i am told ) lol, anyway 2 things have stumped me, any suggestions gratefully received.....
1.
class OpenDbaseConnection {
//define properties
//define properties
var $localdb="deltaforceone";
//var $localuser = "deltaforceone";
//var $localpassword = "mypassword";
var $localhost = "localhost";
var $websiteUrl = "myweb";
var $mysql_link;
var $result;
var $err;
var $error_num;
function OpenDbaseConnection()
{
$this->mysql_link = mysql_connect($this->localhost, $this->localuser, $this->localpassword);
With the correct settings in the localhost,user and pass vars it comes up with an error when connecting.
2.
//perform the search
$y = 0;//ensures that each record found is stored to its unique location
//they can be retrieved with the syntax $object name->SearchResults[0]['FIELDNAME']
$mysql_result = mysql_query($select_Statement , $mysql_link);
//retrieve query
if($query_type_flag == "SEARCH")
{
while($row = mysql_fetch_array($mysql_result, MYSQL_ASSOC))
{
$rowlength = count($row);
for($x=0;$x<$rowlength;$x++)
{
The line in red text creates an error.
I have recently downloaded a program called sitcom, which if installed on my server correctly will perform miracles ( i am told ) lol, anyway 2 things have stumped me, any suggestions gratefully received.....
1.
class OpenDbaseConnection {
//define properties
//define properties
var $localdb="deltaforceone";
//var $localuser = "deltaforceone";
//var $localpassword = "mypassword";
var $localhost = "localhost";
var $websiteUrl = "myweb";
var $mysql_link;
var $result;
var $err;
var $error_num;
function OpenDbaseConnection()
{
$this->mysql_link = mysql_connect($this->localhost, $this->localuser, $this->localpassword);
With the correct settings in the localhost,user and pass vars it comes up with an error when connecting.
2.
//perform the search
$y = 0;//ensures that each record found is stored to its unique location
//they can be retrieved with the syntax $object name->SearchResults[0]['FIELDNAME']
$mysql_result = mysql_query($select_Statement , $mysql_link);
//retrieve query
if($query_type_flag == "SEARCH")
{
while($row = mysql_fetch_array($mysql_result, MYSQL_ASSOC))
{
$rowlength = count($row);
for($x=0;$x<$rowlength;$x++)
{
The line in red text creates an error.