This is back to my last issue but then I figured out that I can't compare the value from a primary key to a value in another table.
In table 1, there is a value of 3 in one field
I want to be able to lookup row 3 in table 2 and fetch all that information.
I originally thought that WHERE index = 3 would work but it doesn't. For that to work, I would have to create another field but that field won't be able to auto increment.
I figure that if I could fetch the row number, that would be the same. I'm reading up on mysql_fetch_row right now.
But you an compare the value from a primary key to a value in another table. In terms of relating tables in a SELECT statement, an autoincrenting primary key is just an integer column type.
That's why I'm asking so many questions.
It seems to me you've made some false assumptions about the source of your issue.
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'index = 3' at line 1
Used the quotes because when I queried the IP address, that's the only way I could get a value.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.