Hi again all,
i wonder if any of you have any ideas on the following.
i have a very long php script that processes several queries, as well as checks data, here is an example
update blah set color = blue where member = 1
then
select * from blah where member = 1
if (colur=blue)
do this
however the problem is the second part of the script. the select statement, is running before the update statement.
i need for the select statement only to run once the update statement is completed. as it is currenlty giving wrong information.
im having to run the script twice, to get the desired results.
any ideas, on how this can be done
tahnks fro your help
i wonder if any of you have any ideas on the following.
i have a very long php script that processes several queries, as well as checks data, here is an example
update blah set color = blue where member = 1
then
select * from blah where member = 1
if (colur=blue)
do this
however the problem is the second part of the script. the select statement, is running before the update statement.
i need for the select statement only to run once the update statement is completed. as it is currenlty giving wrong information.
im having to run the script twice, to get the desired results.
any ideas, on how this can be done
tahnks fro your help