im very new to sql and php and im cobbaling together code from diffrent scripts.
i need to get the row info from table 2.
im using $reconsku to get which row.
im getting $reconsku from table 1 col2 (thats the data that links the tables)
im getting col2 from col1.
col1 is a unique number which must be searched for ( $srch)
what ive tryed to do is.
$srch to col1 - col2= $orsku --- $reconsku to row i need ( $orsku and $reconsku are the same data
$srch = wildcard
im using like for the orsku as if the data is supposed to be 002406 then some times the 00 are missing. so 002406 will be listed as 2406.
--
another way to say it
spl table= spl , orsku, make, pallet
dsgi table= origsku, reconsku, make, model, working, actions
i need to search for tbl,spl for a unique number - take the orsku data and use it to get the data from dsgi,reconsku.
then echo the row from dsgi with the tbl,spl
sorry if this dosent make sense. i can visualize what i need but im finding it hard to explain as i dont no the correct termonology.
thanks for help.