chrometweaks.org

If I made a website on iPage how do I update it?

Click Here To View All Answers...


Got a quick question: If I made a website on iPage how do I update it? Thanks in advance for any answer. Another question I got... After phpmyadmin upload, my web does not open and.

Got warning message such as.

Code of database.php is.

[/b][b] function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {.

Global $$link;[/b].

[b] if (USE_PCONNECT == 'true') {.

$$link = mysql_pconnect($server, $username, $password); <<line 17.

} else {.

$$link = mysql_connect($server, $username, $password);.

}[/b].

[b] if ($$link) mysql_select_db($database);[/b].

[b] return $$link;.

}[/b].

[b] function tep_db_close($link = 'db_link') {.

Global $$link;[/b].

[b] return mysql_close($$link);.

}[/b].

[b] function tep_db_error($query, $errno, $error) {.

Die('<font color="#000000"><b>'$errno' - '$error'<br><br>'$query'<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>');.

}[/b].

[b] function tep_db_query($query, $link = 'db_link') {.

Global $$link;[/b].

[b] if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {.

Error_log('QUERY '$query"\n", 3, STORE_PAGE_PARSE_TIME_LOG);.

}[/b].

[b] $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error());[/b].

[b] if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {.

$result_error = mysql_error();.

Error_log('RESULT '$result' '$result_error"\n", 3, STORE_PAGE_PARSE_TIME_LOG);.

}[/b].

[b] return $result;.

}[/b].

[b] function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') {.

Reset($data);.

If ($action == 'insert') {.

$query = 'insert into '$table' (';.

While (list($columns, ) = each($data)) {.

$query .= $columns', ';.

}.

$query = substr($query, 0, -2)') values (';.

Reset($data);.

While (list(, $value) = each($data)) {.

Switch ((string)$value) {.

Case 'now()':.

$query .= 'now(), ';.

Break;.

Case 'null':.

$query .= 'null, ';.

Break;.

Default:.

$query .= '\''tep_db_input($value)'\', ';.

Break;.

}.

}.

$query = substr($query, 0, -2)')';.

} elseif ($action == 'update') {.

$query = 'update '$table' set ';.

While (list($columns, $value) = each($data)) {.

Switch ((string)$value) {.

Case 'now()':.

$query .= $columns' = now(), ';.

Break;.

Case 'null':.

$query .= $columns .= ' = null, ';.

Break;.

Default:.

$query .= $columns' = \''tep_db_input($value)'\', ';.

Break;.

}.

}.

$query = substr($query, 0, -2)' where '$parameters;.

}[/b].

[b] return tep_db_query($query, $link);.

}[/b].

[b] function tep_db_fetch_array($db_query) {.

Return mysql_fetch_array($db_query, MYSQL_ASSOC);.

}[/b].

[b] function tep_db_num_rows($db_query) {.

Return mysql_num_rows($db_query);.

}[/b].

[b] function tep_db_data_seek($db_query, $row_number) {.

Return mysql_data_seek($db_query, $row_number);.

}[/b].

[b] function tep_db_insert_id() {.

Return mysql_insert_id();.

}[/b].

[b] function tep_db_free_result($db_query) {.

Return mysql_free_result($db_query);.

}[/b].

[b] function tep_db_fetch_fields($db_query) {.

Return mysql_fetch_field($db_query);.

}[/b].

[b] function tep_db_output($string) {.

Return htmlspecialchars($string);.

}[/b].

[b] function tep_db_input($string) {.

Return addslashes($string);.

}[/b].

[b] function tep_db_prepare_input($string) {.

If (is_string($string)) {.

Return trim(tep_sanitize_string(stripslashes($string)));.

} elseif (is_array($string)) {.

Reset($string);.

While (list($key, $value) = each($string)) {.

$string[$key] = tep_db_prepare_input($value);.

}.

Return $string;.

} else {.

Return $string;.

}.

}.

?>.

[/b][b].

When is this warning message, what should I solve?.

Help me please~~..

Comments (68)

Good question... I dunno what is the right answer to your question. I'll do some poking around and get back to you if I bump into an decent answer. You should email the people at iPage as they probably could give you an answer..

Comment #1

Thank you for your reply.

Confirmed several times but there is no problem to configure.php...

Comment #2

It looks as if your Database username/password/DB Name are wrong..

Are you sure all of the above are correct?..

Comment #3

In the includes FOLDER (catalog and admin) where the normal.

Configure.php.

Files are there is a FOLDER named.

Local.

On some installs there may be a.

Configure.php.

