Snagged this sample off the manual and modified it a little, getting an error.
Here's the code:
Rsearch2.php
<?php
$db = dbase_open('prodlog.dbf', 0);
if ($db) {
$record_numbers = dbase_numrecords($db);
for ($i = 1; $i <= $record_numbers; $i++) {
$row = dbase_get_record_with_names($db, $i);
echo "Member #$i: " . trim($row["prodorder"]) . "\n";
}
}
?>
Here's the page it's coming from:
Rform2.htm
<html>
<body><form action="Rsearch.php" method="POST"><br>
Enter production order number: <br><input type="text" name="ponum" /><br>
<input type="submit" />
</form></body>
</html>
i get this error:
Notice: Undefined index: prodorder in c:\Inetpub\wwwroot\Rsearch.php on line 9
Pretty sure it has to do with this snippet: $row["prodorder"]
but I don't know how to change it
I've used single(') double (") and no quotes around prodorder, the dbf table im opening and searching through in the code, I have rights to the file and folder.
Answers appreciated but a point in the right direction will do.
Adam