Forum: MySQL Sep 18th, 2009 |
| Replies: 3 Views: 420 Your query probably belongs more in Computer Science, but it fits here well enough. I was in a similar position a while ago, in that I had to take over maintaining a general ledger and time & billing... |
Forum: PHP Sep 18th, 2009 |
| Replies: 2 Views: 256 KG,
Your advice is sound, except when referencing array elements. That is,$string = "Hello ".$name['firstname'].", how you are?";
would become$string = "Hello ${name['firstname']}, how you... |
Forum: PHP Sep 18th, 2009 |
| Replies: 10 Views: 403 If I may ever so gnetly ask a dumb question, why is the function call inside quotes? This results in $connection containing the string you see, rather than a handle referencing the desired database... |
Forum: JavaScript / DHTML / AJAX Aug 9th, 2009 |
| Replies: 4 Views: 567 If you have control of the entire page, then the content of a div should change only under program control, under your control. Thus when your program changes the content, it should then call the... |
Forum: JavaScript / DHTML / AJAX Aug 9th, 2009 |
| Replies: 8 Views: 778 I would sooner believe you are using a non-standard 'feature' of IE. Try Firefox, Opera and a few other browsers; ask others to try it on Safari and Konqueror. If it still only works in IE, then you... |
Forum: JavaScript / DHTML / AJAX Aug 8th, 2009 |
| Replies: 8 Views: 778 Since you have the web page (web site), can't you:
<div id="mydiv">
<p id="mydiv_p1">first</p>
</div>
In other words, have your code that creates the <p> assign an ID to it. Fetching the... |
Forum: JavaScript / DHTML / AJAX Aug 6th, 2009 |
| Replies: 11 Views: 757 As an answer is promised, I won't butt in. Instead, I'll give some tidbits as reminders to how the web works.
Generally speaking, cookies are sent between the server and the browser by way of HTTP... |
Forum: Shell Scripting Aug 5th, 2009 |
| Replies: 12 Views: 5,506 |
Forum: PHP Jul 24th, 2009 |
| Replies: 3 Views: 279 You can look into DRM, but that has its limits. You can use the scheme you mentioned, but that still depends on the visitor being honest.
The best way to prevent people from downloading and/or... |
Forum: Windows NT / 2000 / XP Jul 24th, 2009 |
| Replies: 1 Views: 668 This is one reason I do not install or use toolbars that aren't built with the application. Not ask, not google, not yahoo, not almost any of them. I don't let Firefox install the Yahoo toolbar. The... |
Forum: Windows NT / 2000 / XP Jul 21st, 2009 |
| Replies: 11 Views: 433 It's been a while since I looked at this. I'll skip the 'irrelevant' items.
rdisk should be the BIOS disk drive ID, counting from zero (0).
partition should be the partition number, counting... |
Forum: Windows NT / 2000 / XP Jul 19th, 2009 |
| Replies: 10 Views: 324 Just for grins, try booting a live Linux CD. See if Linux sees the drive(s).
What's the possibility the BIOS Flash memory went south?
(True, it's really time to give up. It's now cheaper to buy... |
Forum: Windows NT / 2000 / XP Jul 18th, 2009 |
| Replies: 10 Views: 324 Any possibility of a lightning strike damaging the system?
Check the power supply; +5VDC or +12VDC could be low on one of the outputs. Even a bad ground could cause problems. Or just try a... |
Forum: PHP Jul 18th, 2009 |
| Replies: 10 Views: 483 You may be overlooking a few things that are important when doing this sort of thing. PHP runs on the server.
ECMAScript (JS) runs on the browser.
HTML is interpreted by the browser to render the... |
Forum: PHP Jul 15th, 2009 |
| Replies: 3 Views: 397 Re-read the quoted part above, then read the table of reserved words in the MySQL manual. (Hint: 'by' is a reserved word.)
While you can use reserved words if you quote them correctly, it is best... |
Forum: IT Professionals' Lounge Jul 11th, 2009 |
| Replies: 4 Views: 506 If you write a 'scholarly document' that defines just what 'scary moments' are, uses such moments from classic movies to illustrate your point, gives full and proper citations for each 'quote' and... |
Forum: PHP Jul 10th, 2009 |
| Replies: 4 Views: 474 <?php
// Set array parts
$a = array("1" => "one", "2" => "two");
$b = array("a" => "aye", "b" => "bee");
$c = array("a scalar", $a, $b);
// Extract a sub-element from an array in the... |
Forum: Shell Scripting Jul 10th, 2009 |
| Replies: 3 Views: 562 Yes, it can. A simplistic way to find all affected files, leaving you to do the rest of the work:find / -type f -exec grep -li viagra {} \;
Or, assuming you are on a reasonably POSIX-ish system, a... |
Forum: PHP Jul 9th, 2009 |
| Replies: 6 Views: 405 To provide a useful answer: use and tags around your code so it is displayed on the forum in a readable fashion use the "Preview Post" button to review your post before submitting it be sure your... |
Forum: MySQL Jul 8th, 2009 |
| Replies: 3 Views: 842 It's telling you exactly where to look for the error. Hint: look at the first non-whitespace character before 'FROM'.
Give up? OK. You have a trailing comma in your AS clause. (You've no idea how... |
Forum: Perl Jul 8th, 2009 |
| Replies: 5 Views: 394 If you are using unix/linux or cygwin on winders, use the strings() command, as instrings filename.binThis command extracts every sequence of printable characters followed by an unprintable... |
Forum: DaniWeb Community Feedback Jul 6th, 2009 |
| Replies: 4 Views: 525 Hmmm. I was on a road trip 6/22-6/30, and didn't have KDE then (laptop is XP only). It may have been working OK before 6/22, and I'm almost certain it was OK before 6/14.
Wish I could be more... |
Forum: DaniWeb Community Feedback Jul 6th, 2009 |
| Replies: 4 Views: 525 Cleaned all daniweb stuff from cache. No change. Attached is a shot of the Konqueror winder. You can see menu items are missing; the links aren't there either. The drop-down menus don't appear. If I... |
Forum: DaniWeb Community Feedback Jul 5th, 2009 |
| Replies: 4 Views: 525 Suddenly, the site no longer works properly for me when I use Konqueror 3.5.9 on debian. It had been working as well as could be expected before then (e.g., flash typically required a page reload... |
Forum: PHP Jul 5th, 2009 |
| Replies: 8 Views: 424 Or, in plain English, you are overwriting the result of your SELECT query with the result of your DELETE query, which is not suitable for fetching rows from. Thus your script ABENDs at the top of the... |
Forum: PHP Jul 2nd, 2009 |
| Replies: 1 Views: 324 Two strong clues: Browser: Firefox (http://www.getfirefox.com/) ECMAScript debugger: Firebug (http://www.getfirebug.com/)
Firebug will let you see/examine the HTML generated by ECMAScript (also... |
Forum: Shell Scripting Jun 18th, 2009 |
| Replies: 4 Views: 625 That's what happens when you've been looking at the problem too long. I'm going through the same thing now on my own project ('updating' Smoothwall Express to use LFS 6.4). Boy am I overlooking stuff... |
Forum: Shell Scripting Jun 17th, 2009 |
| Replies: 4 Views: 625 Adding a sub() statement to your awk code that deletes the % from the df() output should work. The above syntax should work on your system (AIX & Pains or Solaris?); I'm still using a 1988 version of... |
Forum: Computer Science Jun 17th, 2009 |
| Replies: 9 Views: 552 In short:
Analog computers do (or did) exist. And they work well for what they do. But they aren't as flexible as digital computers.
Binary is popular because electronics most easily deal with... |
Forum: Shell Scripting Jun 17th, 2009 |
| Replies: 5 Views: 675 Generally speaking, one would first catalog all available CLI programs on the router and see if one of them approximates the perl functionality. Specifically in this instance, netcat might do the... |
Forum: Shell Scripting Jun 17th, 2009 |
| Replies: 5 Views: 819 A box character is one that Windows and other systems render as a box because that character does not have a glyph defined.
To the OP: you need to identify exactly which character is being... |
Forum: MySQL Jun 12th, 2009 |
| Replies: 8 Views: 579 There are several reasons I use the '... SET col=name ...' syntax:
When written with good spacing, the source code is much more readable and grokable.
I don't have to keep printouts of the... |
Forum: JavaScript / DHTML / AJAX Jun 8th, 2009 |
| Replies: 5 Views: 613 Here's a 'simple' method that is 'close' to what you stated. It's very high level, lacking most detail, but will do what you said you wanted once implemented correctly. I taught myself all this by... |
Forum: Perl Jun 8th, 2009 |
| Replies: 2 Views: 443 Hmmm. I think you're going to hate one of us two. :) Putting parens around the field name as shown below should do the trick... |
Forum: Computer Science Jun 6th, 2009 |
| Replies: 29 Views: 6,701 I would say the strongest clue to the answer is three-fold: Grok the problem Grok your solution Write so you can quickly re-grok, and so others can quickly grok, the problem and solution in the... |
Forum: MySQL Jun 5th, 2009 |
| Replies: 4 Views: 619 Do you need to assign the result of the query to $result before you can use the result? |
Forum: Shell Scripting May 28th, 2009 |
| Replies: 4 Views: 818 OK. Tar is weirder than I thought. If GNU tar is called as 'tar cv /usr/local/bin', it will create a tar archive on STDOUT, seemingly in violation of the man page. Called as you indicated in your... |
Forum: Shell Scripting May 28th, 2009 |
| Replies: 4 Views: 818 No. Double-check the man page. You'll see the 'f' option requires a value, specifically the name of the destination tar is to use. (UNlike many commands, tar doesn't require that 'f's value follow it... |
Forum: PHP May 24th, 2009 |
| Replies: 10 Views: 498 Add ob_start() before your PHP has generated any output (before it has generated any of <body>, <head>, <!DOCTYPE, <html>, etc.) You will be free to generate any headers you wish; headers are not... |
Forum: PHP May 24th, 2009 |
| Replies: 7 Views: 1,089 Replace<?php
$myarr=json_encode($pr);
?>with<?php
$myarr=(str_replace("\\/", "/", json_encode($pr);
?>provided there are no other occurrences of "\/" in the converted array.
Recently, I... |