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

Points for Wiki contribution
Hi everyone,

I want to know how long does it take for the moderator to award points for a

echo $rows help
Hi all,

Hopefully something simple that I don't know!

I have this:

Code: [Selec

noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.

Last character removed
I have created a string from an array. I have inserted commas from my form values. I am trying to re

Help With editting and deleting form
Hallo !!

So look at this image :

http://img194.imageshack.us/img194/8272/snapshot5f.pn

Multiple if statements
Ok so seems basic but for some reason I'm not doing it right. What I want is to be able to have 2 se

how to get different value in second view of webdynpro?
hello guys,

In ABAP webdynpro I am trying to create one application having two views.

login box shows up again after logging in 2nd login works
Hello,

I am having trouble on my site Lockerz.rack111.com where when you login the login box

Sessions Value Not Saved
Hi,

Im making a login form and im using this code:
Code: if($login=="true"){

line breaks in between fetched file names
Hi,

I have this code:
Code: <?php
if($dir = opendir('files')){
while (($f

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