Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error 1226 in Ipower host


argentinazo

Recommended Posts

Posted

I host my website in IPOWER and it's impossible for me upload or edit products and surf over my website. This is related to an error message called 1226

that send mysql and always appears on the screen.

 

I designed this solution in includes/functions/database.php

 

 

function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {

global $$link;

 

$username = array("user1","user2","user3","user4","user5");

$password = array("123456","123456","123456","123456","123456");

 

$i = 0;

 

for($i=0; $i<9; $i++){

$$link = mysql_connect($server, $username[$i], $password[$i]);

$errno = mysql_errno();

if (($$link <> 0) and( $errno <> 1226 ))

{

mysql_select_db($database, $$link);

break;

}

else

{

$i++;

mysql_close($$link);

}

}

return $$link;

}

 

I believe that my idea is good but there is somethin in the sintaxis that is wrong, and I don't know what is it? I would like that someone whit more experience that me try to help me finish this idea and make it works.

 

Thank you and hope somebody read this and help me out.

 

rgds.

Diego Bonini

Posted

This:

if (($$link <> 0) and( $errno <> 1226 ))

...should be this:

if (($$link <> 0) && ( $errno <> 1226 ))

However, the implementation you have is not recommended. It is best to either find another host that doesn't suck or find the source of the problem and correct it.

 

Bobby

Posted

I also use ipower without any problems-Except long wait times.

 

Could you outline in more detail what it is you're not able to do?

Quidquid latine dictum sit, profundum viditur.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...