- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
Re: Thanks so much for the "hints" on paging search results! | |
Re: I have the same issue on my server -- no database priviliges. This is controlled by your system administrator, talk to them. I recently did an install of Mambo, as well. Although the installation instructs you to create a database titled "mambo," this is not necessary. Whatever database you have … | |
I seem to be having a problem getting this while() loop to work... [PHP]include("database_connect.php"); $query = "SELECT id, title, date FROM entries"; $result = mysql_query($query); while ( $result = mysql_fetch_assoc($result) ) { $id = $result["id"]; $title = $result["title"]; $date = $result["date"]; echo "<div class=\"recent_entries\">"; echo "<a href=\"archives.php?id=" . $id . … | |
Re: [QUOTE=ashneet]I am new at php so this might me a dumb question. Is it possible to use part of an include file another words i make an 1 big include file and only use parts of it as needed and not make many include files. Also is it possible to … | |
Re: Anytime you use quotes (") that you want the end user to see, always put backslashes before. If you often forget, I have found you can use single quotes and not have to use backslashes...example... Instead of this...[PHP]<?php echo "Press the \"Back\" button"; ?>[/PHP] You could probably use [PHP]<?php echo … | |
I'd like to suppress MySQL errors being printed in the header, so that errors can be passed back into the PHP page... My current code is as follows: [PHP]if ( ! mysql_connect($server, $database_username, $database_password) ) { $error = "There was error when attempting to connect to the specified database server: … | |
Re: Which is the better method? GET or POST? I particularly like POST because you don't see information being passed in the address... | |
Hi all. I am having a problem I've not encountered before. When using mysql_fetch_assoc() in while(), I am getting the following error: [INDENT][B]Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in archives.php on line 81[/B][/INDENT] However, when taking it out of the while(), it works fine. The … |
The End.