Please help me get my scripts working.

Urgent help needed please!

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

32 Replies - 1653 Views - Last Post: 03 March 2010 - 06:24 AM Rate Topic: -----

#1 Intermission  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 25-April 09

Please help me get my scripts working.

Posted 01 March 2010 - 06:51 PM

Heyyy everyone,

so this is my website http://www.mynewtestsite.site11.com

I tried putting a ladder program onto the website which can be found here:

http://sourceforge.n...adderphp/files/

As you can see it doesn't work at all.

Any help please?

This post has been edited by JackOfAllTrades: 01 March 2010 - 07:05 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Please help me get my scripts working.

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5364
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: Please help me get my scripts working.

Posted 01 March 2010 - 06:53 PM

www.mynewtestsite14.site11.com Just loads a landing page for me. Is this what you are getting?
Was This Post Helpful? 0
  • +
  • -

#3 Intermission  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 25-April 09

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:02 PM

View Postno2pencil, on 01 March 2010 - 05:53 PM, said:

www.mynewtestsite14.site11.com Just loads a landing page for me. Is this what you are getting?


I apologize, link updated.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5364
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:03 PM

Failed opening required 'Drivers/mySQL.php'

Does this file exist?
Was This Post Helpful? 0
  • +
  • -

#5 Intermission  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 25-April 09

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:04 PM

View Postno2pencil, on 01 March 2010 - 06:03 PM, said:

Failed opening required 'Drivers/mySQL.php'

Does this file exist?


I did upload a file called mySQL.php
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5364
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:06 PM

The directory http://www.mynewtest...11.com/Drivers/ does not exist. Where does mySQL.php exist?
Was This Post Helpful? 0
  • +
  • -

#7 Intermission  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 25-April 09

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:07 PM

I uploaded it in the "public" folder
Was This Post Helpful? 0
  • +
  • -

#8 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5364
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:08 PM

Then you need to either change your "require()" command to be accurate with the new location, or put it where you are trying to load it from.
Was This Post Helpful? 0
  • +
  • -

#9 Intermission  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 25-April 09

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:14 PM

Posted Image

There is a picture of the file manager.

And this is the code for the mySQL.php

