Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I know, by using protected or private, we can limit the visibility of a member in a class. But I'm curious about the purpose of doing so. Calling a class name($a = new class B) doesn't make its members global. So, why still need to protect its members?
For low coupling and high cohesion
Please check below:
http://www.hokstad.com/why-coupling-is-always-bad-cohesion-vs-coupling
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
I need to know how to create the link to the user in telegram......
Like
Name:- $name
Username:- $username
Your id:- $userid
Link:- (what to write here)
Any one please help me to solve this.
Messages in Telegram are utilizing Markdown. So you can link to a user by id with
[John Doe](tg://user?id=12345678)
So to link to the same user anywhere else use
tg://user?id=12345678
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
$b=number_format($number[12],2);
$sql01=mysql_query("UPDATE t_maindbfordashboard SET valueVar=".$a." WHERE managementName=dds");
I am absolutely sure that there are no problems connecting to the database or such. This query works when I try "SELECT * FROM tableName". Where do you think I'm making a mistake?
Ask if you need more help, and side note be careful with the sql, yours can be injected.
$b=number_format($number[12],2);
$sql01= $MysqliHandler->prepare('UPDATE t_maindbfordashboard SET valueVar=? WHERE managementName="dds"');
$sql01->bind_param('s', $b); //you typed $a here but where is that value from? guess its $b?
$sql01->execute();
$sql01->close();
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I have coded a web directory that uses GET to generate all pages of information from a database. Is it possible for these pages to be indexed individually by a search engine?
Yes. If you can link directly to it, then a search engine can index it (unless you take other steps to explicitly exclude them).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
Why can you only call private methods in a constructor?
I'm getting an error that "until the initialization of $this has completed, only private methods may be used".
Surprisingly there didn't seem to be any google results for the error message, or anything about doing function __construct() { $this->publicMethod(); } in the PHP docs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
may seem to be a small question but can any one tell me what is this strip on the top called?
The one above the heading and below the menu and has a navigation arrow on the left and right... what to use to make it
http://arabia.msn.com/news/entertainment/entertainment-music/1112010/britney-spears-splits-from-fiance/
It's a simple script that called
jCarousel. More examples here
What you're looking for is called a slider or image gallery. Do a search "jQuery image slider" and you'll find a ton