I've a quick question. Suppose I've the following code:
select something from table1
value1 = row["col1"]
then I do
Insert into table1 (col1) value (newvalue)
and then I do
value2 = row["col1"]
Is the value2 still equals to value1 or different?
PHP Code
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
I think he is just assigning to two different variables and not fetching the data from the DB between assignments.Jcart wrote:should be the same.. but not quite sure what your getting at..
perhaps try it for yourself
Now, I am getting a doubt, when a resource like $result is returned, it holds the data is not it...it does not go to database again...is it?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Took me about 5 times to read that for some reason..raghavan20 wrote:I think he is just assigning to two different variables and not fetching the data from the DB between assignments.Jcart wrote:should be the same.. but not quite sure what your getting at..
perhaps try it for yourself
Now, I am getting a doubt, when a resource like $result is returned, it holds the data is not it...it does not go to database again...is it?
quadoc: I believe you need to elaborate furthur.