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
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

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

Forms Authentication and Refresh at Login page
Hello, When I try to press the Login button in my webapplication at my login.aspx page nothing h

Restricted access to sub-folder in iis6 doesn't work?
Basically I'm trying to add restriction to sub-folder (which contains pdf) in web.config for iis6 as

need to add "sizes" to shopping cart
Hey guys, I am trying to figure out a way to add a "size" selector on to this bit of code.

Onclick problem in Firefox
Hi,
I am using a . It doesn't seem to

Weird Problem with curl while sending data
I am facing a weird problem with sending data to a site via curl.

If i send the value by this

Getting PHP to ammended the selected in option field
Hey Guys

thanks for everyones help so far. This site and its users are oozing awesomness.

PHP Error
On my .php page I have a drop down box that has several names in it. When a user clicks the name &am

php redirecting
i wont open a new thread but i have a question about redirecting....
i wonder why my code doesnt

Question about the upload of large files
Hi there,

I have a question about the upload of large files, like videos (files generally abo

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