Search found 9 matches

by todd2011
Mon Apr 25, 2011 10:15 pm
Forum: PHP - Code
Topic: Email problem
Replies: 4
Views: 621

Re: Email problem

Thanks superdezign appreciate your help.
by todd2011
Mon Apr 25, 2011 10:14 pm
Forum: PHP - Code
Topic: retrieve value from table
Replies: 11
Views: 1911

Re: retrieve value from table

Thanks superdezign it worked . Appreciate your help.

Todd
by todd2011
Mon Apr 25, 2011 10:13 pm
Forum: PHP - Code
Topic: syntax problem
Replies: 7
Views: 695

Re: syntax problem

thanks guys removed the parentheses and it worked.
by todd2011
Mon Apr 25, 2011 8:04 am
Forum: PHP - Code
Topic: syntax problem
Replies: 7
Views: 695

Re: syntax problem

Hi, i tried this code $txt1 = $_REQUEST['txtfixedprice']; $txt2 = $_REQUEST['txtretailprice']; ech $txt1; echo $txt2; if((is_null($txt1) || ($txt1 =="0.00")) { $setflag1 ="no value"; } else { $setflag1 ="some value"; } echo $setflag1; but there is no output for setflag1...
by todd2011
Sun Apr 24, 2011 11:04 pm
Forum: PHP - Code
Topic: syntax problem
Replies: 7
Views: 695

syntax problem

Hi,, I have 2 textboxes if the user enters any value in both the textboxes then the total is $50.00 if the user enters a value in one of the textboxes then the total is $25.00 so i am checking for blanks and zero's because if u dont enter any value and tab over the field then javascript function wil...
by todd2011
Sun Apr 24, 2011 8:49 pm
Forum: PHP - Code
Topic: retrieve value from table
Replies: 11
Views: 1911

Re: retrieve value from table

thanks for your reply appreciate it here is my new code <?php function getrates ($sales,$transaction) { $mysql_host = "localhost"; $mysql_user = "BASE"; $mysql_password = "test2"; $conn = mysql_connect ($mysql_host, $mysql_user, $mysql_password); $sql = "SELECT Rat...
by todd2011
Sun Apr 24, 2011 2:52 pm
Forum: PHP - Code
Topic: retrieve value from table
Replies: 11
Views: 1911

Re: retrieve value from table

Andy, I tried your code it doesnt return values i have a php page called start.php which calls another page which has the getrate function and i dont see any values been returned I even tried to do echo in the other page to see if it is connecting to database so i did a echo in the page but it didnt...
by todd2011
Sun Apr 24, 2011 12:10 pm
Forum: PHP - Code
Topic: Email problem
Replies: 4
Views: 621

Email problem

Hi, I am using this code to sent an email. There are 2 things happening when I get the email the body is missing in the email i get a blank email Secondly the emails are coming slow means it takes 4 hrs to receive an email any help is highly appreciated todd $body = "<p><b>Personal Information<...
by todd2011
Sat Apr 23, 2011 3:50 pm
Forum: PHP - Code
Topic: retrieve value from table
Replies: 11
Views: 1911

retrieve value from table

I am having this code where I want to get the value from the table $title = getrate ($sales,$transaction); So I am calling this function getrate and here is the code function getrate ($sale,$transaction) { $conn = mysql_connect ($mysql_host, $mysql_user, $mysql_password); $sql = "SELECT Rate fr...