8,966 Posted Topics
Re: How are you importing the CSV (some code is preferred)? | |
Re: http://www.daniweb.com/web-development/php/code/437655/getting-products-details-from-categories-subcategories-with-ajax-call- | |
![]() | Re: `LIMIT 11,20` means start at 11 (zero based), get 20 records (if any)... Without data, it'll be hard to tell. Query appears legit. |
Re: Use [CONCAT](http://dev.mysql.com/doc/refman/5.6/en/string-functions.html#function_concat). | |
Re: > just like I wouldn't consider XML, PHP, and JavaScript to be programming languages If that is your opinion, then why did you include Perl ? ;) It is also an interpreted language (not compiled). | |
Re: It would help if you show the relevant piece of HTML. | |
Re: I'd use the following construct: function isValidEmail() { var x = document.forms["myForm"]["email"].value; var atpos = x.indexOf("@"); var dotpos = x.lastIndexOf("."); if (atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= x.length) { return false; } return true; } if (name == '') { $('.name').fadeOut(200).show(); } … | |
Re: Write down your inputs and requirements line by line, a line containing one action only. It will be much easier to convert to code. | |
Re: You will need to pass the table column too, so you can use it in the order by (just like ASC/DESC). | |
![]() | Re: The PHP version of count and max work on arrays. What you need is the MySQL version of COUNT and MAX. I'll move this to the right forum. Please explain what data you have, and what the expected output should be. |
Re: You can use the `WebRequest` class. Replacing tags can be done with `string.Replace()`. | |
Re: If you change your discount file so it uses G30=48 then you can use it as a TIniFile. | |
Re: Most browsers will not allow you to do this. | |
Re: > COUNT('id') Change single quotes to backticks. | |
Re: If you are using post, then do: $vehicle_year = isset($_POST['vyear']) ? $_POST['vyear'] : -1; If the year is -1 then it was not set/posted yet. | |
![]() | Re: You forgot to create a `new` object from the candy class. $MnM = new candy('My favourite candy here'); ![]() |
Re: You do a lot of copying... why not use `$arr`, and remove all the weird copying that happens after that. `$arr` is already an array. | |
Re: Call the company that built them, and ask. | |
Re: You'll need a regex for that. Something like this: $string = 'The quick brown fox jumped over [caption id="attachment_223" align="alignleft" width="900"] the head of the lazy dog.'; $newstring = preg_replace('/\[.*?\]/i', '', $string); echo $newstring; | |
Re: You close the reader in the while loop (and after). Why don't you change the while to an if, makes much more sense. | |
Re: Need more information about what you want. Test values depend on what the (pseudo) code does. | |
Re: Your parenthesis do not match (missing one opening). | |
Re: What code is calling this function? This function just returns one record. | |
![]() | Re: For Visual Studio read [this](http://www.learningjquery.com/2009/07/setting-up-visual-studio-intellisense-for-jquery). Personally, I use PhpStorm (it includes WebStorm) from JetBrains. |
Re: You are trying to insert 8 columns with 7 values, and `Contact#` must be surrounded with backticks, because `#` starts a comment. | |
Re: Perhaps [this blog entry](http://denrobapps.com/2011/02/facebooks-new-request-dialogs/) can help. | |
Re: http://www.daniweb.com/web-development/php/threads/424793/bulk-sms- | |
Re: [Here](http://www.regular-expressions.info/)'s another website with good explanations. | |
Re: Line 13 is incorrect, and the script end tag is missing. | |
Re: This file may be included into another script, where the variable has a value. | |
Re: I suggest you start with adding error checking on your mysql queries. | |
| |
Re: If you use a DOM parser, then you should loop through all nodes, replacing only the dot in the value texts. | |
Re: Are you using a database? Instead of a static feed (a file) you can use a PHP script to generate it. It will always be up-to-date then. | |
Re: Not possible. You can only retrieve the field, and then apply the function in the PHP script. | |
Re: Can you share the link to the faulty online page? | |
| |
Re: Does your HTML have divs with the right id? | |
Re: It doesn't seem to list code snippets, is that correct? If so, wouldn't that be a logical first choice? Update: Removed tutorials from my original statement, because sometimes they show, but it would be nice to have them on top. *Oh, if there only was nothing to whine about ;)* | |
Re: If this does not provide you with what you need, have a look at [this discussion on SO](http://stackoverflow.com/questions/1634782/what-is-the-most-accurate-way-to-retrieve-a-users-correct-ip-address-in-php). | |
Re: `getUserDetails();` should be `$user->getUserDetails();` since it's a method of the getUser class. The getUser class will need some more work. The query as it is now will fail. Additionally, I don't think the getUser class should be a class. All it does is execute a query, which is the basic … ![]() | |
Re: Are you sure that the web.config settings are applied automatically? | |
Re: Use a LEFT JOIN. You can then in your SELECT check for NULL values (missing SKU's) and return 0 (if that is what you want). | |
Re: From what I found it has to be a Zend thing. Perhaps missing an extension? | |
Re: Something like in [this thread](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/437898/jquery-slide-toggle)? | |
The End.