Jump to content

input text with commas


fran

Recommended Posts

It's more likely that your HTML is invalid somewhere and is not showing you the whole value.

 

Have you looked directly in your database table using your favorite database management tool (i.e. phpmyadmin) so that you know what exactly is being stored in the table?

Database has Artist: "lastname, firstname"

 

Text is sent from here:

$sql = "SELECT DISTINCT Artist FROM inventory ORDER BY Artist";

<option value=$row[Artist]>$row[Artist]</option>

 

Updated here:

$sql = "UPDATE inventory SET id = '$id', Title = '$_POST[Title]', Artist = '$artist', ...

 

I have mysql error on both but no errors appear.

It simply eliminates everything after the comma and saves in database "lastname,"

 

Is that enough to give you an idea?

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.