Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

How to fetch mysql array??

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

How to fetch mysql array??

Old 12-08-14, 10:34 PM
  #1  
Member
Thread Starter
 
Join Date: Jun 2010
Posts: 55
Likes: 0
Received 0 Likes on 0 Posts
How to fetch mysql array??

Sigh

Last edited by Sigh; 01-04-15 at 07:23 PM.
Old 12-08-14, 10:51 PM
  #2  
Moderator
 
Groucho's Avatar
 
Join Date: Mar 2000
Location: Salt Lake City, Utah
Posts: 71,383
Received 116 Likes on 78 Posts
Re: How to fetch mysql array??

MySQL doesn't have an Array type so the value coming back is probably in some sort of String format that isn't recognized by php as an array. If you look directly at the the table, you can determine the format.
Old 12-09-14, 12:35 AM
  #3  
DVD Talk Special Edition
 
Gambit's Avatar
 
Join Date: Jun 1999
Posts: 1,033
Likes: 0
Received 0 Likes on 0 Posts
Re: How to fetch mysql array??

You're asking a coding question on a dvd discussion forum???

Why don't you try to put some curly braces around lines 14 and 15 since they both are part of your while loop.

while($row = mysql_fetch_array($result))
{
$array=$row['column'];
echo implode(",", $array);
};
Old 12-12-14, 12:00 PM
  #4  
Member
 
Join Date: Jan 2014
Posts: 120
Likes: 0
Received 0 Likes on 0 Posts
Re: How to fetch mysql array??

Originally Posted by Gambit View Post
You're asking a coding question on a dvd discussion forum???
Why not? After all, I think lots of us manage our own dvd databases, and some of us use mysql or sqlite.

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information -

Copyright 2021 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.