Search found 4 matches

by ulyssesr
Wed Oct 21, 2009 2:31 am
Forum: PHP - Code
Topic: Need Help Printing an Array
Replies: 6
Views: 152

Re: Need Help Printing an Array

Try treating the decoded json as an associative array Thanks, John. I tried the code you suggested. Still not working. I'm getting a "Invalid argument supplied for foreach()" error. I've updated my original code. It's actually an API call to Twitter. See original code above. In the meanti...
by ulyssesr
Wed Oct 21, 2009 2:30 am
Forum: PHP - Code
Topic: Need Help Printing an Array
Replies: 6
Views: 152

Re: Need Help Printing an Array

Mark Baker wrote:What version of PHP are you running?
My host is Dreamhost. I believe it's running default which according to their site is: PHP 5.2.6.
by ulyssesr
Tue Oct 20, 2009 10:11 am
Forum: PHP - Code
Topic: Need Help Printing an Array
Replies: 6
Views: 152

Re: Need Help Printing an Array

Works for me. What are you seeing when you echo $saved_search->name Actually, I'm not even getting past that point. I'm getting an foreach() error. It says: "Invalid argument supplied for foreach()" It's baffling. Something is wrong with the foreach argument, but I can't figure out what o...
by ulyssesr
Tue Oct 20, 2009 9:51 am
Forum: PHP - Code
Topic: Need Help Printing an Array
Replies: 6
Views: 152

Need Help Printing an Array

Hello. I'm new to this forum. I thought I give this forum a try. I've been fighting with printing an array for a couple of hours now. I need to be able to display it on the screen, but I can't seem to figure it out. The value of the $json array is: [{"position":null,"name":"...