Inside the.

Local.

FOLDER (catalog and admin).

If there is, anything in it overrides anything in the normal.

Configure.php.

Files...

Comment #4

Glad to hear it. And it's important not to let anyone know what the problem turned out to be or how it was solved. That would take all of the mystery and fun out of it for the next guy who has the same problem. Better to let them wonder and start a new thread like this one. That's one way we can keep this forum active!..

Comment #5

After phpmyadmin upload, my web does not open and.

Got warning message such as.

Code of database.php is.

[/b][b] function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {.

Global $$link;[/b].

[b] if (USE_PCONNECT == 'true') {.

$$link = mysql_pconnect($server, $username, $password); <<line 17.

} else {.

$$link = mysql_connect($server, $username, $password);.

}[/b].

[b] if ($$link) mysql_select_db($database);[/b].

[b] return $$link;.

}[/b].

[b] function tep_db_close($link = 'db_link') {.

Global $$link;[/b].

[b] return mysql_close($$link);.

}[/b].

[b] function tep_db_error($query, $errno, $error) {.

Die('<font color="#000000"><b>'$errno' - '$error'<br><br>'$query'<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>');.

}[/b].

[b] function tep_db_query($query, $link = 'db_link') {.

Global $$link;[/b].

[b] if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {.

Error_log('QUERY '$query"\n", 3, STORE_PAGE_PARSE_TIME_LOG);.

}[/b].

[b] $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error());[/b].

[b] if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {.

$result_error = mysql_error();.

Error_log('RESULT '$result' '$result_error"\n", 3, STORE_PAGE_PARSE_TIME_LOG);.

}[/b].

[b] return $result;.

}[/b].

[b] function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') {.

Reset($data);.

If ($action == 'insert') {.

$query = 'insert into '$table' (';.

While (list($columns, ) = each($data)) {.

$query .= $columns', ';.

}.

$query = substr($query, 0, -2)') values (';.

Reset($data);.

While (list(, $value) = each($data)) {.

Switch ((string)$value) {.

Case 'now()':.

$query .= 'now(), ';.

Break;.

Case 'null':.

$query .= 'null, ';.

Break;.

Default:.

$query .= '\''tep_db_input($value)'\', ';.

Break;.

}.

}.

$query = substr($query, 0, -2)')';.

} elseif ($action == 'update') {.

$query = 'update '$table' set ';.

While (list($columns, $value) = each($data)) {.

Switch ((string)$value) {.

Case 'now()':.

$query .= $columns' = now(), ';.

Break;.

Case 'null':.

$query .= $columns .= ' = null, ';.

Break;.

Default:.

$query .= $columns' = \''tep_db_input($value)'\', ';.

Break;.

}.

}.

$query = substr($query, 0, -2)' where '$parameters;.

}[/b].

[b] return tep_db_query($query, $link);.

}[/b].

[b] function tep_db_fetch_array($db_query) {.

Return mysql_fetch_array($db_query, MYSQL_ASSOC);.

}[/b].

[b] function tep_db_num_rows($db_query) {.

Return mysql_num_rows($db_query);.

}[/b].

[b] function tep_db_data_seek($db_query, $row_number) {.

Return mysql_data_seek($db_query, $row_number);.

}[/b].

[b] function tep_db_insert_id() {.

Return mysql_insert_id();.

}[/b].

[b] function tep_db_free_result($db_query) {.

Return mysql_free_result($db_query);.

}[/b].

[b] function tep_db_fetch_fields($db_query) {.

Return mysql_fetch_field($db_query);.

}[/b].

[b] function tep_db_output($string) {.

Return htmlspecialchars($string);.

}[/b].

[b] function tep_db_input($string) {.

Return addslashes($string);.

}[/b].

[b] function tep_db_prepare_input($string) {.

If (is_string($string)) {.

Return trim(tep_sanitize_string(stripslashes($string)));.

} elseif (is_array($string)) {.

Reset($string);.

While (list($key, $value) = each($string)) {.

$string[$key] = tep_db_prepare_input($value);.

}.

Return $string;.

} else {.

Return $string;.

}.

}.

?>.

[/b][b].

When is this warning message, what should I solve?.

Help me please~~..

Comment #6

Start by looking at your configure.php files. Double check things like the name of the database server, the database, the user name, and the password..

Define('DB_SERVER'.

Define('DB_SERVER_USERNAME'.

Define('DB_SERVER_PASSWORD'.

Define('DB_DATABASE'.

This post has been edited by.

Baddog.

: 11 March 2009, 22:08..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.