Hi
My following php code keeps giving me Undefined Offset errors:
The code is:
<table border="1">
<tr>
<th>Tile </th> <th> Email</th> <th> Publication No. </th> <th> Submitted By: First Name </th> <th> Submitted By: Last Name </th> <th> File Name </th>
</tr>
<tr>
<?php
if(!($lines=file('publication.txt')))
{echo 'Error:Unable to open file!</body> </html>';exit;}
foreach($lines as $theline)
/*Line 134
*/
{list($title, $author, $pubno, $firstname, $lastname, $newname) = split '\|',$theline);
echo"
<tr>
<td>$title</td> <td>$author</td> <td>$pubno</td> <td>$firstname</td> <td>$lastname</td> <td>$newname</td </tr>";}?>
</table>
I keep getting the following errors:
Notice: Undefined offset: 5 to Undefined offset:1 on line 134