Jump to content


Photo

Recalling Preset Values in PHP


  • Please log in to reply
23 replies to this topic

#21 Arsenal

Arsenal
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 28 December 2005 - 06:03 PM

'0|0','0|1','1|0','1|1'

These are the four exact values in the database.

#22 Arsenal

Arsenal
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 28 December 2005 - 08:57 PM

And yes taking out the brackets worked, thanks. Except for one thing, my out put is now this:

Array
(
    [0] => '0|0
    [1] => 0|1
    [2] => 1|0
    [3] => 1|1'
)



#23 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 28 December 2005 - 09:09 PM

Change your substr() start & end index values to drop the leading & trailing quote.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#24 Arsenal

Arsenal
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 29 December 2005 - 12:25 AM

Thank you, I am all set. You guys are excellent!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users