Jump to content

confusing JOIN


funbinod

Recommended Posts

 

So try...

$sql1 = "SELECT * FROM sales where cid='$cid' ORDER BY date,svn,rn";

but how does that get the "BALANCE" information. my query is ready for anything else. i wish some string to get BALANCE column

Link to comment
Share on other sites

It doesn't, but since you're printing it out anyway with Php why not just do it in Php? Otherwise I think you'd have to use a SQL cursor.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...