0

HI Friends,
I tried:
I inserted a row in mysql using php in the first webpage and second webpage i tried to retrieve it.
I got:
But in the next page i did not get the lastely inserted row.
When inserted the another row, i was able to get the first inserted row and not the lastest row.

So every time i miss the last inserted row the first time and when then i was able to get it as soon as i insert another row.

How to solve this issue? Is it something related to commit i am missing here?


<snipped>

Edited by nav33n: Fake signature snipped. Go to Control Panel -&gt; Edit Signature to add signature to your profile.

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by pritaeas
0

Show your code. Hard to spot the problem without it.

PHP coding?
Hi Friends,

How do you use div class' in php such that you can attach html generated by php into that div class. Example

<html>
<head>
</head>
<body>
<div class="border">
</div>

<?php

echo "This needs to go into the class border"

?>

</body>
</html>
i m use this coding.

<snipped>

Edited by nav33n: Fake sig snipped.

0

Obviously, it has to be put inside the div's tags, like this:

<html>
<head>
</head>
<body>
<div class="border">
<?php
echo 'This needs to go into the class border';
?>
</div>
</body>
</html>

Edited by pritaeas: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.