Posts
 
Reputation
Loading chart. Please wait.
Joined
Last Seen
0 Reputation Points
60% Quality Score
Upvotes Received
13
Posts with Upvotes
11
Upvoting Members
5
Downvotes Received
7
Posts with Downvotes
7
Downvoting Members
4
1 Commented Post
0 Endorsements
Ranked #2K
~4K People Reached
Favorite Forums
Favorite Tags

21 Posted Topics

Member Avatar for itisnot_me

u can use split.... like... [CODE]<?php $str="10,15,5"; $parts = split('[,]', $str); print "First Is : $parts[0]<br>Second Is : $parts[1]<br>Third Is : $parts[2]<br><br>"; $total=$parts[0]+$parts[1]+$parts[2]; print "Total is : $total"; ?> [/CODE] Try this! this is what you actually want! it's good.....

Member Avatar for ashiqin
0
112
Member Avatar for whiteyoh

[QUOTE]following code will return age in days for each user Help with Code Tags PHP Syntax (Toggle Plain Text) SELECT username,datediff( current_date( ) , birthdate ) FROM datatable[/QUOTE] I thinks you are right!

Member Avatar for vharuna
0
100
Member Avatar for virspy
Member Avatar for manoj30dec

almostbob, I think we must try to use && instead of and, anyways, i think we can also use this code... [CODE]<?php $adminuser = $_POST['adminuser']; $adminpass=$_POST['adminpass']; if(($adminuser || $adminpass)==NULL){ echo "Please enter Username and Password";} else if(($adminuser=="admin") && ($adminpass=="manoj")){echo "Good!";} else{echo "Invalid Username and Password";} ?>[/CODE]

Member Avatar for harshbavaliya
0
117
Member Avatar for plc
Re: $

"Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive." is a perfectly correct sentence...

Member Avatar for harshbavaliya
-4
122
Member Avatar for joloms38

what are you doing at line no. 29...? I think you are giving the value to $row by ($row = mysql_fetch_array($sql)). Well i have not read your program fully, so i can't understand your logic. But you but, use a condition when using while or for loop. by your condition …

Member Avatar for rajabhaskar525
0
100
Member Avatar for phpDave

anyways i am using this code as login page... test1.htm [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </HEAD> <BODY> <form name="form" action="test1.php" method="post" onSubmit="return verify()"> <table width="200" border="0"> <tr> <td>Enter Your ID …

Member Avatar for phpbeginners
0
121
Member Avatar for peck3277

I am using test1.htm as form... the code is as follows... [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </HEAD> <BODY> <form name="form" action="test1.php" method="post" onSubmit="return verify()"> <table width="200" border="0"> <tr> <td>Flavours : …

Member Avatar for harshbavaliya
0
102
Member Avatar for sunaruna84

anyways I am using this code, and it's working good on my machine... form.htm [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </HEAD> <BODY> <form name="form" action="test1.php" method="post" onSubmit="return verify()"> <table width="200" border="0"> …

Member Avatar for harshbavaliya
0
549
Member Avatar for infoStud
Member Avatar for harshbavaliya

sorry but i am new to my sql, I have just a basic question.. and that is how can i create a database or table on the server! I have learned that we can create database or table by using my sql command line... but the main problem is our …

Member Avatar for harshbavaliya
0
100
Member Avatar for loll_l

4- On completion of the form, instead of the message "Okey! We Are Proceed. Thank You !" I want the browser to redirect to [url]http://www.n-v-m.co.uk/Thankyou.html[/url] Ans. [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META …

Member Avatar for loll_l
0
151
Member Avatar for bas_brain

if i am not wrong, then & sign in useful when we want to call a class. i have also seen this type of functions in so many program. And in every program there was a similar thing and that was - they are calling a class when calling function.... …

Member Avatar for harshbavaliya
0
99
Member Avatar for loll_l

use this type of code structure... [CODE]<?php $Name = "Da Duder"; //senders name $email = "email@adress.com"; //senders e-mail adress $recipient = "PersonWhoGetsIt@emailadress.com"; //recipient $mail_body = "The text for the mail..."; //mail body $subject = "Subject for reviever"; //subject $header = "From: ". $Name . " <" . $email . ">\r\n"; …

Member Avatar for harshbavaliya
0
1K
Member Avatar for Heila

just use "POST" instead of "post". post must be in capitals... and yeah one more mistake you have done in this code is, you have set action="", it means that form will not save that value. just use this type of code.... ummmm... let me change line 33 of your …

Member Avatar for JRM
0
312
Member Avatar for aditi_19

I think you are getting this error because of that login page. Actually I have faced that with one of my client's website. So please try to do it as BzzBee told. I mean try to make your login page in HTML form. It will work absolutely good....

Member Avatar for harshbavaliya
0
123
Member Avatar for cuty_clemz

what actually you want! please clarify briefly so that i can understand...

Member Avatar for BzzBee
-3
90
Member Avatar for mitalichauhan

Use This Code.... [CODE]<?php $total=0; for($a=1;$a<=10;$a++) $total=$total+$a; echo "Total of 1 to 10 is : $total"; ?>[/CODE]

Member Avatar for JRM
0
108
Member Avatar for Midnite007

PHP is everything.... I mean you can do anything with PHP... But I can't understand your question. Please Clarify that what actually you want to do...

Member Avatar for Atli
0
249
Member Avatar for nkumar0101
Member Avatar for Midnite000

Will Gresham, You are right! he/she must give answer.... Why you are not using the previous thread... Me and Atli are fighting at there for a good code..... and you made a new thread ? It's not fare... Just come to old thread you have created, to get the answer …

Member Avatar for Midnite003
-4
121