No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
Or if you are talking about a group of checkboxes with the same name you would do something like this: page_html.php [code] <form method="post" action=""> <input type="checkbox" id="things[]" value="red"> Cat<br> <input type="checkbox" id="things[]" value="blue"> Mouse<br> <input type="checkbox" id="things[]" value="green"> Car<br> <input type="checkbox" id="things[]" value="yellow"> DaniWeb </form> [/code] page_php.php [code=php] <?php …
I'm completely lost on this assignment: [QUOTE]The BNF rules (referred to as a grammar) are stored in a file. Your program is to read and echo the grammar file, and then walk the user through the process of building a sentence. Once the grammar is read, the program will prompt …
[INLINECODE]<script language="JavaScript"> <!-- function restore(what){ if (confirm("Are you sure you want to overwrite the database with the file " + what + "?")) { window.location = "backups.php?action=restore&file=" + what; } } function delete(what){ if (confirm("Are you sure you want to overwrite the database with the file " + what + …
I have a db full of articles that have a category field. Is there anyway to select and display just the different categories?
ok here we go: header.php [code] <html> <body> Home > <?php echo $variable; ?> [/code] page.php [code=php] <?php $variable = "Current Page"; include "header.php"; ?> [/code] I hope that helps you out =)
The problem being that you cannot do that. The reason is because for the same reason you cannot include "ORDER BY" in a variable, you also cannot include "DESC" or "ASC". You have to do something like this: [code=php] // This can be DESC or ASC $sort_type = "DESC"; if($sort_type …
The End.
nickclarson