8,966 Posted Topics

Member Avatar for jacob21

[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].

Member Avatar for pritaeas
0
67
Member Avatar for KJThaDon

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 …

Member Avatar for pritaeas
0
99
Member Avatar for vijayram

What exactly does not work? Is this perhaps viewable online somewhere? (Please use code tags next time.)

Member Avatar for pritaeas
0
84
Member Avatar for ARKaMAN
Member Avatar for joshmac

Have you tried inserting without the key ? It is auto increment, no need to specify it.

Member Avatar for joshmac
0
173
Member Avatar for Cuchara2

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.

Member Avatar for Cuchara2
0
259
Member Avatar for josephkn

Looks like you are trying to call a non-static method, without creating an object.

Member Avatar for pritaeas
0
45
Member Avatar for harintfs

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.

Member Avatar for pritaeas
0
559
Member Avatar for vijayram
Member Avatar for mln_ndh
Member Avatar for Joe34

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).

Member Avatar for pritaeas
0
2K
Member Avatar for adolf23

Make sure your table does not accept the same roomnumber twice by making a unique index for it.

Member Avatar for adolf23
0
92
Member Avatar for c++learner

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]

Member Avatar for c++learner
0
164
Member Avatar for cwarn23

Am working on Azure worker roles for converting messages from our application to 3rd party interfaces.

Member Avatar for pseudorandom21
0
396
Member Avatar for Martin C++

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] …

Member Avatar for Martin C++
0
85
Member Avatar for Sabyre

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.

Member Avatar for pritaeas
0
151
Member Avatar for MattWhitehead__

Post your [iCODE]submit.php[/iCODE] code instead (don't forget to use code tags, remove any credentials).

Member Avatar for MattWhitehead__
0
626
Member Avatar for ARKaMAN

Line 63, remove the comma before the WHERE (also answered in your other thread). Please do not repeat questions in new threads.

Member Avatar for Fest3er
0
721
Member Avatar for phorce

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.

Member Avatar for ctaylo21
0
106
Member Avatar for rickbolt
Member Avatar for issaru07

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]

Member Avatar for pritaeas
0
117
Member Avatar for xuweisen

id is missing from your query, so it has no value. Use: [CODE=sql] SELECT id, name FROM equipment_category ORDER BY id [/CODE]

Member Avatar for xuweisen
0
178
Member Avatar for christiankrell
Member Avatar for pritaeas
0
40
Member Avatar for draven07

The documentation states it uses a PDO adapter, so I suggest you check the manual.

Member Avatar for pritaeas
0
77
Member Avatar for 21122012

You need to connect room and roomBooking by a matching column. Post your table structures.

Member Avatar for pritaeas
0
159
Member Avatar for 21122012
Member Avatar for jakizak

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).

Member Avatar for almostbob
0
179
Member Avatar for zacharysr
Member Avatar for pritaeas
0
103
Member Avatar for KJThaDon

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]

Member Avatar for pritaeas
0
93
Member Avatar for unikorndesigns
Member Avatar for masterjiraya

[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.

Member Avatar for pritaeas
0
187
Member Avatar for AaronLLF

You get this error if more than one function with the same name is found. Chances are you duplicated one.

Member Avatar for pritaeas
0
79
Member Avatar for KJThaDon

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]

Member Avatar for pritaeas
0
110
Member Avatar for mandy011

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.

Member Avatar for mandy011
0
163
Member Avatar for theprofoundgeek

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 …

Member Avatar for pritaeas
0
228
Member Avatar for subrata_ushasi
Member Avatar for coolest_987
0
111
Member Avatar for danielbala

[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]

Member Avatar for pritaeas
0
134
Member Avatar for vijayram

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.

Member Avatar for WorksForWeb
0
80
Member Avatar for erik216

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].

Member Avatar for erik216
0
308
Member Avatar for mr. y

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].

Member Avatar for smantscheff
0
161
Member Avatar for sthakre624

How do you expect the INSERT INTO should work with that WHERE clause ? Just remove line 2.

Member Avatar for pritaeas
0
67
Member Avatar for ofir0803

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.

Member Avatar for ofir0803
0
114
Member Avatar for Krefie

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 …

Member Avatar for Krefie
0
202
Member Avatar for globalseo

[url]http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/367189[/url]

Member Avatar for dangerstick
0
115
Member Avatar for crunchie

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.

Member Avatar for WaltP
0
167
Member Avatar for Arjun_Sarankulu
Member Avatar for crazyitalian

Note that dates in MySQL have to be in the format 'YYYY-MM-DD' (assuming `dob` is a DATE column).

Member Avatar for crazyitalian
0
138
Member Avatar for HasNor

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.

Member Avatar for jaspal.indivar
0
112
Member Avatar for trivikrama

Build your own CMS. It involves a lot of different parts, which will drastically increase your PHP knowledge.

Member Avatar for pritaeas
0
165
Member Avatar for wetube

Your GROUP BY is causing this, Try removing it and using the `category` in the ORDER BY before the `id`.

Member Avatar for pritaeas
0
83

The End.