Jump to content

Check202

New Members
  • Posts

    3
  • Joined

  • Last visited

Check202's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So it is like this: <html> <title>Title of your webpage</title> <head> <script type="text/javascript"> var newwindow; function poptastic(url){ newwindow=window.open(url,'name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbar s=yes,status=no,resizable=yes,fullscreen=no'); if (window.focus) {newwindow.focus()} } </script> </head> <body> <h1>Click on funky link below and it will pop up in new window</h1> #Note below you have reference to php121 please ensure it is in the same folder as this script. <a href="javascript:poptastic('php121im.php');">Instant Messenger</a> </body> </html> That should work; However I think you are just copy and pasting some code from elsewhere. I suggest some more study.
  2. Being a newbie I'll explain my side: 2000 lines of code; as keeping to simplified thigs like else, if, else if is easier than creating and learning custom functions. I use HTML and PHP as I didn't know there was anything wrong with it? <html> <title>Example</title> <body> <h1>Example</h1> <php Echo "hello world" #insert php script <? </body> </html> What is wrong with this other than my bad syntax and bad spelling? The other points are great. Even I don't do that. I guess because lack of knowledge and/or care of their work?
  3. Hi there, I'm stepping in the deep end here for a first post. Being a newbie and all. Here goes however. I have a form where someone can compare the stats of one troop with another and see the difference. As an example below I've kept it to just two troops to be compared. Table name: Troops Columns: Name: Stat1: Stat2: Stat3 Medtronic 12 20 40 Tank 20 10 34 In the form the user selects Medtronic and Tank and wishes to know the differences in stats. So I have the $Result being Medtronic and Tank but am lost in comparing. Should I after the form have defined arrays? Such as $Medtronic = "[1],[2]" , "[1],[3]" , "[1],[4]" , Such as $Tank = "[2],[2]" , "[2],[3]" , "[2],[4]" , But how do I compare each of these results? I understand a if, else, else if but how to apply this? End result should be like this: You have selected Medtronic VS Tank: Medtronic Stat1 is 8 weaker thank Tank Medtronic stat2 is 10 stronger thank Tank Medtronic stat3 is 6 stronger thank Tank ..... It is the process of comparing a user selected row from a drop down to another row that has me confused. Any help would be greatly appreciated. Thank you heaps
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.