8,966 Posted Topics
Re: Care to share your solution, to help out others? | |
Re: 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 | |
Re: No. What would be the point? | |
Re: It is very hard to make that distinction. Is this a rule you can logically describe? ![]() | |
Re: 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. | |
Re: Care to explain a little more? Sounds like illegal activity. | |
Re: You can just implement a routine that uses `glob()` to scan the template folder. | |
Re: 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. | |
Re: > 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 … | |
Re: Since you're building a class, why not use `fetchObject` to return an object instead of an associative array. | |
Re: For completeness: PhpStorm. Paid, but a very good tool IMO. | |
Re: These are all non-floating point numbers in calc. | |
Re: I don't see a jquery include. ![]() | |
Re: Do some debugging on line 43-56. It has to be a logic error in that area IMO. | |
Re: It increases readability of the query result, and can shorten long queries. | |
Re: You can use CSS media queries to optimize for a specific resolution, like making the middle content smaller on smaller resolutions. | |
Re: Either use long tags, or adjust the configuration. Click the taskbar icon, go to php.ini, edit the setting, restart. | |
Re: What are you having problems with? Do you have anything yet? | |
Re: What kind of web service, which language are you using? | |
Re: Start [here](http://msdn.microsoft.com/en-us/library/ms188258.aspx). | |
Re: 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." | |
Re: Yes, just have a look at that page's source code. | |
Re: > 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? | |
Re: 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. | |
Re: 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`. | |
Re: Regardless of whether you are having honest intentions, asking/providing such information is against forum rules. Thread closed. | |
Re: > advice for PHP learning strategy Practice, practice, practice and php.net. | |
Re: > the weeks/months stay the same even though the variable (start date) changes Can you provide an example of what happens? | |
Re: You can use `query` if you derive your class from PDO: class Database implements PDO { // etc. } | |
Re: Do you get an error when connecting (have you added error checking) ? | |
Re: Show your table structures and some data, and explain exactly what you need. | |
Re: 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. | |
Re: IIRC: Check out the source of the page after it's generated. You'll see that the ID's have changed values. | |
Re: GitHub has an excellent search, am sure you can find one you're interested in. | |
Re: [date_diff](http://php.net/date_diff) is already an existing PHP function. Rename your function and the error will be gone. | |
Re: IIRC including the unit as the first one in your .dpr should do the trick. | |
Re: Without any description of what happens, or what should happen, just dumping some script and expecting answers is not going to work. | |
| |
Re: > 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. |
The End.