Allora...Codice PHP:$st = @mysql_query("SELECT * FROM $tab WHERE $first[0]='$elem'",$cn);
$ta = @mysql_fetch_array($st);
for($a=0;$a<$nc;++$a){
$inputs = str_replace("{$a}",$ta[$a], $inputs);
}
$a assume i valori : 0,1,2,3 (esempio)
$ta[0] = "ciao";
$ta[1] = "a";
$ta[2] = "tutti";
$ta[3] = "voi";
Avendo nella stringa $inputs delle sottostringhe come {0} , {1} , {2} , {3}.
Vorrei sapere perchè mi rimpiazza {0} e {1} con il valore $ta[1].
Io vorrei (come dovrebbe essere) che me li rimpiazzasse con $ta[0] e $ta[1].
Capito ????

Rispondi quotando