Search found 105 matches

by aditya2071990
Fri Aug 21, 2009 7:57 am
Forum: PHP - Theory and Design
Topic: Why use __construct?
Replies: 15
Views: 3482

Re: Why use __construct?

OMG, that was sooo gigantic!!!

I'm sorry I'm laughing at such a serious matter, but a very small question from me led to such a great scholarly debate and discussion! I love this board :D
by aditya2071990
Thu Aug 20, 2009 10:24 pm
Forum: PHP - Theory and Design
Topic: Why use __construct?
Replies: 15
Views: 3482

Re: Why use __construct?

How could the employee class have been improperly initialized?
by aditya2071990
Wed Aug 12, 2009 9:40 am
Forum: PHP - Theory and Design
Topic: Why use __construct?
Replies: 15
Views: 3482

Re: Why use __construct?

Thanks! I overlooked the fact that constructors aren't for simple value assignment, and that you can make stuff happen without actually having to call a method... :)
by aditya2071990
Wed Aug 12, 2009 1:54 am
Forum: PHP - Theory and Design
Topic: Why use __construct?
Replies: 15
Views: 3482

Why use __construct?

If I can instantiate an object and set a property's value using $this, then why use constructors? Look at this:   class employee {     public $salary;         function __construct($salary)     {         $this->salary = $salary;     } }   In another file,   $employee=new employee('10,000');   Why go ...
by aditya2071990
Wed May 27, 2009 2:28 pm
Forum: PHP - Code
Topic: Need Help with Code
Replies: 5
Views: 192

Re: Need Help with Code

I'm sorry dude, I just wanted to follow up later, and I forgot to come back and look at what you wrote...

The mods bashed me up for that post, hope you didn't mind :)
by aditya2071990
Wed May 27, 2009 3:55 am
Forum: PHP - Code
Topic: Need Help with Code
Replies: 5
Views: 192

Re: Need Help with Code

Nope, no sense
by aditya2071990
Sun May 10, 2009 11:02 am
Forum: PHP - Code
Topic: how to create a discussion forum using php and my sql
Replies: 6
Views: 554

Re: how to create a discussion forum using php and my sql

http://www.google.com/#hl=en&q=free+for ... y0_Tod3DXA

That's a load of free PHP discussion boards, Swathi, they will eradicate the need for you to code a new discussion board all over again...
by aditya2071990
Fri May 08, 2009 4:49 am
Forum: PHP - Code
Topic: an issue with the drop down
Replies: 1
Views: 114

Re: an issue with the drop down

Actually, you don't need PHP for doing that, you can do it with javascript. Heck, you can simply use jquery! Code in all the options and use hide() function on the district and pincode, then, depending on what the user has selected, simply use the show() function... jQuery is very easy to learn, if ...
by aditya2071990
Sun Mar 22, 2009 3:27 pm
Forum: PHP - Code
Topic: Is it possible to combine two sql queries?
Replies: 4
Views: 291

Re: Is it possible to combine two sql queries?

What exactly are you trying to do with those queries?
by aditya2071990
Sun Mar 22, 2009 2:45 pm
Forum: PHP - Code
Topic: displayin results of sql query
Replies: 1
Views: 151

Re: displayin results of sql query

You can refer to the data inside $row like this: $row['Person_name'], so statements like   echo '<td>Name of the Person:'.$row['Person_name'].'</td>';   should do the trick... and because the statement is in a while loop, all your data will be displayed in whatever html format you write...
by aditya2071990
Sun Mar 22, 2009 2:40 pm
Forum: PHP - Code
Topic: Get global array issue
Replies: 1
Views: 176

Re: Get global array issue

Maybe the condition wasn't supposed to be there at all in this file, and was meant for the register.php file [or] maybe there is some other page that will communicate with this page via the GET method, and the name of the variable it is sending is 'ret' ?
by aditya2071990
Sun Mar 22, 2009 2:36 pm
Forum: PHP - Code
Topic: Is it possible to combine two sql queries?
Replies: 4
Views: 291

Re: Is it possible to combine two sql queries?

No, it is not valid. The arguments you can supply to mysql_query are the query string and the link identifier[the mysql connection to which you are referring to]. You'll have to do the "connecting" part inside the query itself...

http://in.php.net/manual/en/function.mysql-query.php
by aditya2071990
Wed Mar 11, 2009 1:01 am
Forum: Testing
Topic: Is there an open source alternative to Rational App Scan?
Replies: 0
Views: 5907

Is there an open source alternative to Rational App Scan?

IBM prices that software at $6000!!!

So...
by aditya2071990
Sun Mar 08, 2009 1:56 am
Forum: General Discussion
Topic: The search function is sometimes unhelpful...
Replies: 0
Views: 710

The search function is sometimes unhelpful...

I tried to search for "make file" and it says it ain't searching because the terms are too common!!! I don't understand whether I am supposed to laugh or not...
by aditya2071990
Fri Mar 06, 2009 1:39 pm
Forum: PHP - Theory and Design
Topic: Simple question: when can I call my site to have "MVC"?
Replies: 2
Views: 554

Re: Simple question: when can I call my site to have "MVC"?

Thank you for the informative response :) But even you couldn't resist the temptation to use jargon when you said: The model is just that (not strictly the data) -- it's a virtual representation of the problem you are trying to solve. Whether you store your "user" records in a database or ...