8,966 Posted Topics
Re: [iCODE]&[/iCODE] needs to be escaped because it is the query string separator, use [iCODE]&[/iCODE] Also see [URL="http://php.net/urlencode"]urlencode()[/URL]. | |
Re: You need to use the $_POST array. [CODE] <?php $Includes_1 = isset($_POST['Includes_1']) ? $_POST['Includes_1'] : ''; $Includes_2 = isset($_POST['Includes_2']) ? $_POST['Includes_2'] : ''; $Includes_3 = isset($_POST['Includes_3']) ? $_POST['Includes_3'] : ''; $Includes_4 = isset($_POST['Includes_4']) ? $_POST['Includes_4'] : ''; $Includes_5 = isset($_POST['Includes_5']) ? $_POST['Includes_5'] : ''; $NoValues = empty($Includes_1) and empty($Includes_2) and … | |
Re: What exactly does not work? Is this perhaps viewable online somewhere? (Please use code tags next time.) | |
Re: @Que336: The comma (62) is the issue, the curly brackets (64) are fine. | |
Re: Have you tried inserting without the key ? It is auto increment, no need to specify it. | |
Re: Show your error. First, if that is all code, then $tuid is undefined. Second, PHP variable names may not start with a digit, so $1result is an invalid name. | |
Re: Looks like you are trying to call a non-static method, without creating an object. | |
![]() | Re: A header() redirects to a different PHP file. It is not meant to open a (Javascript) popup window. You can redirect to a different PHP file, that automatically opens the popup when the page is loaded though. |
Re: PHP does not have events. What do you want to do ? | |
Re: No. You have to use it wherever you call del.php | |
Re: Show the code you have already. I would prebuild the intial arrays containing OA, OD, OG, OAD, OAG, ODG and OADG. For each of these, call a recursive function to display the possible results (or write it so it keeps looping, to avoid memory issues). | |
Re: Make sure your table does not accept the same roomnumber twice by making a unique index for it. | |
Re: You foreach loop for the columns will not generate a correct query. You'll need to use something like this: [CODE] $columns = array (); foreach($_POST[field_name] as $value) { $columns[] = "$value VARCHAR(15)"; } $sql .= '(' . explode(',', $columns) . ')'; [/CODE] | |
Re: Am working on Azure worker roles for converting messages from our application to 3rd party interfaces. | |
Re: Am not quite sure how your theme is defined, but usually your HTML would just be pointing to a single CSS file. I have a theme folder, where there's a subfolder per theme, including all additional images. My HTML would then point to the selected theme: [iCODE]/themes/black-and-white/default.css[/iCODE] Bootstrap links: [url]http://stackoverflow.com/questions/3313950/php-bootstrapping-basics[/url] … | |
Re: Just a note, instead of using the $NOW variable in your query, you can also use the [URL="http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_now"]NOW()[/URL] function of MySQL. | |
Re: Post your [iCODE]submit.php[/iCODE] code instead (don't forget to use code tags, remove any credentials). | |
Re: Line 63, remove the comma before the WHERE (also answered in your other thread). Please do not repeat questions in new threads. | |
Re: In header you create a new object Page, where the constructor has no parameters, thus the title will be empty. I think your Page constructor should load the header file into a property, and replace a title marker with the real title. | |
Re: If the session is not available, cart has no value. Instead of: [CODE] if (isset($_SESSION['cart'])) { $cart = $_SESSION['cart']; } [/CODE] Use: [CODE] $cart = isset($_SESSION['cart']) ? $_SESSION['cart'] : false; [/CODE] | |
Re: id is missing from your query, so it has no value. Use: [CODE=sql] SELECT id, name FROM equipment_category ORDER BY id [/CODE] | |
Re: Where did you see this? Probably a combination of Javascript, PHP and MySQL. | |
![]() | Re: The documentation states it uses a PDO adapter, so I suggest you check the manual. |
Re: You need to connect room and roomBooking by a matching column. Post your table structures. | |
Re: What data ? Please explain with an example. | |
Re: danishbacker is right. [URL="http://php.net/mysql_fetch_row"]mysql_fetch_row[/URL] returns an array, so you should use [iCODE]$check[0][/iCODE] (probably, if it is the first or only column in your query result). | |
Re: Here's a start: [url]http://planetozh.com/projects/lightbox-clones/[/url] | |
Re: You mean you want to insert more input fields, after you press 'add more' ? This may be of help: [url]http://www.satya-weblog.com/2010/02/add-input-fields-dynamically-to-form-using-javascript.html[/url] | |
Re: [url]http://www.zend.com/en/products/guard/[/url] | |
Re: [URL="http://w-shadow.com/blog/2007/08/12/how-to-force-file-download-with-php/"]Here[/URL] is some info on how to do just this. | |
Re: You get this error if more than one function with the same name is found. Chances are you duplicated one. | |
Re: Put the rest of the conditions inside the first, like this: [CODE] if (isset($_POST['Features01'])) { echo "<div><h3>Features</h3><div><ul><li>$Features01</li>"; if (isset($_POST['Features02'])) { echo "<li>$Features02</li>"; } if (isset($_POST['Features03'])) { echo "<li>$Features03</li>"; } if (isset($_POST['Features04'])) { echo "<li>$Features04</li>"; } if (isset($_POST['Features05'])) { echo "<li>$Features05</li>"; } echo '</ul></div></div>'; } [/CODE] | |
Re: Can you perhaps give an example of what you have, and of what you want ? If I understand correctly, you just want a way to order your results on relevancy. | |
Re: Apart from XDebug, I've used log4php on occasions to just log an application's flow to a textfile. This will help you in making a map of the files/functions, and what is called in what order. If you come across a piece of code that is repeated, make a new file … | |
Re: Perhaps this will help: [url]http://www.orafaq.com/wiki/PHP_FAQ[/url] | |
Re: [CODE] $query = "SELECT * FROM `database`"; // use backticks, database may be a reserved word $result = mysql_query($query) or die(mysql_error()); // if it still fails, show use the error [/CODE] | |
Re: The easiest way would be to use a tool to do that. Personally, I use HighSlide. [URL="http://planetozh.com/projects/lightbox-clones/"]Here[/URL]'s a nice comparison of such tools. | |
Re: Did you include the file, and made sure you did not make a typo ? Also have a look at the example in [URL="http://www.daniweb.com/web-development/php/threads/407433"]this thread[/URL]. | |
Re: Caching, assuming your queries/indexes are already optimized. MySQL can cache queries, PHP can cache output, find a good balance. You can also have a look at [URL="http://memcached.org/"]memcached[/URL]. | |
Re: Maybe not, however I would choose to. That way you have a log of orders on your website, which can be compared to the gateway data. | |
Re: You can loop a form's Controls property to see if the one you need is available: [CODE] procedure SetValues(AForm: TForm); var i: Integer; begin if AForm = nil then Exit; // here you have to loop the form's Controls property and find the one you want to set. for i … | |
Re: [url]http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/367189[/url] | |
Re: I can second this behaviour (started when I upgraded to 11.60 for me). What I notice is that the facebook icon changes to 'false' (the text) when this happens. | |
Re: Note that dates in MySQL have to be in the format 'YYYY-MM-DD' (assuming `dob` is a DATE column). | |
Re: Perhaps [URL="http://stackoverflow.com/questions/5327104/php-ldap-get-user-details-of-member-which-is-a-member-of-a-group"]this thread[/URL] may help. | |
Re: Build your own CMS. It involves a lot of different parts, which will drastically increase your PHP knowledge. | |
Re: Your GROUP BY is causing this, Try removing it and using the `category` in the ORDER BY before the `id`. |
The End.