hello.... can i ask a favor if anyone could assist and help me regarding on this error and script below...
the objective is that from the default page which is that once u click a button pertaining on a table, it will querry on it and will appear that can be modified... not yet come with the update function, its on the appearance and getting the data to display has an error
could anyone help me... thanks in advance......
This is the error msg with color BLUE on it from the script below:
Notice: Undefined offset: 0 in D:.......\lookup_table_editor.php on line 300
Notice: Undefined offset: 0 in D:.......\lookup_table_editor.php on line 300
Notice: Undefined offset: 1 in D:.......\lookup_table_editor.php on line 295
echo "<table border='1' bgcolor='white'>\n";
echo "<tr>\n";
for ($h = 1; $h <= $columns; $h++)
{
echo "<th>".$col_name[$h]."</th>\n";
}
echo "<th>Action</th>\n";
echo "</tr>\n";
for ($i = 0; $i < $count; $i++)
{
echo "<tr>";
echo "<form action='lookup_table_editor.php' method='post'>\n";
$row=mysqli_fetch_array($result);
for ($c = 0; $c < $columns; $c++)
{
if ($col_name[($c+1)]!="id" && $col_name[($c+1)]!="EntityID" && $col_name[($c+1)]!="DepartmentID" && $col_name[($c+1)]!="recordid")
{
echo "<td><input type='text' name='".$col_name[($c+1)]."' value='".$row[$c]."' size='24'></td>\n";
}
else
{
echo "<td>".$row[$c]."<input type='hidden' name='".$col_name[($c+1)]."' value='".$row[$c]."' size='24'></td>\n";
}
}