Text after "
This is probably a simple question, but I can not understand this alone.
I want the column of the table to contain the part key on the other page as href
to do the job without it href
Does.
echo "table = '1' style = 'width: 300px' & gt;"; "S & lt echo; tr gt; & lt; a href = 'part.php' item_n =?" $ Array [0] "& amp; key =" ... $ Nkey "& Gt;". $ Array [0] "& lt; / a & gt; & lt; / td & gt;"; Echo "& lt; td & gt;". $ Array [1] "& lt; / td & gt;"; Echo "& lt; td & gt;". $ Array [2] "& lt; / td & gt;"; Echo "& lt; td & gt;". $ Array [3] "& lt; / td & gt;"; Echo "& lt; td & gt;". $ Array [4] "& lt; / td & gt;"; Echo "& lt; td & gt;". $ Array [5] "& lt; / td & gt;"; Echo "& lt; td & gt;". $ Array [6] "& lt; / td & gt;"; Echo "& lt; td & gt;". $ Array [7] "& lt; / td & gt;"; Echo "& lt; td & gt;". $ Array [8] "& lt; / td & gt;"; Echo "& lt; / tr & gt;"; } Resonates "& lt; / table & gt;";
The line I have trouble with is href
as I have mentioned.
$ nKey
is not being defined anywhere except you Problems on the line are:
echo "& lt; td & gt; & lt; a href = 'part.php' item_n = & amp; $ array $ [0] .."; Key = ". $ N key. "& Gt ;." $ array [0] "& Lt; / a & gt; & lt; / td & gt;"; // ^
It is not where href
ends where it actually ends and you need to grow it.
echo "?> & Lt; td> & lt; a href = 'part.php item_n =" $ array [0] "& amp; key =". $ Nkey. "'& Gt; $ Array [0] "& lt; / a & gt; & lt; / td & gt;"; // ^
edit :
Your real problem is that $ nkey
is an array, And not a string you're expecting. Since this variable has not been left in the posted script, it becomes difficult to make any other suggestion until it is viewed.
Comments
Post a Comment