Jump to content

Separating commas in sql field to be used in separate php variables


erme

Recommended Posts

Is there a way of separating commas in one sql field to be used in separate php variables

 

SQL Field: 12,204,293,998,88

 

PHP:

 

$var1 = 12

$var2 = 204

$var3 = 293

$var4 = 998

$var5 = 88

 

I'm basically trying to get around having hundreds of SQL fields .. much prefer to have the 1 field with lots of information in.

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.