ShawnCplus 456 Code Monkey Team Colleague

Depending on whether you are Linux or windows. Windows has the WAMP stack www.wampserver.com/en/ if you are Linux there is the LAMP stack http://www.mysql-apache-php.com/

majestic0110 commented: great help, polite and enthusiastic! +1
ShawnCplus 456 Code Monkey Team Colleague

Make sure you're surrounding your values with quotes or it could create malformed HTML

ShawnCplus 456 Code Monkey Team Colleague

Well a label tag works in this way

<label for="test">Test:</label>
<input type="radio" name="test" />

You place your label's target outside of the label tags

ShawnCplus 456 Code Monkey Team Colleague

OSCommerce is an open source e-commerce platform. While I support open source in almost every aspect, dealing with clients' credit cards I do not, since open source is just that open source which means anyone can find holes in the system.

http://www.oscommerce.com

ShawnCplus 456 Code Monkey Team Colleague

To put it in extremely simple terms and in more detail than I could http://www.redmelon.net/tstme/box_model/
Move the perspective slider all the way to the right to make it a bit more clear.

ShawnCplus 456 Code Monkey Team Colleague

You would need to look to the Apache documentation for that which would most likely be on http://httpd.apache.org/docs/

ShawnCplus 456 Code Monkey Team Colleague
ShawnCplus 456 Code Monkey Team Colleague

Invisal, that would be all well and good if that was the only occurance.

Firstly, you are trying to calculate before you have any values in your variables. Steps go as follows:
Define
Initialize (set values)
Calculation
Output

NOT

Define
Calculate
Initialize
Output

Also, take a gander at your nearest reading material on when and where you should open code blocks with braces. cout is not one of those times. However, if and else if/else are. However(that's redundant, I don't care), if there is only one operation after the clause (if/else if/else) then braces are unnecessary.

if(1 = 1) cout << "1 = 1"; //doesn't need braces
if(1 = 1)
{
   cout << "This needs braces";
   cout<< " 1 = 1"; //DOES require braces
}
ShawnCplus 456 Code Monkey Team Colleague

Well what are the errors, that's like taking your car into a shop and saying, "Something's wrong". Aside from the seemingly random placement of braces.

ShawnCplus 456 Code Monkey Team Colleague

There is much debate over modal design in web development so don't go hog wild and pop up a modal form for everything since it will quickly frustrate your users.

ShawnCplus 456 Code Monkey Team Colleague

It's called a lighbox. Doing a google search for lightbox will pop up countless results though the best is probably this one http://www.huddletogether.com/projects/lightbox/

ShawnCplus 456 Code Monkey Team Colleague

Heh, that was his signature, his reply was the link to the ActiveX tutorial

^^^ Post

vvvv Signature

ShawnCplus 456 Code Monkey Team Colleague

The only thing I can tell is that the second function is suppressing warnings/errors when it opens a directory with the @ $dh = @opendir( $path ); as opposed to $dir = opendir( $directory ); .

ShawnCplus 456 Code Monkey Team Colleague

The password protection is most likely coming from an apache directive. Refer to the documentation which most likely explains it.

ShawnCplus 456 Code Monkey Team Colleague

OK, if a system lacks a network connection why the heck would it be using a program or programming something that is supposed to connect to the internet anyway. That was an extremely strange comment.

ShawnCplus 456 Code Monkey Team Colleague

Well first and foremost I wouldn't consider MySpace the best place for a professional business website. However, you don't need any programs to style MySpace it just involves taking hold of the already available classes or using exact selectors ie., a[href^="/blah"]{color:red} sets all links that link to a page beginning with /blah to be red

ShawnCplus 456 Code Monkey Team Colleague

Please elaborate on "does not work", does it give errors or just not print anything?

ShawnCplus 456 Code Monkey Team Colleague

Yes, the two most common dev platforms are the WAMP(Windows, Apache, MySQL, PHP) and LAMP(Linux, Apache, MySQL, PHP) stacks. If you are using Windows, as nav33n said, you would want the WAMP stack.

ShawnCplus 456 Code Monkey Team Colleague

I would like to add two things, simple sockets and simple multi-threading, the latter of which is already in discussion. Sockets in C++ are a nightmare whereas in Java it's Socket mySocket = new Socket(3000); and bam, you have a socket.

ShawnCplus 456 Code Monkey Team Colleague

Well mailto links launch the viewer's default email client. It doesn't actually send an email, you would need an emailer in PHP such as the one in the PEAR package for example if you would like an email form.

ShawnCplus 456 Code Monkey Team Colleague

It is done with the title attribute with the link

<a href="blah.com" title="This is blah" >blah</a>

Will show This is blah when hovering over the link

ShawnCplus 456 Code Monkey Team Colleague
ShawnCplus 456 Code Monkey Team Colleague

a text box that is hidden with CSS is not a hidden form field. Semantically, obviously, but technically, no.

ShawnCplus 456 Code Monkey Team Colleague
<input type="hidden" id="txarea" value="something here" />
ShawnCplus 456 Code Monkey Team Colleague

Because private is a keyword in PHP. Also, when using a variable inside brackets is also requires the $.

ShawnCplus 456 Code Monkey Team Colleague

Especially with Apache directives like AddType and AddHandler, you can assign custom extensions.

