8,966 Posted Topics

Member Avatar for patk570
Member Avatar for savedlema

You can join both tables on InvID: SELECT R.InvID, R.Quantity, I.Amount, (I.Amount - R.Quantity) AS Difference FROM Recipe R, Inventory I WHERE R.MenuID = 1 AND R.InvID = I.InvID

Member Avatar for savedlema
0
323
Member Avatar for dudegio
Member Avatar for alismith

It is very hard to make that distinction. Is this a rule you can logically describe?

Member Avatar for iamthwee
0
420
Member Avatar for websponge

Not with Javascript alone. You'll need something to modify the `notice.html` file, or adjust the notice page so it will get the information from a database or file. Some scripting will be involved.

Member Avatar for JorgeM
0
128
Member Avatar for ivanshish
Member Avatar for atulyakala11
Member Avatar for devianleong
Member Avatar for pritaeas
0
195
Member Avatar for MMadhavi

I do not see on the colorbox site that they support video directly. You'll need to use the iframe option. So instead of linking to the video, you'll need to link to a dynamic webpage showing the embedded video.

Member Avatar for Nitesh Apte
0
1K
Member Avatar for cocopium

> No way to get it down to 4 "if"s. You can as kvothetech said, but you have to introduce new variables. min1 = smallest of A and B max1 = largest of A and B min2 = smallest of C and D max2 = largest of C and D …

Member Avatar for cocopium
0
503
Member Avatar for klemme

Since you're building a class, why not use `fetchObject` to return an object instead of an associative array.

Member Avatar for pritaeas
0
229
Member Avatar for dstoltz
Member Avatar for pritaeas
0
303
Member Avatar for rishif2
Member Avatar for rosstafarian
Member Avatar for nono2020
Member Avatar for adeeb.keyaam
Member Avatar for pritaeas
0
159
Member Avatar for Sravani saka

It increases readability of the query result, and can shorten long queries.

Member Avatar for Reverend Jim
0
391
Member Avatar for JamesAtCBC

You can use CSS media queries to optimize for a specific resolution, like making the middle content smaller on smaller resolutions.

Member Avatar for BMXDad
0
372
Member Avatar for oanahmed
Member Avatar for williampritchar

Either use long tags, or adjust the configuration. Click the taskbar icon, go to php.ini, edit the setting, restart.

Member Avatar for almostbob
0
1K
Member Avatar for brendasteinberg.bakersfield
Member Avatar for nishantharp
Member Avatar for nitin1
Member Avatar for anisha.silva
Member Avatar for radhakrishna.p
0
332
Member Avatar for M.Waqas Aslam

Start [here](http://msdn.microsoft.com/en-us/library/ms188258.aspx).

Member Avatar for M.Waqas Aslam
0
242
Member Avatar for Dani

Maybe too obvious, but this is in the manual: "This function will not work unless you have pspell .11.2 and aspell .32.5 or later."

Member Avatar for Dani
0
316
Member Avatar for Cravver
Member Avatar for xxmp
Member Avatar for marifard

> Fatal error: Call to undefined function finfo_open() in /home/rwxypejp/public_html/diary/imgupload/addimage.php on line 53 `finfo_open()` was introduced in PHP 5.3.0, do you have the right version?

Member Avatar for marifard
0
391
Member Avatar for Dani

From what I understood (when I started using it) it's linking only to public Google profiles (with a personal picture). May have changed in the meantime.

Member Avatar for Dani
0
110
Member Avatar for davidjennings

You are not executing your query. Put the following on line 22: $result = mysql_query($sql) or die(mysql_error()); I also suggest you remove the single quotes around `NULL`.

Member Avatar for davidjennings
0
541
Member Avatar for baby_c

Regardless of whether you are having honest intentions, asking/providing such information is against forum rules. Thread closed.

Member Avatar for pritaeas
0
107
Member Avatar for kanoy83
Member Avatar for pritaeas
0
338
Member Avatar for chrispitt
Member Avatar for adishardis

> the weeks/months stay the same even though the variable (start date) changes Can you provide an example of what happens?

Member Avatar for pritaeas
0
162
Member Avatar for klemme

You can use `query` if you derive your class from PDO: class Database implements PDO { // etc. }

Member Avatar for jkon
0
201
Member Avatar for Webville312
Member Avatar for Webville312
0
174
Member Avatar for seju
Member Avatar for seju
0
256
Member Avatar for Violet_82

If you remove the form tag you'll just have to trigger your actions with Javascript. Depending on what you need to do this may be just fine.

Member Avatar for Meir David
0
220
Member Avatar for while(!success)

IIRC: Check out the source of the page after it's generated. You'll see that the ID's have changed values.

Member Avatar for while(!success)
0
371
Member Avatar for trexsteve
Member Avatar for Ancient Dragon
Member Avatar for Ancient Dragon
0
64
Member Avatar for Anima Templi
Member Avatar for ronaldpaul
Member Avatar for squeak24

[date_diff](http://php.net/date_diff) is already an existing PHP function. Rename your function and the error will be gone.

Member Avatar for squeak24
0
606
Member Avatar for cherylle.morrow
Member Avatar for riki.kavadarci
Member Avatar for pritaeas
0
225
Member Avatar for vishal.du123

Without any description of what happens, or what should happen, just dumping some script and expecting answers is not going to work.

Member Avatar for radhakrishna.p
0
173
Member Avatar for sathish_nadu
Member Avatar for Dani

> then the resulting array has the correct number of keys To answer that for anybody else, `preg_split` uses the pattern to break the string. Since the `\w+` is included it splits on the actual words, thus removing them.

Member Avatar for pritaeas
0
210

The End.