what if i have an else if statements, how will i insert entries in an array?
below in the example in a comment line i inserted some of my questions…
for example,
[php]
$token = strtok($webpagedata, " .,;:\n");
while ($token != false) {
while($token != '//'){
if($token == 'ID')
{
$token1 = $token = strtok(" .,;:\n");
echo "Entry name =$token1<br />";
//insert $token1 into a column 'entry' in db
}
else if($token == 'OC')
{
$token1 = $token = strtok(" .,;:\n");
if($token1 == 'Eukaryota')
{
echo "FEATURE =$token1<br />";
//insert $token1 into a column ‘feature’ in db
}
}
else
{
//
}
$token1 = $token = strtok(" .,;:\n");
}
}
//then after reading and if it sees a comment line ‘//’ it will loop again and insert again entries to another set of query
[/php]