AddType application/x-httpd-php .sos
AddHandler x-httpd-php .sos
ShawnCplus 456 Code Monkey Team Colleague

I refer you to the php manual on persistent connections. us3.php.net/manual/en/features.persistent-connections.php

ShawnCplus 456 Code Monkey Team Colleague

Hmmm, if the markings are on the display cover it might have damaged a component of the screen, however I have very limited experience in repairing LCD screens short of replacement.

ShawnCplus 456 Code Monkey Team Colleague

Well you said he dropped it so there might have been some damage to the motherboard, how extensive is the case damage?

ShawnCplus 456 Code Monkey Team Colleague

Refer to this post for my explanation on network blocks http://www.daniweb.com/forums/post397414.html#post397414
Regarding the laptop, have you checked the memory?

ShawnCplus 456 Code Monkey Team Colleague

If you are a teacher then you should at least know the procedures to get a site unblocked. Especially a site that is in no way illicit. Speak with your network administrator preferably the superintendent as well. There is absolutely no reason to block this site, especially in a learning environment.

Anyway, does it POST? If so, are there any POST codes or beep codes? Once again, if so, which chipset are you using?

ShawnCplus 456 Code Monkey Team Colleague

You can't really interact with a database with JavaScript but PHP can do it quite easily. Read up a bit on PHP and you'll find that the task is quite simple.

ShawnCplus 456 Code Monkey Team Colleague

You must use the $ with the variable inside the brackets or it wont work echo $arr[$data_01] If you are only echoing variables then you don't need quotes.

Also $array_test = array("$data1","$data2","$data3"); You don't need quotes around the variables, in fact I think it will yell at you if you use them.

ShawnCplus 456 Code Monkey Team Colleague

It's definitely possible, use the syntax nav33n used.

ShawnCplus 456 Code Monkey Team Colleague

It's impossible to get data from a database with only HTML/DHTML. If they expect you to then they should be fired. HTML is a completely static language. There are no facilities of a programming language aside from Server Side Includes.

ShawnCplus 456 Code Monkey Team Colleague

case statements are followed by a colon, not a semicolon. case '82';{ should be case '82':{ The same goes for the others

ShawnCplus 456 Code Monkey Team Colleague

Well Ruby on Rails is a completely separate framework from PHP. It's pretty much one or the other when you work with it as far as I know.

ShawnCplus 456 Code Monkey Team Colleague

OK, you originally wanted your key length to match your string length. To do that you need to keep repeating the key until it matches the length of the target string. This is why the outer loops has added to it the length of the key each time the loop iterates.

ShawnCplus 456 Code Monkey Team Colleague

Because each increment the length of the key is added to i. This makes it so the key string doesn't become longer than the string to be encrypted.

The loop will keep going until it has a key length equal to the string length (in theory)

And the += operator was just an example of concatenation. If you are using char arrays then that wont concatenate, it'll give you weird characters since it's adding the ASCII values together.

ShawnCplus 456 Code Monkey Team Colleague

Well it looks like the Vigenere cipher, am I correct?
You would need two loops. The outer one monitoring the overall length of the string. The inner loop monitoring the length of the key.

Pseudocode

string key = "blah"
string input = "my string"
string cipherstring = ""
for(i=0;i<input.length;i+=key.length)
{
  for(k=0;k<key.length;k++)
 {
    cipherstring += key[k] //concatenate
 }
}

I believe that should work.

ShawnCplus 456 Code Monkey Team Colleague
var blah = document.getElementById(<textbox id>);
if(blah.value == "")
  alert("blah is empty");
ShawnCplus 456 Code Monkey Team Colleague

Being able to see the page or any of the CSS would help just a bit.

ShawnCplus 456 Code Monkey Team Colleague

Well that's more of a PHP thing, not so much with JavaScript. You can't do alot(anything?) in Javascript to interact with a database.

ShawnCplus 456 Code Monkey Team Colleague

You are getting that error because HFONT hf = CreateFontIndirect(&lf); is defined inside of the DoSelectFont function, trying to call it in DrawMessage returns an error because it doesn't exist in that scope.

ShawnCplus 456 Code Monkey Team Colleague

In your second attempt you are using Serial in your WHERE clause which is an ambiguous field. So just pick a table and use that as the parent to the field. IE., tblQuotes.Serial

ShawnCplus 456 Code Monkey Team Colleague

Well aside from the fact that it is syntactically incorrect. You aren't terminating the php blocks when you echo. Remember to end them with ?>. Aside from that, when you get the results find the number of results with mysql_num_rows then do a loop.

ShawnCplus 456 Code Monkey Team Colleague

It depends on what you want to do with that particular operation. You might need a string or you could just use modulus.

ShawnCplus 456 Code Monkey Team Colleague

substr() isn't a member function of an int. An int is a primitive, not a class. Also, you can't really call a substring on an integer.

ShawnCplus 456 Code Monkey Team Colleague

Aside from the fact that you dont give the length and boolean variables types, using reserved words and variable names and using an int function to return a boolean?

ShawnCplus 456 Code Monkey Team Colleague

You can replace all of that repetitive superfluity with that one line( extract($row); ).

What extract does is take all of the first level elements of the array and creates variables out of them. IE.

Array // lets call the array TestArray
(
    'Test' => 'Blah'
)

extract($TestArray);
echo $Test; // Would print 'Blah'