ho modificato la query cambiando il foreach con il while , pero non inserisce i dati perche?
Codice PHP:$dbcore = new database;
$dbcore->connect();
$query = $dbcore->query("select * from tech ");
$titlearray[0]['class'] ="rcwtabletitlecolon";
$titlearray[0]['width']="1%";
$titlearray[0]['height']="21";
$titlearray[0]['align']="center";
$titlearray[0]['title'] = false;
$titlearray[1]['class'] ="rcwtabletitlecolon";
$titlearray[1]['width']="54%%";
$titlearray[1]['height']="21";
$titlearray[1]['align']="left";
$titlearray[1]['title'] = "Ful Name";
$titlearray[2]['class'] ="rcwtabletitlecolon";
$titlearray[2]['width']="15%%";
$titlearray[2]['height']="21";
$titlearray[2]['align']="center";
$titlearray[2]['title'] = "Username";
$titlearray[3]['class'] ="rcwtabletitlecolon";
$titlearray[3]['width']="15%%";
$titlearray[3]['height']="21";
$titlearray[3]['align']="center";
$titlearray[3]['title'] = "Group";
$titlearray[4]['class'] ="rcwtabletitlecolon";
$titlearray[4]['width']="15%%";
$titlearray[4]['height']="21";
$titlearray[4]['align']="center";
$titlearray[4]['title'] = "Options";
while($row = mysql_fetch_assoc($query))
{
$fields[0]['class'] ="";
$fields[0]['width']="1%";
$fields[0]['colspan']="";
$fields[0]['align']="center";
$fields[0]['valign'] = "";
$fields[0]['title'] = "";
$fields[1]['class'] ="";
$fields[1]['width']="1%";
$fields[1]['colspan']="";
$fields[1]['align']="left";
$fields[1]['valign'] = "";
$fields[1]['title'] = $row['nome'];
$fields[2]['class'] ="";
$fields[2]['width']="1%";
$fields[2]['colspan']="";
$fields[2]['align']="center";
$fields[2]['valign'] = "";
$fields[2]['title'] = "test";
$fields[3]['class'] ="";
$fields[3]['width']="1%";
$fields[3]['colspan']="";
$fields[3]['align']="center";
$fields[3]['valign'] = "";
$fields[3]['title'] = "maurizio";
$fields[4]['class'] ="";
$fields[4]['width']="1%";
$fields[4]['colspan']="";
$fields[4]['align']="center";
$fields[4]['valign'] = "";
$fields[4]['title'] = "aaaa";
}
OpenTableStart($titlearray ,$query,$fields );

Rispondi quotando