181 Posted Topics

Member Avatar for Ancient Dragon

[QUOTE=VernonDozier;1529042]... I'll put Abe at the top like just about everyone else.[/QUOTE] I would tend to put Lincoln well down in such a list. He had a strong tendency to shred the Constitution. Communists, socialists, fascists, anarchists and other anti-republicans have been poking and chipping away at the Constitution for …

Member Avatar for e-papa
1
331
Member Avatar for NicAx64

[QUOTE=frogboy77;1451378]It appears to be the case of those who can, do, those who can't, teach.[/QUOTE] And those who can do neither, enter politics.

Member Avatar for Momerath
0
251
Member Avatar for shainjetly

You don't do it in the echo. You break the one echo statement into two echos with a foreach in between, something like: [code] echo '{status:1,id:'.$row['itid'].',price:'.$row['item_price'].',txt:'\ \ <table width="100%" id="table_'.$row['itid'].'">\ <tr>\ <td width="20%">'.$row['item_title'].'</td>\ <td width="10%"><select name="'.$row['itid'].'_cnt" id="'.$row['itid'].'_cnt" onchange="change('.$row['itid'].');">\ <option value="1">1</option>\ </select>\ \</td>\ <td width="15%"><select name="'.$row['itid'].'_cnt" id="'.$row['itid'].'_cnt" onchange="change('.$row['itid'].');">'; $options = array("1" …

Member Avatar for shainjetly
0
1K
Member Avatar for JessieJ

[QUOTE=JessieJ;1176357]...MY ANSWER: REM stuff here......... xcopy C:\myFiles C:\myFilesBackup /E /Y Am I on the right track? Thank you[/QUOTE] That is a fine tentative start. Without doing the work for you, a google search for "ms command batch howto" yielded [url=http://www.computerhope.com/batch.htm]ComputerHope.com[/url] which is an adequate reference to that which is possible …

Member Avatar for Fest3er
0
119
Member Avatar for TKSS

[QUOTE=prakash_d13;1314370]i have two isp line it possible to configure two isp's if one line goes down net will working throught 2 line 1->-ISP(pri) =====> LAN (192.168.1.2/254) 2->-ISP(sec) how to configure give me solution[/QUOTE] Smoothwall Express 3 is designed to work with only one ISP. Modifying it to work with more …

Member Avatar for Fest3er
-1
1K
Member Avatar for stharmon

[QUOTE=stharmon;70139][code]echo -e "\033[1m \n\t Installing courier-imap... \033[0m" sleep 2 cd /var/src tar -xjf tar/courier-imap-2.2.2.20040207.tar.bz2 cd courier-imap-2.2.2.20040207 # build as vpopmail chown -R vpopmail:vchkpw ../courier-imap-2.2.2.20040207 [B]su - vpopmail[/B] ./configure --with-redhat [/code] ... Does anyone have any thought as to how I can successfully SU and keep the script running?[/QUOTE] To actually …

Member Avatar for rehm
0
4K
Member Avatar for tech291083

Should you want a longer description.... The following assumes that the target company actively works to prevents software bugs from getting out the door. A software/system tester will be miserable in any company that throws software/systems over the wall at customers as soon as it compiles. A tester has two …

Member Avatar for muratg
0
268
Member Avatar for beanryu

[QUOTE=beanryu;942593][CODE] <div id="mydiv"> <p>first</p> </div> [/CODE][/QUOTE] Since you have the web page (web site), can't you:[code] <div id="mydiv"> <p id="mydiv_p1">first</p> </div> [/CODE] In other words, have your code that creates the <p> assign an ID to it. Fetching the .innerHTML of that <p> will be trivial once it has an …

Member Avatar for Ezzaral
0
5K
Member Avatar for am5a03

Other than the unclosed double-quotes in the <a> tags, I don't see anything too terribly wrong, though it may be bad form to have spaces around the "=" in the anchor tags.

Member Avatar for am5a03
0
166
Member Avatar for bhagat khetwal

write your select, order it in reverse order (o what you want is first) and add 'limit 1' at the end of the statement. That will give you exactly what would have been the last record before the change. Sorry, I couldn't think of a way to demonstrate this in …

Member Avatar for Designer_101
0
135
Member Avatar for chunalt787

The error message is saying something is wrong with the first SQL statement. It expected more, but saw the start of a new statement. Only difference I can really see is that you did not quote the 'link' and 'details' values in the PHP code. The following might be more …

Member Avatar for chunalt787
0
124
Member Avatar for Midnite003

IWFM (It Works For Me). :) Therefore, if forced to guess, I would say your web server does not grok PHP or it doesn't know that it should be speaking PHP: [list] [*]PHP is not installed, [*]PHP is not configured, or [*]your web browser is not configured to process your …

Member Avatar for digital-ether
0
175
Member Avatar for benqus

[QUOTE=benkus;1186158]Do you mean, that I should define the content variable outside of this function? Like on the beginning of the js file, and not in the AJAX method?[/QUOTE] First, you have used a string ("\n") instead of a regexp (/\n/) in the string.replace function. Second, string.replace will replace only the …

Member Avatar for benqus
0
165
Member Avatar for johndoe444

[QUOTE=johndoe444;1178009][CODE]find . -name 'my*' [/CODE] The quotes avoid the shell expansion - without them the shell would replace my* with the list of files whose names begin with my in the current directory. What thus the above statement mean? Isn't it doing the same thing I mean looking for file …

Member Avatar for Fest3er
0
140
Member Avatar for jackthechemist

[QUOTE=jackthechemist;1173431]Greetings, So, I've studied sockets, and studied TCP, and enjoy a beginner-intermediate understanding of each. However I desperately need clarification regard some fundamental concepts. Any help would be greatly appreciated: 1) Do sockets implement TCP? When I uses a socket to send data to another computer, are the computers using …

Member Avatar for jackthechemist
0
378
Member Avatar for rahul8590

[QUOTE=rahul8590;1177106]i have written a code for the user to select his area of expertise with respect to fields. i am able to display selected checkboxes for those fields. But when i want tio process further like when the user clicks on the particular checkbox and then submits i am not …

Member Avatar for Fest3er
0
228
Member Avatar for cwarn23

The sum is a lossy algorithm. Bytes are rotated and shifted and split and combined. Bits are overwritten and dropped. But then, that's what sums and hashes are [i]supposed[/i] to do. The practical intent is that these sums are one-to-one mappings. In theory, more than one source can map to …

Member Avatar for cwarn23
0
654
Member Avatar for mstone42

The following will find all files of some type of 'image'. The student's first exercise is to convert, in the script, the argument 1 word into a grep-style "a|b|c|d|..." argument in order to select only picture images (i.e., excluding disk images, et al). The student's next exercise is to make …

Member Avatar for Simon Tite
0
128
Member Avatar for sureronald

I had the same problem. You probably downloaded the opensource version. I concluded it doesn't yet work and tried Sun's 'proprietary' previous release, which boots more nicely.

Member Avatar for forumid123
0
149
Member Avatar for csharplearner

[QUOTE=csharplearner;928780]Hi all, My client wants to host the videos on his site using the embed code and link of the video. What is the best way to protect the videos from downloading or saving it into pcs. ...[/QUOTE] You can look into DRM, but that has its limits. You can …

Member Avatar for edwinhermann
0
127
Member Avatar for didyouthink76

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 system consisting of 1700 business basic programs written over 17 years using …

Member Avatar for didyouthink76
0
203
Member Avatar for iPixelate

[QUOTE=kylegetson;989475]Line 81, your missing a period. To avoid these kind of issues, you don't need to concatenate all that. You can put $data in a double quoted string. So instead of doing this: [CODE] $string="Hello ".$name.", how are you?"; [/CODE] You can do: [CODE] $string="Hello $name, how are you?"; [/CODE] …

Member Avatar for Fest3er
0
171
Member Avatar for HFK11

[QUOTE=HFK11;963912][CODE] 1. $connection="mysql_connect('localhost', 'admin', '1admin') or die(mysql_error())";// host account password[/CODE][/QUOTE] 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 connection. To actually execute mysql_connect, you …

Member Avatar for Fest3er
0
196
Member Avatar for Tekkno

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 headers. To send a cookie to the server, the browser must form the cookie …

Member Avatar for Tekkno
0
195
Member Avatar for zegames

[QUOTE=zegames;943260]Hi people, How to I can detect if a div was changed after the page loaded? E.g. by innerHTML function. ps: onChange not is valid for tag div. Reference here on [URL="http://w3schools.com/htmldom/event_onchange.asp"]w3c[/URL]. Thanks![/QUOTE] If you have control of the entire page, then the content of a div should change only …

Member Avatar for Fest3er
0
2K
Member Avatar for b1ue
Member Avatar for Fest3er
0
160
Member Avatar for fozbat

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 only one I would consider using might be Mailfoundry's ham/spam reporter in Outlook, …

Member Avatar for Fest3er
0
719
Member Avatar for codemaker

[QUOTE=codemaker;921257]Let my try to get it right....[/QUOTE] You may be overlooking a few things that are important when doing this sort of thing.[list][*]PHP runs on the server. [*]ECMAScript (JS) runs on the browser. [*]HTML is interpreted by the browser to render the display. [*]There is no 'hidden' communication channel between …

Member Avatar for diafol
0
248
Member Avatar for Zembu

[QUOTE=Zembu;923939]... [operating systems] multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect ...[/QUOTE] It's been a while since I looked at this. I'll skip the 'irrelevant' items. [list][*]rdisk should be the BIOS disk drive ID, counting from zero (0). [*]partition should be the partition number, counting from …

Member Avatar for sknake
0
141
Member Avatar for spike2me

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 different PS in the system. Try unplugging and reseating every connector you can find (with …

Member Avatar for Rik_
0
150
Member Avatar for Toxikr3

[QUOTE=Toxikr3;918199]...Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by) VALUES ('Toxikr3' , 'moderator')' at line 1[/QUOTE] Re-read the quoted part above, then read the table of reserved words in the MySQL manual. …

Member Avatar for Toxikr3
0
145
Member Avatar for Erek4

[QUOTE=Erek4;914503]Ladies/Gents, I am creating a website just for fun and wanted to add video clips from different movies. Is this legal? Are there any legal ramifications to this? I.E. Top ten list of scariest momemts from various classic movies, etc. At your convience.[/QUOTE] If you write a 'scholarly document' that …

Member Avatar for Fest3er
0
173
Member Avatar for EvilOrange

[code=php]<?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 array $d = $c[1][2]; // Extract a sub-array from the array $e = $c[2]; …

Member Avatar for ShawnCplus
0
633
Member Avatar for daprezjer

[QUOTE=daprezjer;912096]Pretty new at shell scripting. My server was hacked and instances of links for viagra were placed in it. I have lots of sites, so I need to search for all instances of "viagra" and list the files, so I can go remove the intrusions. Can this be done using …

Member Avatar for Fest3er
0
116
Member Avatar for Jintu

To provide a useful answer:[list][*]use [noparse][code] and [/code][/noparse] 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 code is properly indented[*]always use {} pairs around code blocks (while loops, if/else statements, …

Member Avatar for dalefish
0
128
Member Avatar for TeamUSA

If you are using unix/linux or cygwin on winders, use the strings() command, as in[code]strings filename.bin[/code]This command extracts every sequence of printable characters followed by an unprintable character. Exercises for the student include working with multi-byte character strings, calling the strings command from within perl, and searching for equivalent functionality …

Member Avatar for Fest3er
0
110
Member Avatar for scotddn1

[QUOTE=scotddn1;891346][CODE]$dgs = new IO::Socket::INET(LocalPort => $lisport, Proto => 'udp') or die "Socket: $!\n";[/CODE] I have a perl script that I want to run on tomato firmware router using the current shell scripting that it supports How would I do the above in shell? In perl you have to use IO:Socket.[/QUOTE] …

Member Avatar for Salem
0
164
Member Avatar for Fest3er

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 before it'd work correctly, but the drop-down menus worked.) In the past week or so, …

Member Avatar for Fest3er
0
201
Member Avatar for peterv6

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 loop. (Geez I love using ancient terminology!) Oh, and off-topic,[quote]Why do Daniweb moderators …

Member Avatar for kireol
0
111
Member Avatar for cee_karthi

Two strong clues:[list][*]Browser: [url=http://www.getfirefox.com/]Firefox[/url][*]ECMAScript debugger: [url=http://www.getfirebug.com/]Firebug[/url][/list] Firebug will let you see/examine the HTML generated by ECMAScript (also known as Javascript); you may have to run the HTML through tidy() to make it readable. I think this is what you are attempting to do.

Member Avatar for Fest3er
0
82
Member Avatar for shawnk

[QUOTE=shawnk;893176][code]... /usr/bin/df -g | grep -i /bp1db01_bk|awk '{sub (/%/, "", $7); print $7" "$4}' > fs_usage ...[/code][/QUOTE] Adding a sub() statement to your awk code that deletes the % from the df() output should work. The above syntax [i]should[/i] work on your system (AIX & Pains or Solaris?); I'm still …

Member Avatar for shawnk
0
2K
Member Avatar for Codesearcher

[QUOTE=sknake;892327]What is a box character? [] is two characters and unix uses character 10 for a new line (\n), windows uses character 13 + character 10 for a line (\r\n).[/QUOTE] A box character is one that Windows and other systems render as a box because that character does not have …

Member Avatar for msvinaykumar
0
152
Member Avatar for CaptainColossal

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 trying all manner of stuff and reading the Oreilly JS book; it's easier to learn …

Member Avatar for Airshow
0
136
Member Avatar for Suraj Nayak

[QUOTE=Suraj Nayak;891836]Hello, Can anyone please explain role of binary in computer?[/QUOTE] 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 ON and OFF, or HIGH and …

Member Avatar for darkphotn
0
148
Member Avatar for Makoshark55

[QUOTE=Atli;889047]... Your INSERT query worries me. It's rarely a good thing when you have to dynamically insert field names into queries. Suggests a poor table structure. ...[/QUOTE] There are several reasons I use the '... SET col=name ...' syntax: [list] [*]When written with good spacing, the source code is much …

Member Avatar for Atli
0
167
Member Avatar for rconn

[QUOTE=rconn;883569]Anyhelp with code below would be greatly appreciated ...[code] 43. if ($mysql->query ($query)) { 44. if (mysql_result ($result, 0) > 0) { [/code][/QUOTE] Do you need to assign the result of the query to $result before you can use the result?

Member Avatar for Tulsa
0
175
Member Avatar for rolinski

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... [QUOTE=rolinski;886480]$name = "($field[0])\t$field[1]";[/QUOTE]

Member Avatar for KevinADC
0
313
Member Avatar for Fasola

I would say the strongest clue to the answer is three-fold:[list][*]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 future[/list] You and others will thank you when looking at the code years later. I remember one talented …

Member Avatar for Fest3er
0
733
Member Avatar for scottyscotty19

[QUOTE=scottyscotty19;877618]hi. Does this command (tar cvf /usr/local/bin) create a tape achieve in /usr/local and then copies all the files and directories that are in the /bin directory into the tape archive that is stored in /usr/local? If not then how does it work? I have looked around the internet and …

Member Avatar for versatileint
0
366
Member Avatar for chknabeel

Replace[ICODE]<?php $myarr=json_encode($pr); ?>[/ICODE]with[ICODE]<?php $myarr=(str_replace("\\/", "/", json_encode($pr); ?>[/ICODE]provided there are no other occurrences of "\/" in the converted array. Recently, I sort-of had to deal with this myself, as I was writing an ECMAScript program that required I convert arrays and objects to plain strings and back. (For reference, see [url=http://murent.us/misc/swe3/escript.html]my …

Member Avatar for chknabeel
0
151

The End.