Jump to content

Query comes up with Array[1]


TeddyKiller

Recommended Posts

I have a query, and it has stuff like $variable[var][1]

This comes up as Array[1] when I echo out the query. The query is as follows.

 

$hiscores = $db->query("UPDATE `clan_members` SET `attack` = '$lol[att][1]', `strength` = '$lol[str][1]' WHERE `username` = '$username'") or die(mysql_error());

 

How can I fix it?

Link to comment
https://forums.phpfreaks.com/topic/201441-query-comes-up-with-array1/
Share on other sites

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.