Array help


Posted on 16th Feb 2014 07:03 pm by admin

Hello i got this code to fetch data from database but it is not working it displays
7
Array
Array
Did you know?Explore Trending and Topic pages for more stories like this.
Array
Array
Array
Array

Code: if (isset($_POST['showrecord']))
{
$query='SELECT * FROM artus_test';
$result=mysql_query($query);
$numrows=mysql_num_rows($result);


while($row = mysql_fetch_assoc($result)){

$mypdata[] = $row['test_id'];
$mypdata[] = unserialize($row['organ']);
$mypdata[] = unserialize($row['design']);
$mypdata[] = unserialize($row['start_month']);
$mypdata[] = unserialize($row['start_year']);
$mypdata[] = unserialize($row['end_month']);
$mypdata[] = unserialize($row['end_year']);


foreach ($mypdata as $value) {
echo $value."<br/>";
}
}
}
help me please
No comments posted yet

Your Answer:

Login to answer
75 Like 41 Dislike
Previous forums Next forums
Other forums

Array to string conversion
Can anyone help me with this?

Notice: Array to string conversion in /home/..../index.php on l

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

Multiple PHP errors when clicking a link..and..removing a ghost..
Hi - I have 2 problems with a new website - homeswapvacations.com, which I need help solving.

Help with page encoding issue and weird characters
I'm trying to write a screen scraper and when I pull out the lines of the html file that I'm interes

Count on multidimensional array
Hi, i got an array as below:

Array
(
=> Array
(

Basic Question Regarding PHP Includes
Hi

Just starting out with PHP.

Working on a site that uses some basic includes, these

Weekly Calendar
Hi, I am looking at creating a weekly calendar. The calendar will read from Monday - Sunday. Does an

How could I do this?
Ive got a simple lottery game, and am using an sql database to keep track of the numbers bought. But

Get to know your fellow coder
I think it's time we got personal around here. There's a lot of code swapping and a few members kno

Structure Question - One Table or One Table Per Record Set?
I have a web app (mySQL and PHP) which allows people to create an item with up to 200 records which

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash