Search found 8 matches

by smartguy1616
Thu May 13, 2010 2:09 pm
Forum: Databases
Topic: Correct code does not update the table.
Replies: 7
Views: 1835

Re: Correct code does not update the table.

I was able to solve the problem and I still do not know why this happened. I deleted all the records in the table and it started working fine. However the flaw is there once in 10 times in average. I am still trying to find out the reason of this inefficiency. I am sure it is due to the slowness of ...
by smartguy1616
Tue May 11, 2010 3:07 pm
Forum: Databases
Topic: Correct code does not update the table.
Replies: 7
Views: 1835

Re: Correct code does not update the table.

I did not try using $_GET. But I will definitely try it tommorrow from office as I do not have the CP access here to check the database. But I do not understand if the variables are getting printed (echo) in the screen why does not it get updated to the database. My only intention to use the echo wa...
by smartguy1616
Tue May 11, 2010 1:56 pm
Forum: Databases
Topic: Correct code does not update the table.
Replies: 7
Views: 1835

Re: Correct code does not update the table.

Is there anyone who can help me out. The code is working fine when I am posting the variables from a local system. Ok lemme elaborate it. I am trying to integrate a payment application in which the Bank sends us the 3 variables which we append to the record added in the table in the first stage when...
by smartguy1616
Tue May 11, 2010 9:24 am
Forum: Databases
Topic: Correct code does not update the table.
Replies: 7
Views: 1835

Re: Correct code does not update the table.

$sql= "UPDATE test SET Bank='$bank', PAID='$paid', BID='$bid', amr=$amr, bmr=$bmr // Missing ' WHERE PRN='$techprn' Oh Sorry that was a small mistake which I had corrected. Actually I had added the amr and bmr variables just to check whether the database gets updated when we declare the variab...
by smartguy1616
Tue May 11, 2010 9:04 am
Forum: Databases
Topic: Correct code does not update the table.
Replies: 7
Views: 1835

Correct code does not update the table.

Hi, I am trying to solve a problem from last two hours. I cannot see any error in the code and everything is working fine till I check the database. Even the echo is working fine and I can see all the variables echoing in the page. But when I check the database the rows do not get updated. Below is ...
by smartguy1616
Sun Apr 11, 2010 2:13 pm
Forum: PHP - Code
Topic: How to send 2 different messages from 1 form.
Replies: 1
Views: 56

How to send 2 different messages from 1 form.

<?php $your_name = $_POST['your_name']; $friend_name = $_POST['friend_name']; $your_email = $_POST['your_email']; $friend_email = $_POST['friend_email']; $personal_message = $_POST['personal_message']; $to = $friend_email; $subject = 'Your Friend ' . $your_name . 'sends you an e-mail'; $msg = "...
by smartguy1616
Mon Mar 29, 2010 4:04 pm
Forum: PHP - Code
Topic: I am not able to get the expected results.
Replies: 3
Views: 140

Re: I am not able to get the expected results.

Oh thanks, I did not know I am so dumb. I should have noticed that. How did I not? By the way this was my first handwritten program in php.
by smartguy1616
Mon Mar 29, 2010 3:40 pm
Forum: PHP - Code
Topic: I am not able to get the expected results.
Replies: 3
Views: 140

I am not able to get the expected results.

I am not able to get the expected results. Can anyone tell me why? Below is a simple HTML code. <html> <body> <p>Share your story of alien abduction:</p> <form method="post" action="report.php"> <label for="firstname">First name:</label> <input type="text" id=...