<?php
/* 		
 *	 Ladderphp v0.2
 *	 -----------------------------------------
 *   Written by : Brendan Paull
 *   (c) 2002, 2003
 *   email : paullb@users.sourceforge.net
 *
 */
 
 class sql_driver {
	var $sqlParam = array ( "database"   => ""      ,
							"host"       => ""		,
							"port"       => ""      ,
							"user"       => ""     	,
							"pass"       => ""      ,
					 );        
	 var $queryID      = "";
	 var $ID = "";
	 var $numberQueries = 0;
	 var $queries = "";
				 
	/*=========================Connect to the database.=======================*/
	function connect() {
		$this->ID = mysql_connect( $this->param['sql_host'] ,
			  $this->param['sql_user'] , $this->param['sql_pass']);

		if ( !mysql_select_db($this->param['sql_database'], $this->ID) )
			echo ("Error ".$this->param['sql_database']." cannot be found in the
			database server");
	}
	  
	/*========================Disconnect from the database.===================*/
	function disconnect() {
		return mysql_close($this->ID);
	}
   
	/*=========================Query the Database.============================*/
	function query($inputQuery) {
		$this->queryID = mysql_query($inputQuery, $this->ID);
		if (! $this->queryID )
		{
			echo("SQL error during : $the_query");
			echo(mysql_error());
		}
		$this->numberQueries = $this->numberQueries + 1;
		$this->queries .= $inputQuery;
		$this->queries .= "<BR>";
		return $this->queryID;
	}
   
	/*========================Fetch row from last query.======================*/
	function getRow() {
		return mysql_fetch_array($this->queryID, MYSQL_ASSOC);
	}

	/*========================Get number of affected rows.====================*/
	function affectedRows() {
		return mysql_affected_rows($this->ID);
	}
   
	/*========================Get number of rows in result.===================*/
	function getNumberRows() {
		return mysql_num_rows($this->queryID);
	}
   
	/*========================Get the insert id from the last query.==========*/
	function getInsertID() {
		return mysql_insert_id($this->ID);
	} 

	/*========================Free the result of the query.===================*/
   function freeResult() {
		@mysql_free_result($this->queryID);
	}
	
	/*========================Get Fields in the query.========================*/
	function getResultFields() {
		while ($field = mysql_fetch_field($this->queryID))
			$Fields[] = $field;
		return $Fields;
	}
	
   /*========================Get all tables in database.=====================*/
   function getTableNames() {
		$result     = mysql_list_tables($this->param['sql_database']);
		$num_tables = @mysql_numrows($result);
		for ($i = 0; $i < $num_tables; $i++)
		{
			$tables[] = mysql_tablename($result, $i);
		}
		
		mysql_free_result($result);
		return $tables;
	}
   
	/*=======================Generate string to insert into an array.=========*/
	/*==(INSERT INTO table) ('field', 'field', 'field') VALUES ('val', 'val')=*/
	function generateInsertString($data) {
		$dataTypes  = "";
		$dataValues = "";
		
		foreach ($data as $k => $v) {
			$v = preg_replace( "/'/", "\\'", $v );
			$dataTypes  .= "$k,";
			$dataValues .= "'$v',";
		}
		$dataTypes  = preg_replace( "/,$/" , "" , $dataTypes  );
		$dataValues = preg_replace( "/,$/" , "" , $dataValues );
		
		return array( 'dataNames'  => $dataTypes,
					  'dataValues' => $dataValues,  );
	}
	
	/*======================Generate string to update into an array.==========*/
	/*========================FIELD='val', FIELD='val', FIELD='val'===========*/
	   function generateUpdateString($data) {
		$return_string = "";
		foreach ($data as $k => $v) {
			$v = preg_replace( "/'/", "\\'", $v );
			$return_string .= $k . "='".$v."',";
		}
		return preg_replace( "/,$/" , "" , $return_string );
	}
}
?>

This post has been edited by Intermission: 01 March 2010 - 07:15 PM

Was This Post Helpful? 0
  • +
  • -

#10 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5364
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:21 PM

Failed opening required 'Drivers/mySQL.php'

You need to make a sub-directory named Drivers, & move mySQL.php into that directory. The code is failing because the require() function is trying to open it, & it isn't there. Thus, failed opening required file, as stated by the output.
Was This Post Helpful? 0
  • +
  • -

#11 Intermission  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 25-April 09

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:32 PM

Okay I did that and now I have a new problem

http://www.mynewtestsite.site11.com/

Its asking for my skins. I created a subdirectory called Skins and uploaded the 3 skins files and nothing happened. I also tried renaming the directory to Skins1
Was This Post Helpful? 0
  • +
  • -

#12 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5364
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:33 PM

Well, you were close...

'Skins/Skin1/indexSkin.php'

You need to make a sub-directory called Skins (case sensitive) & then another sub-directory inside of Skins called Skin1.
Was This Post Helpful? 0
  • +
  • -

#13 Intermission  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 25-April 09

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:37 PM

http://www.mynewtestsite.site11.com/

check it out now aha

big problems.
Was This Post Helpful? 0
  • +
  • -

#14 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5364
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:38 PM

Take this for what it's worth, but if you need us to hold your hand for every error, maybe this php application is too big for you. You need to read the code before you go using it. Just as well you should probably understand what it's doing too.

I'm not saying this to be mean... but they are simple syntax errors that are easily avoidable by doing work 1st & testing second.
Was This Post Helpful? 0
  • +
  • -

#15 Intermission  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 25-April 09

Re: Please help me get my scripts working.

Posted 01 March 2010 - 07:41 PM

Well, can you at least tell me if it is fixable using the same methods I used above?
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3