gadline המקורי
New member
שאלה דחופה מאוד ב-php
שלום, אתם יכולים להגיד לי בבקשה, מדוע הסקריפט לא פועל? כתוב לי שהבעיה היא ב- line 25 מדוע? <html> <head> <title>panel</title> </head> <body> <form action="POST"> <table border="1"> <tr> <td>delete</td> <td>product</td> <td>price</td> </tr> <?php $key=dmbfirstkey( $dbh ); while ( $key !=" ") { $price=dbmfetch( $dbf, $key ); print "<tr><td><input type='checkbox' name=\"delete[]\" "; print "value=\"$key\"></td>"; print "<td>$key</td>; print "<td><input type=\"text\" name=\"prices[$key]\" "; print "value=\"$price\"> </td></tr>"; $key=dbmnextkey( $dbh, $key ); } dbmclose( $dbf ); ?> <tr> <td>$nbsp;</td> <td><input type="text" name="name_add"></td> <td><input type="text" name="price_add"></td> </tr> <tr> <td colspan=3 align="right"> <input type="submit" value="ammend"> </td> </tr> </table> </form> </body> </html>
שלום, אתם יכולים להגיד לי בבקשה, מדוע הסקריפט לא פועל? כתוב לי שהבעיה היא ב- line 25 מדוע? <html> <head> <title>panel</title> </head> <body> <form action="POST"> <table border="1"> <tr> <td>delete</td> <td>product</td> <td>price</td> </tr> <?php $key=dmbfirstkey( $dbh ); while ( $key !=" ") { $price=dbmfetch( $dbf, $key ); print "<tr><td><input type='checkbox' name=\"delete[]\" "; print "value=\"$key\"></td>"; print "<td>$key</td>; print "<td><input type=\"text\" name=\"prices[$key]\" "; print "value=\"$price\"> </td></tr>"; $key=dbmnextkey( $dbh, $key ); } dbmclose( $dbf ); ?> <tr> <td>$nbsp;</td> <td><input type="text" name="name_add"></td> <td><input type="text" name="price_add"></td> </tr> <tr> <td colspan=3 align="right"> <input type="submit" value="ammend"> </td> </tr> </table> </form> </body> </html>