8,966 Posted Topics

Member Avatar for jacob21
Member Avatar for pritaeas
0
203
Member Avatar for flynismo

http://www.daniweb.com/web-development/php/code/437655/getting-products-details-from-categories-subcategories-with-ajax-call-

Member Avatar for flynismo
0
3K
Member Avatar for diafol

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

Member Avatar for pritaeas
0
183
Member Avatar for Stardemos

Use [CONCAT](http://dev.mysql.com/doc/refman/5.6/en/string-functions.html#function_concat).

Member Avatar for Stardemos
0
145
Member Avatar for zachattack05

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

Member Avatar for zachattack05
0
477
Member Avatar for jamojo
Member Avatar for vizz

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(); } …

Member Avatar for vizz
0
1K
Member Avatar for jady789

Write down your inputs and requirements line by line, a line containing one action only. It will be much easier to convert to code.

Member Avatar for jady789
0
190
Member Avatar for PriteshP23

You will need to pass the table column too, so you can use it in the order by (just like ASC/DESC).

Member Avatar for PriteshP23
0
2K
Member Avatar for James singizi

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.

Member Avatar for pritaeas
0
178
Member Avatar for icedome

You can use the `WebRequest` class. Replacing tags can be done with `string.Replace()`.

Member Avatar for pritaeas
0
100
Member Avatar for John B.

If you change your discount file so it uses G30=48 then you can use it as a TIniFile.

Member Avatar for John B.
0
189
Member Avatar for newbie26
Member Avatar for rotten69
Member Avatar for AndreRet

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.

Member Avatar for AndreRet
0
226
Member Avatar for LastMitch

You forgot to create a `new` object from the candy class. $MnM = new candy('My favourite candy here');

Member Avatar for LastMitch
0
1K
Member Avatar for branding4you

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.

Member Avatar for branding4you
0
776
Member Avatar for rohan.sharmila
Member Avatar for jamojo

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;

Member Avatar for jamojo
0
165
Member Avatar for Myronz
Member Avatar for kenomote

You close the reader in the while loop (and after). Why don't you change the while to an if, makes much more sense.

Member Avatar for kenomote
0
255
Member Avatar for king03
Member Avatar for tom.a.king
Member Avatar for Goto_4.0

Need more information about what you want. Test values depend on what the (pseudo) code does.

Member Avatar for Goto_4.0
0
99
Member Avatar for Mgundo
Member Avatar for simplypixie
Member Avatar for simplypixie
0
135
Member Avatar for sanjeewa.abeywardana

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.

Member Avatar for pritaeas
0
35
Member Avatar for kenomote

You are trying to insert 8 columns with 7 values, and `Contact#` must be surrounded with backticks, because `#` starts a comment.

Member Avatar for kenomote
0
458
Member Avatar for Rizi004
Member Avatar for pritaeas
0
101
Member Avatar for ppstyle
Member Avatar for aruhat
0
237
Member Avatar for klemme

[Here](http://www.regular-expressions.info/)'s another website with good explanations.

Member Avatar for klemme
0
185
Member Avatar for axel22
Member Avatar for vivosmith

This file may be included into another script, where the variable has a value.

Member Avatar for vivosmith
0
258
Member Avatar for alltech

I suggest you start with adding error checking on your mysql queries.

Member Avatar for acidmind.bh
0
397
Member Avatar for nitin1

@BigPaw: What if the actual 3 fastest all run in the first race ;)

Member Avatar for chris.stout
0
283
Member Avatar for rakibtg

If you use a DOM parser, then you should loop through all nodes, replacing only the dot in the value texts.

Member Avatar for rakibtg
0
488
Member Avatar for Goldfinch

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.

Member Avatar for pritaeas
0
108
Member Avatar for saadi06

Not possible. You can only retrieve the field, and then apply the function in the PHP script.

Member Avatar for pritaeas
0
44
Member Avatar for AndreRet
Member Avatar for dalilice
Member Avatar for pritaeas
0
74
Member Avatar for mathiasbbaale
Member Avatar for pritaeas
0
11
Member Avatar for adishardis
Member Avatar for Kerry W

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 ;)*

Member Avatar for ~s.o.s~
0
256
Member Avatar for Echo89

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

Member Avatar for coreyavis
1
607
Member Avatar for scottlpool2003

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

Member Avatar for diafol
0
327
Member Avatar for mmeyer49
Member Avatar for mmeyer49
0
326
Member Avatar for eman neercs

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

Member Avatar for eman neercs
0
115
Member Avatar for mrickert

From what I found it has to be a Zend thing. Perhaps missing an extension?

Member Avatar for mrickert
0
117
Member Avatar for dalilice

Something like in [this thread](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/437898/jquery-slide-toggle)?

Member Avatar for pritaeas
0
273
Member Avatar for dwizer

The End.