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

Not Inserting into DB
I can't get my Add new Division form to submit to the database. Anyone see my issue?

Code: &a

Amend code to allow multiple attachments
Hi

I have a php page that allows the user to browse to a file (image) then sumbit, the confi

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

PRotect my POST DATA... FROM HTML ATTACKS
I need to like let's say

If a user submit's his Prayer and he put's <meta refresh stuf

EXplanation help
Hey all,

I am still fairly new to PHP programming and I am trying to put together a page wher

Need help: how to catch acess of undefined class properties
Hello. I am learning OO with PHP and have hit a problem.
Some code runs as perfectly valid code,

PHP Cannot redeclare class
I have 6 files, and two of them do not seem to want to play well. I keep getting a "Cannot rede

Creating an invoice
Using fpdf I am trying to create an invoice to send to clients. The products are sold in pricing tie

Beginner PHP code help
Hi I'm new to php but if someone could please read the question below and help it would be great.

Problem with Sending Mail by PHP
hello all,
I m new to php, can u plz provide me the code to send mail by php having CAPTC

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