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>

Recommended Answers

All 3 Replies

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

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>

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>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.