Archive
Can someone please classify the JavaScript statement such as data type and operator and then enumerate the objective and the syntax of each?
And also what are the difference between data type and operator?
Thanks.
Read moreI don't get errors or anything but it doesn't save in my db?
Please help.
<?php>
if(isset($_POST[save]))
{
//student,grade,section,subject
$ids=$_POST['id'];
$grades=$_POST['fg'];
$secs=$_POST['secs'];
$subs=$_POST['subs'];
$yirs=$g_year['acad_id'];
debug($_POST);
if(isset($_POST['save']))
{
unset($_POST['save']);
$i = count($_POST['id']); $x = 0;
for($x=0; $x <$i;$x++){
foreach($_POST as $data =>$d){
echo $data.'-'.$d[$x].'<br/>';
$num_entry=count($d);
$insert="INSERT INTO tbl_firstgrading {$data} VALUES (";
for($i=0;$i<$num_entry;$i++){
if($i!=$num_entry){
$insert.="$d,";
}
else
{
$result=mysql_query($insert)or die(mysql_error());
}
}
//SQL statement here (example): insert into table name (value ng $data) values( value ng $d[$x]) --
}}}}
?> <?php function debug($arr){ echo "
";
print_r($arr);
echo "
"; } ?>
Read moreWhat can I do to repair my dead USB? How can I recover my files?
Read moreWhy does my PC say that I need to refill ink when I just refilled? I have an HP color inkjet printer. No clue on the manual.
Read moreWhat processor would best apply for a 24 hours gaming cafe?
Read moreWhat other softwares can I use for a presentation aside from the PowerPoint? I need more exciting animations.
Read moreHow can I make my own minus one? What software would you recommend?
Read more