Valutazione discussione:
  • 0 voto(i) - 0 media
  • 1
  • 2
  • 3
  • 4
  • 5
Problemo con script per importare dati di una tabella su un altro hosting
#1
ho questo piccolo problema non mi funziona uno script per importare i dati di una tabella utent dal vecchio hosting nel databese del nuovo hosting, posto lo script in oggetto ed anche l'errore che esce quando lo lancio,
Codice PHP:
<?php
session_start
();
if(
$_SESSION['imported']) { die("Multiple importation ruins it."); }

//old database containing securebux/bux3/yourownbux data
$ndb_host 'localhost';
$ndb_user '********';
$ndb_pass '********';
$ndb_base '********';

$p3 mysql_connect($ndb_host,$ndb_user,$ndb_pass) or die("Couldn't connect to old database.");
mysql_select_db($ndb_base,$p3) or die("Couldn't connect to old database.");

include 
"lib/lib_database.php";
$cfg mysql_connect(DB_HOST,DB_USER,DB_PASS);
mysql_select_db(DB_NAME,$cfg);

$runp1 mysql_query("SELECT * FROM tb_users ORDER BY id",$p3);
while(
$rp1 mysql_fetch_array($runp1))
{
mysql_query("INSERT INTO `users` (
`userid` ,
`username` ,
`password` ,
`email` ,
`paypal_email` ,
`alertpay_email` ,
`signupdate` ,
`signupip` ,
`upgraded` ,
`country` ,
`balance` ,
`withdrew` ,
`ads_clicked` ,
`upline` ,
`referrals` ,
`posts` ,
`lastaction` ,
`lastip` ,
`advertiser_balance` ,
`suspended`,
`refclicks`
)
VALUES (
'
{$rp1['id']}' , '{$rp1['username']}', '{$rp1['password']}', '{$rp1['email']}', '{$rp1['email']}', '{$rp1['email']}', unix_timestamp(), '{$rp1['ip']}', '0', '{$rp1['country']}', '{$rp1['money']}', '{$rp1['paid']}', '', '{$rp1['referer']}', '{$rp1['referals']}', '0', '{$rp1['lastlogdate']}', '{$_SERVER['REMOTE_ADDR']}', '0.00', '0', '{$rp1['referalvisits']}'
);"
,$cfg);
$transferred++;
}

if(
$transferred 0)
{
$contents .= "We successfully transfered {$transferred} users to your  SCRIPT!<br />";
$_SESSION['imported']=1;
}

?>

l'errore è questo: Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@centbux.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

cosa puo essere ?????????
Cita messaggio


Messaggi in questa discussione
Problemo con script per importare dati di una tabella su un altro hosting - da filippo9639 - 27/12/2008 12:13

Discussioni simili
Discussione Autore Risposte Letto Ultimo messaggio
  Script PHP per testare sicurezza Wifi Chandler 112 224.452 23/04/2018 18:18
Ultimo messaggio: Mattia
  shortlink con script di riconoscimento device Chandler 7 10.041 01/02/2017 16:09
Ultimo messaggio: Chandler
  script per generazione immagine da template Chandler 135 278.602 18/07/2015 08:19
Ultimo messaggio: Mattia
  estrarre script Chandler 4 11.712 22/01/2015 20:06
Ultimo messaggio: Chandler
  Script traduttore Chandler 75 171.813 21/10/2012 16:53
Ultimo messaggio: Chandler
  Erroe di parsing nell'esecuzione di uno script filippo9639 1 8.171 25/01/2009 22:09
Ultimo messaggio: Mattia
  Script Upload Chandler 43 102.422 10/12/2008 16:22
Ultimo messaggio: Mattia
  Errore parziale su script PHP filippo9639 12 47.405 30/11/2008 16:17
Ultimo messaggio: filippo9639
  Problema con script PHP per trasferimento tabelle dati filippo9639 10 32.062 23/11/2008 18:08
Ultimo messaggio: filippo9639
  porzione di Codice PH che invalida script filippo9639 2 6.999 25/10/2008 18:49
Ultimo messaggio: filippo9639

Vai al forum:


Utenti che stanno guardando questa discussione: 1 Ospite(i)