I need to get "name" from the table where id = parent_id of an id I pass to the sql statement.
example table
id name parent_id
1 I NEED THIS 0
9 test 1
So if I pass the variable 9 to the sql statement it will need to pull out "I NEED THIS"
I hope this makes sense.
example table
id name parent_id
1 I NEED THIS 0
9 test 1
So if I pass the variable 9 to the sql statement it will need to pull out "I NEED THIS"
I hope this makes sense.