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

Curly Bracket Delimeters.
I'd always believed that the starting and ending delimeters in preg_ functions had to be the same ch

PHP Search Issue
Hi, I am using the following code to search and return flights from a database. The user searches by

PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see

show the direct link into href
I want to display link on the page. i am fetching the data(URL) from database,actually before that i

[PHP HELP] Php order form.
Hello to everyone @ phpfreaks. Im new to this site and hope to learn lots of things here.

Fir

Querying info from one table based on info in another
Hi, I am currently trying to make a part for my user driven website where one user can subscribe to

[newb] Image hosting help.
Hey there, I'm new to php, I know some basics and i can code PWN, I'm only 14 but I'm interested in

mail with attachment problems
Hi. I have the following code:
Code: else if(file_exists("site".$timp.".zip")

Specific name typed, specific image shown on html page
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

Can't find a decent web analytics!!!
I've downloaded and installed Piwik. It's location detection based on IP addresses is fairly inaccur

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