Shanti C 106 Posting Virtuoso

peace [Peace is also a silent weapon in india and most powerful.]

favurite Andriod OS version ? :P

Shanti C 106 Posting Virtuoso

The only thing that will make you happy is being happy with who you are, and not who people think you are.

Shanti C 106 Posting Virtuoso

eating my friend's brain.. :)

<M/> commented: YOU ATE EINSTEIN! +0
Shanti C 106 Posting Virtuoso

A moment of patience in a moment of anger
saves a thousand moments of regret.

Shanti C 106 Posting Virtuoso

In order to succeed, your desire for success should be greater than your fear of failure.

harinath_2007 commented: awesome..fact.. +0
Shanti C 106 Posting Virtuoso

Hey, You can easily develop this by using simple javascript, See the below example :

<html>
<head>
<script type="text/javascript">
function ShowRemainingForm(id)
{
if(id==0)
{ 
document.getElementById("inside").style.display="block";
document.getElementById("outside").style.display="none";
}
else
{
document.getElementById("outside").style.display="block";
document.getElementById("inside").style.display="none";
}

}
</script>
</head>

<body>
<form action="" method="post" name="form">
<p>Indoor or Outdoor : 
<select name='in_or_out'onchange="ShowRemainingForm(this.value)">
<option value=''>Select one</option>
<option name="inside" value="0">Inside</option>
<option name="outside" value="1">Outside</option>
</select>
</p>
<br>
<div id="inside" style="display: none">
You have selected inside :
<select name="applicationIN" >
<option value="opt1">opt1</option>
<option value="opt2">opt2</option>
<option value="opt3">opt3</option>
</select>
</div>
<div id="outside" style="display: none">
You have selected outside :
<select name="application" >
<option value="opt1">opt1</option>
<option value="opt2">opt2</option>

</select>
</div>
<br />
<input type="submit" name="submit" value="Submit">
</body>

You should learn Javascript : http://www.w3schools.com/js/

Thanks,
Shanti.

mikulucky commented: Yeah js is a must to learn +2
Shanti C 106 Posting Virtuoso

It has been my observation that most people get ahead during the time that others waste.
- Henry Ford

wenbnet commented: nice +0
Shanti C 106 Posting Virtuoso

"What lies behind us, and what lies before us are small matters compared to what lies within us."
- Ralph Waldo Emerson

wenbnet commented: That's True +0
Shanti C 106 Posting Virtuoso

One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man.

Elbert Hubbard

wenbnet commented: nice quote +0
Shanti C 106 Posting Virtuoso

558 plz refresh the page before post

wenbnet commented: yap.. +0
Shanti C 106 Posting Virtuoso

Difference between playing to win and playing not to lose is the difference between success and mediocrity.

wenbnet commented: nice quote +0
Shanti C 106 Posting Virtuoso

Try like this :

echo "<b>".$cd->item($i)->nodeName.":</b>";

or

$val=$cd->item($i)->nodeName;
echo "<b>".$val.":</b>";

karthik_ppts commented: yes +5
Shanti C 106 Posting Virtuoso

check for the $id value , whether it is there(db table) or not.
And also remove single quotes for index here :

WHERE 'index'='$id'

if still eror:
print your query like :

echo $qry="UPDATE tblinfo SET idno='$idno', name='$name', address='$address', birthdate='$birthdate', contact='$contact', email='$email' WHERE 'index'='$id'";
$result=mysql_query($qry);

Try to excute the printed query in PHPMyAdmin,check what error comes.

Shanti C 106 Posting Virtuoso

After your update query redirect your page to main page.
So you have to include this line after your query line (line no : 23):

header("Location: main.php");

If this in not your requirement, Please be more specific.

karthik_ppts commented: Yes +5
Shanti C 106 Posting Virtuoso

you have missed semicolon in line 31.

karthik_ppts commented: good spot +5
Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
- Bill Gates

Shanti C 106 Posting Virtuoso

HTML - is not a programming language, it is a markup language.
you should have a basic understanding of HTMl before you learn CSS.
CSS - CSS stands for Cascading Style Sheets, Styles define how to display HTML elements.
you should have a basic understanding of HTMl before you learn PHP.
PHP is a powerful tool for making dynamic and interactive Web pages.

Finally you should learn all of the above to become a good web developer.

check this for more details:
http://www.thesitewizard.com/html-tutorial/what-is-html.shtml

