8,966 Posted Topics

Member Avatar for nosfa
Member Avatar for Dani

I have to make a feature request though. Would you be so kind as to block url's in the chat. It's getting spam links now too, instead of just links to threads with help me requests.

Member Avatar for Reverend Jim
6
684
Member Avatar for overwraith

> If you are faced with a previous coder who took all sorts of rabbit trails in his code You can use tools like ReSharper to help you identify code issues quickly. They analyze the codebase, tell you possibly issues and what code isn't even used. Next to that running …

Member Avatar for jwenting
0
578
Member Avatar for zachattack05

Between those two, option two. Otherwise, it depends on the method. If it does validity checks, the method might be named: private bool ItemExists() making it clear enough without using `== true`. However if your method does processing that can fail (and that is why you return true for success, …

Member Avatar for JOSheaIV
0
573
Member Avatar for Ventech_IT

> upload all the images with one upload field I'd suggest using a tool like [plUpload](http://www.plupload.com) or [dropzone](http://www.dropzonejs.com) for this.

Member Avatar for diafol
0
311
Member Avatar for praba_web

I guess you found that calculation on an old thread somewhere. Database servers have moved on since then and provide you with built-in geo functions: https://dev.mysql.com/doc/refman/5.6/en/spatial-relation-functions-object-shapes.html#function_st-distance

Member Avatar for pritaeas
0
444
Member Avatar for ramsiva
Member Avatar for pritaeas
0
137
Member Avatar for bLuEmEzzy

echo "<tr><td>" . $rowa['pid'] . "</td><td><a href='yourpage.php?id={$rowa['pid']}'>" . $rowa['prno'] . "</a></td></tr>";

Member Avatar for bLuEmEzzy
0
1K
Member Avatar for lewashby

> How do I mark solved? Top right of the page, large blue button.

Member Avatar for pritaeas
0
366
Member Avatar for nosfa

If you use ajax to call your controller with json data, then mvc will take of converting that into your viewmodel on the server-side. You can then use the viewmodel results to pass back json data. Perhaps [this link](http://www.codeproject.com/Articles/795483/Do-GET-POST-PUT-DELETE-in-asp-net-MVC-with-Jquery) may help.

Member Avatar for nosfa
0
338
Member Avatar for James_43

If this is referring to the code in your other thread, do note that indices start at zero and not one. So check your for loop. If that's not it, provide some more code (including the loop) so we can see what happens with your variable $i.

Member Avatar for James_43
0
4K
Member Avatar for Siberian

Am not entirely sure what you want. If you want to remove the ::after from the css, you could insert a span at the position you want and style that.

Member Avatar for gentlemedia
0
266
Member Avatar for pritaeas

https://www.daniweb.com/programming/web-development/code/497022/automatic-facebook-post-bumper Inline code snippets are much smaller then the snippets in the code part of a code snippet article. Could you please make them equally small, for readability's sake?

Member Avatar for Dani
1
283
Member Avatar for happygeek
Member Avatar for IntegratedTweak
0
545
Member Avatar for pritaeas

I could not select article type (code snippet) when creating a new thread from the web development forum. Anything I missed?

Member Avatar for Dani
0
209
Member Avatar for Suzie999

My bet would be the answer here: http://stackoverflow.com/questions/799060/how-to-determine-if-a-string-is-a-valid-ipv4-or-ipv6-address-in-c If you need `inet_ntop()` then have a look a PInvoke.net

Member Avatar for JamesCherrill
0
4K
Member Avatar for jhbalaji

The queries don't need updating. I do suggest to switch to the mysqli or pdo extension.

Member Avatar for pritaeas
0
1K
Member Avatar for davy_yg
Member Avatar for Stefce

What exactly doesn't work? If you echo the generated query, does it execute in phpMyAdmin? Is `$conn` a valid object?

Member Avatar for Stefce
1
442
Member Avatar for Dani

> Regarding your question, my personal answer would be "yes". I'm finding it really confusing. Same here. Too much space and distractions around the actual topic. I'd go as far as to state it is affecting my willingness to visit already.

Member Avatar for happygeek
0
436
Member Avatar for jacob21

IP address: http://www.php.net/manual/en/function.gethostbyname.php HTTP status: http://www.php.net/manual/en/function.curl-getinfo.php Load time: Store start time and end time on your function. Subtract.

Member Avatar for Dinesh Kumar_1
0
896
Member Avatar for Dani

I have to agree with jwenting on the oversized spacing and fonts. If I go to the PHP forum page I see FOUR articles on a 1080p screen... There's just not enough info on a single page. In this thread the number of replies within view is just TWO for …

Member Avatar for Dani
4
640
Member Avatar for pritaeas

When I hover over a user logo in the endorsement page, the name appears on the left hand side of my screen (Opera). At closer inspection, it appears to be a general issue with the tooltips. Same happens in my profile over the question mark buttons.

Member Avatar for Dani
0
268
Member Avatar for shany0786

Although a strange situation, if you can't change it, try this query: $sql = " SELECT username, password FROM `tbl_usrs` WHERE username = '{$usr}' AND password = '{$pwd}' UNION ALL SELECT email_id AS username, password FROM `nm_camping_personal` WHERE email_id = '{$usr}' AND password = '" . sha1($pwd) . "' LIMIT …

Member Avatar for pritaeas
0
228
Member Avatar for Suzie999

Perhaps: output = Regex.Replace(output, @"(.*?)[ \t]+$", "$1", RegexOptions.Multiline); It searches for spaces and tabs before the newline and replaces it with everything before it.

Member Avatar for JOSheaIV
0
392
Member Avatar for James_43
Member Avatar for James_43
Member Avatar for James_43
0
253
Member Avatar for pritaeas

No matter what I type in the search box, it only returns links to member profiles, if any.

Member Avatar for pritaeas
0
158
Member Avatar for pritaeas

You have some serious query/caching issues. Times vary but slow nonetheless. Finder -> My Bookmarks Page generated in 26.1996 seconds with 8 database queries and 7 memcached requests using 6.01MB of memory Latest Posts Page generated in 16.5247 seconds with 5 database queries and 6 memcached requests using 4.71MB of …

Member Avatar for Dani
0
253
Member Avatar for Violet_82
Member Avatar for pritaeas
0
322
Member Avatar for scotv
Member Avatar for ManikandanM
Member Avatar for Victor_10
Member Avatar for surayanbo
Re: Cpp

https://www.daniweb.com/software-development/cpp/threads/70096/c-books

Member Avatar for NathanOliver
0
109
Member Avatar for pritaeas

https://www.eff.org/deeplinks/2015/09/one-small-certificate-web-one-giant-certificate-authority-web-encryption Let’s Encrypt is a free, automated, open-source certificate authority (CA). The goal is to revolutionize encryption on websites, making HTTPS implementation a seamless, no-cost option for anyone with a domain. Sounds interesting, what are your thoughts?

Member Avatar for happygeek
1
221
Member Avatar for shashigowda
Member Avatar for pritaeas
0
314
Member Avatar for squeak24
Member Avatar for emilianjobs

Most likely the 'a' is implicitly converted to an int, resulting in 0 as default value on failure.

Member Avatar for diafol
0
206
Member Avatar for dawbin

Perhaps [this Javascript version](http://www.movable-type.co.uk/scripts/tea.html) can help.

Member Avatar for pritaeas
0
80
Member Avatar for theausum

You know this thread is four years old. The site may no longer support the snippet above.

Member Avatar for Pramod_7
0
3K
Member Avatar for iharrythomas

http://www.orafaq.com/faq/what_are_the_difference_between_ddl_dml_and_dcl_commands

Member Avatar for jwenting
0
115
Member Avatar for UK-1991

Your three inputs all have the same id and name. Because of that `getElementById` will always returns the first one. You can pass `this` as a parameter to your `ajax_post()`. Do that and you already have the right element, you just need to get it's value. Even if you choose …

Member Avatar for UK-1991
0
346
Member Avatar for Violet_82

> But where do I calculate the total income, expenses and effective total? Just use LINQ to Entity. There is no need to store totals, unless your database gets so huge it would take too long to calculate. Am not sure I'd choose Price and Expense. To me it makes …

Member Avatar for Violet_82
0
193
Member Avatar for rpv_sen
Member Avatar for SimonIoa
Member Avatar for new_2_java
Member Avatar for solomon_13000

Not sure why you use `load` inside the `ready` function. It's usually one or the other. What exactly is not working?

Member Avatar for KoniKodes
0
2K
Member Avatar for Reverend Jim
Member Avatar for Reverend Jim
0
751
Member Avatar for Shizza
Member Avatar for pritaeas
0
315
Member Avatar for blueshiftdani

> My code is not working What exactly is not working? Any errors? If you echo the query, what do you see?

Member Avatar for pritaeas
0
375

The End.