Jump to content

Can this code be tweaked to work with titles containing apostrophies please?


Recommended Posts

echo "<input type='text' name='arr[$title]' value='$qty' size='3'>";

 

I chose to use book titles as my MySQL primary key as not all books have ISBN.

 

Thing is I have everything else working (using Titles) including changing a book's quantity on a form thanks to folks on this forum.

 

However if a book has an apostrophy in it's title, I get multiple arrays created.

 

Is it possible to rectify this please?

 

Jamie

This should solve the problem - http://www.phpfreaks.com/forums/index.php?topic=340817.msg1607027#msg1607027

 

If not, you would need to define: "I get multiple arrays created"

 

Indeed it did!! Thank you again!!

 

Phew!

 

So much to learn - but that can't be a bad thing - however if you were not so helpful over this issue I would have no hair left.

 

Much appreciated

Jamie

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.