Shanti C 106 Posting Virtuoso

It is so simple to be Difficult but so difficult to be Simple .

Shanti C 106 Posting Virtuoso

You do not really understand something unless you can explain it to your grandmother.
- Albert Einstein

Shanti C 106 Posting Virtuoso

Procrastination is like a credit card, fun until get the bill.

iamthwee commented: nice +0
Shanti C 106 Posting Virtuoso

Well , me historical hero is Annamayya.
His full name is Sri Tallapaka Annamacharya from INDIA.
He was the official songmaster of the Tirumala Venkateswara Temple.
He was one of the first few who opposed the social stigma towards the untouchable castes in his era,with his sankeertanas explaining that the relationship between God and human is the same irrespective of the latters' color, caste and financial status.
His choice of words gives a mellifluous tone to his songs, charming the listener. His prodigious literary career earned him a place among the all-time greats of Telugu literature.

Shanti C 106 Posting Virtuoso

another problem is that if quotation marks exist in the comment, the comment doesn't get stored in the database.

for this use addslashes($str);

Shanti C 106 Posting Virtuoso
SELECT * FROM SUM(Price) FROM table_name;
Shanti C 106 Posting Virtuoso

change your line to:

echo "<input type='checkbox' name='results'>" . $result . "";

and then validate like this :

var total=0;
for(var i=0; i < document.form1.results.length; i++){
if(document.form1.results[i].checked)
total =total+1;
}
if(total!=document.form1.results.length)
alert("Please select all")
Shanti C 106 Posting Virtuoso

Your work is to discover your work and then with all your heart to give yourself to it.
- Buddha

Shanti C 106 Posting Virtuoso

Team work divides the task and multiplies the success.

Shanti C 106 Posting Virtuoso

use update query to replace that string.
Assume photos is your table and imageurl is your field..
Take backup of your table before update all these..
try this:

update photos set imageurl = replace(imageurl,'http://domain.com/','')

If you dont' want to update in your database..
then try some php string functions str_ireplace() to replace that string in image path..

Shanti C 106 Posting Virtuoso

just intialize a session with username and logincounter like $_SESSION and $_SESSION
for every try increment the logincounter session for the same username..
if its greater than 3 then dont' allow for login..

or post your code, we will check it out..

Shanti C 106 Posting Virtuoso

use sessions to do login and logout pages.. and contact display page only for logged in members..

rajesh1158 commented: correctly said +1
Shanti C 106 Posting Virtuoso

Ok...Welcome....

theimben commented: Thanks :) +2
Shanti C 106 Posting Virtuoso

i generally used img tag to send images through my mail function...it gives me no error at all....if you know any other fancy ideas,post here for all daniweb members..

thanks omnix

star-whiz commented: Good Conversation Firend!!!!! +1
Shanti C 106 Posting Virtuoso

Champions are made , not born....

bumsfeld commented: a good one +6
Shanti C 106 Posting Virtuoso

yes, in POST variable are stored in a array called $_POST...so we can retrieve them with key like $_POST; or $_POST; or some thing...No matter of order...
or As adilkhan said,try to print print_r($_POST);...

FlashCreations commented: Thanks for the Help!!! +1
Shanti C 106 Posting Virtuoso

try onKeyup() or onkeyPress()

wickedsunny commented: ur answers are really gud +1
Shanti C 106 Posting Virtuoso

means , you want to write some thing in that mail...Right????
if so,
see this..

$mail_body='<style type=text/css><!--td {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}--></style>
<table width="50%"  border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#E7E7E7">
  <tr><td>[B]Do your design here...[/B]</td></tr>
</table>';

mailto = 'some@some.com' ;	
	
	$mailheader  = 'MIME-Version: 1.0' . "\r\n";
	$mailheader .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";	
	$mailheader.=" From: someone\r\n";
	$mailheader .= 'BCc:some2@some.com' . "\r\n";
	@mail($mailto,' Details',$mail_body,$mailheader);
OmniX commented: Nice code Shanti, Thankyou! +1
Shanti C 106 Posting Virtuoso

A programmer , who is coding the particular job ,which already designed. A developer developes the whole thing from analysing, then designing,code it and then test the same.

R0bb0b commented: That's a good definition +2
Shanti C 106 Posting Virtuoso

see this code...it will print only clicked checkboxes..

