Jump to content

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


jayteepics

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.