Search found 31 matches

Return to advanced search

Re: PhP help please

Nostalgiia - your if statement is defining your variables all over again, if all you want to do is echo the $total, take out the if completely, because any time it evaluates to false, your echo will not be hit because it immediately follows the if. If you want to make sure your variables are equal t...
by Sector
on Wed Nov 24, 2010 5:11 pm
 
Forum: Programming
Topic: PhP help please
Comments: 19
Views: 5570

Re: PhP help please

Good point thetan. My dreadful logic out of the way, I can't see that if statement being on purpose.
by Sector
on Tue Nov 23, 2010 3:26 pm
 
Forum: Programming
Topic: PhP help please
Comments: 19
Views: 5570

Re: PhP help please

if ( $p=$_POST["principal"] && $i=($_POST["inrate"]/100) && $t=$_POST["time"] && $n=365 && $a=(1 + ($i/365)) && $b=($n*$t) && $total=$p*(pow($a, $b)) ) echo round($total, 2, PHP_ROUND_HALF_UP) From...
by Sector
on Tue Nov 23, 2010 3:11 pm
 
Forum: Programming
Topic: PhP help please
Comments: 19
Views: 5570

Re: Friday's Lecture On 9/17...

Considering it was the first lecture, and it was mentioned beforehand that it was not going to be specific to one topic, I think it went rather well. A number pennies dropped for me this evening just listening to the guys who were doing most of the speaking, and after Goatboy's talk on forensics, my...
by Sector
on Sat Sep 18, 2010 12:51 am
 
Forum: Lectures
Topic: 9/17 LECTURE: SSH, Computer Forensics, En/Decryption
Comments: 35
Views: 81626

Re: New to c#

I think ive found 'The break' when you input the data the variables effect the output so i used 12, 4 and -7000 which gave out negative values for the ceiling the shortest wall, the total area and the volume i think that you could have used an if statment after the data is entered to make sure that...
by Sector
on Fri Sep 17, 2010 11:47 am
 
Forum: C and C++
Topic: New to c#
Comments: 10
Views: 9876

Re: RSA / IP Expo

Myself and the other devs I work with / for got signed up to go to the RSA one on the 13th or 14th by our CEO. I can't quite remember which one - I'll have to check when I get in office tomorrow.

Which are you heading to?
by Sector
on Thu Sep 16, 2010 7:12 pm
 
Forum: Off-Topic
Topic: RSA / IP Expo
Comments: 2
Views: 2590

Re: New to c#

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace area_calc { class Program { static void Main(string[] args) { #region :: Variables :: // wall variables double wallHeight, shortWallWidth, longWallWidth; // ceilin...
by Sector
on Wed Sep 08, 2010 2:50 pm
 
Forum: C and C++
Topic: New to c#
Comments: 10
Views: 9876

Re: Biblical marriage shocking

.. didnt mean to come across wrong or anything. Like I said, I understand what you're saying, and agree with a lot of it - so you're not coming across as wrong. Further to what I was saying before, it is not only those who believe in a cosmic, jewish zombie that have views that lean towards the ext...
by Sector
on Wed Sep 08, 2010 1:39 pm
 
Forum: Religion
Topic: Biblical marriage shocking
Comments: 20
Views: 43416

Re: Biblical marriage shocking

...there are people out there that read and do what the bible says, not what some guy in the vatican instructs, only way to know for sure is to read the bible and know whats being said yourself, after all thats what people did in bible times, just got to follow by example. While I think I understan...
by Sector
on Wed Sep 08, 2010 7:04 am
 
Forum: Religion
Topic: Biblical marriage shocking
Comments: 20
Views: 43416

Re: Do you use a whiteboard?

I do think too though that (<----tongue twister?) It took me a few tries to even read that correctly, never mind say it. Your powers of alliteration have been my undoing. being able to write or draw things out on a large board so you can step back and look at it would probably have benefits as w...
by Sector
on Wed Sep 08, 2010 6:35 am
 
Forum: Programming
Topic: Do you use a whiteboard?
Comments: 34
Views: 10222
Next

Return to advanced search