Ok,
Firstly hello I’m a 40 year old trying to learn php and i’ve never been great at reading dyslexic but I’ve become a fan of php and want to learn more so I’ve been tweaking some code and reading more. I do better at seeing how its done by others showing me and understanding it that way than reading as its a nightmare for me.
anyway Array’s I struggle with and I have a cell in a table that is done like this…
0|6|0
I need to get the 6 (CATID) or what ever the second no is into a string so that I can use the answer to probe another table
[php] $query = “SELECT active
FROM category
WHERE CATID
= '”.$string from previous query.";
$active = @mysql($query);[/php]
I have been scratching my head and I’m sure that its a simple few scripts but I seem to go blank at working this out at times…I’m going wrong…
Your patience and help is greatly appreciated.