menu search
brightness_auto

Recent questions tagged php

I am trying to create a table with data values shown through php, but am unable to use td tag in PHP if statement. <tr> <td>Octroi: Rs. </td> <td> <?php echo (round($r)); ?> </td> </tr> <tr> <td>+ VAT: Rs. </td> <td> <?php echo ($l); ?> </td> </tr> <tr> <?php $a = $this->prodDet->v_price; if($a > 100000) { <td>+ TCS: Rs. </td> <td> $tcs=(round(.01*$a)); echo '<p>' . "+ TCS: Rs. $tcs" . '</p>'; </td> } ?>
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
0 answers
What are data types and variables in PHP?
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
2 answers
What is JSON in PHP?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
2 answers
what is the diffrence between PHP Include, PHP include_once, PHP require and PHP require_once?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
2 answers
If user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection, like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the user can input something like value'); DROP TABLE table;--, and the query becomes: INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--') What can be done to prevent this from happening?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
4 answers
Can any one give me some PHP registration form sample code?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
2 answers
What is an array in PHP and how it differ from C++ array?
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
3 answers
Can anyone tell me what is variable in PHP in detail ?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
3 answers
I want to learn PHP and I think that I have to setup some environment. What is PHP environment and How to setup it?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
1 answer
what is PHP functions?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
4 answers
What is difference between GET method and POST method?
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
1 answer
This is my code, it's running fine on the local server i.e., clock_out time is updated in the DB but while running this code on an online server, clock_out shows 00:00:00. <?php session_start(); $name = $_SESSION['name']; $clocked_in = $_SESSION['clock_in']; date_default_timezone_set('Asia/Kolkata'); $clock_out = date("h:i:sa"); $duration = $_POST['duration']; $con = mysqli_connect("localhost", "abc", "password", "signup"); $query = "update clock set clock_out = '$clock_out', duration = '$duration' where name = '$name' AND clock_in = '$clocked_in'"; mysqli_query($con, $query); mysqli_close($con); ?>
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
0 answers
To see more, click for the full list of questions or popular tags.
eForumAfrica, where you can ask questions and receive answers from other members of the community. Find the answer to your question, help others by answering their questions.

702 questions

631 answers

25 comments

2.4k users

...