Jump to content


Photo

Array Help?


  • Please log in to reply
2 replies to this topic

#1 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 23 September 2006 - 02:14 PM

$sql->rsnclass->DBQuery("INSERT INTO some_table (username, name_of_field) VALUES('$name->_safe', '$do_stats->_name_of_array[3][0]')");

In the database it outputs as Array[3][0], can someone help me with this problem.

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 23 September 2006 - 02:22 PM

$sql->rsnclass->DBQuery("INSERT INTO some_table (username, name_of_field) VALUES('".$name->_safe."', '".$do_stats->_name_of_array[3][0]."')");


Should do the trick



Regards
Liam
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 23 September 2006 - 02:40 PM

Thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users