foreach($_POST['checkbox'] as $key=>$val){
  echo "key: ". $key. " value: ". $val ."<br />\n";
  echo $_POST['checkbox'][0];

and this is for storing in sessions:

session_start();
 if($_SERVER['REQUEST_METHOD']=='POST')
{
foreach($_POST['checkbox'] as $key=>$val){
  echo "key: ". $key. " value: ". $val ."<br />\n";
  session_register(); 
  //$_SESSION['checked'] = array();
  
 
}
$_SESSION['checked']=$_POST['checkbox'];
 foreach ($_SESSION['checked'] as $key=>$value) {
     echo 'The value of $_SESSION['."'".$key."'".'] is '."'".$value."'".' <br />';

     }
}
OmniX commented: Nice coded comment. Thankyou. +1
Shanti C 106 Posting Virtuoso

hello..
that is CAPTCHA ..means creating dynamic number on an image...
It is used to prevent spam abuse on the websites
For more information:
http://www.webcheatsheet.com/PHP/create_captcha_protection.php

OmniX commented: Very useful and informative information. +1
Shanti C 106 Posting Virtuoso

desc is a keyword,
so change that name to any like desc1...
and try...

rickya100 commented: Thanks for the quick reply. Solved +1
Shanti C 106 Posting Virtuoso

hello nikesh...

that image having a back ground image is same for all...
and the text (name,posts,solved threads) will coming from database and also an image of ours(avatar)...
i think nothing hard to do this....

nikesh.yadav commented: nice helper, great hardworker ..... you are +1
Shanti C 106 Posting Virtuoso
select * from tablename;

this statement will print all the columns, not the matter of null or empty..

debasisdas commented: agree +13
Shanti C 106 Posting Virtuoso

Be intelligent, But Don't try to cheat...
Be innocent, But Don't get cheated..

sneekula commented: very smart and wise +4
Shanti C 106 Posting Virtuoso

Welcome...

Shanti C 106 Posting Virtuoso

1.A NULL value represents the absence of a value for a record in a field (others softwares call it also a missing value).

2.An empty value is a "field-formatted" value with no significant data in it.

3.NULL isn't allocated any memory, the string with NUll value is just a pointer which is pointing to nowhere in memory. however, Empty IS allocated to a memory location, although the value stored in the memory is "".

4.Null has no bounds, it can be used for string, integer, date, etc. fields in a database. Empty string is just regarding a string; it's a string like 'asdfasdf' is, but is just has no length. If you have no value for a field, use null, not an empty string.

5.Null is the database's determination of an absense of a value logically, so to speak. You can query like: where FIELD_NAME is NULL

Shanti C 106 Posting Virtuoso

i think this code will help you...

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>

<script>
function generateRow() {

var d=document.getElementById("div");
d.innerHTML+="<p><input type='text' name='food'>";

}

</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input name="food" type="text" id="food" />
</label>
<p>
<input name="food" type="text" id="food" />
</p>
<p>
<input name="food" type="text" id="food" />
</p>
<div id="div"></div>
<p><input type="button" value="Add" onclick="generateRow()"/></p>
<p>
<label>
<input type="submit" name="Submit" value="Submit" />
</label>
</p>
</form>
</body>
</html>
Shanti C 106 Posting Virtuoso

yes,... scru is damn right...
kavitha,keep that point in your mind...

Kavitha Butchi commented: sure shanthi :) +1
Shanti C 106 Posting Virtuoso

first you have to gather all checked check boxes...
see this will help you..
http://www.tizag.com/mysqlTutorial/mysqltables.php

ask me any doubt...

saikishore commented: nice performance +1
Shanti C 106 Posting Virtuoso

The require() function is identical to include(), except that it handles errors differently.

The include() function generates a warning (but the script will continue execution) while the require() function generates a fatal error (and the script execution will stop after the error).

check this :
http://www.tizag.com/phpT/require.php

rati commented: good undertanding about php +2
Shanti C 106 Posting Virtuoso

hello see this article is really nice:
http://info.ssl.com/article.aspx?id=10068
http://webdesign.about.com/od/ecommerce/a/aa070407.htm
And keep in mind:
->encode and decode your passwords perfectly..
->be careful about using trusted payment gateways...
->be away of sql injections..

Kavitha Butchi commented: thnk you Shanthi :). Found those links very helpful. +1