I have a php program; entire source attached.
Note the following:
(1) on lines 7 - 19 is a function whose purpose is obvious.
(2) On line 40 os a MySQL query that utilzes the function.
(3) On line 41 is an echo that shows the query. It shows correctly but all the #&39;, etc., show as ' (I expected it would as the browser converts them).
(4) On line 88, I save the query so I can view source & see what it looks like. It looks like this:
qrysd = "SELECT * from subcat_docs where prim = 'Polywrap' and category = '20' Perforations' and subcategory = 'Black 200/400''";
Notice that the replacements for the single quote are INCORRECT; they are ' instead of #&39;
At one point, I had errors in the function elim_quotes where I had the string ' (and no ; after). I fixed those things a while back but I though MAYBE that version is still cached. I normally use FireFox, so I exited Fiirefox, restarted it & tried again.
So I thought, I'll look at it in Chrome; I don't think this page has EVER been viewed in Chrome.
So obviously, I'm overlooking something. I'm also attaching the include file bld_lb_text.php.
What am I doing wrong?