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

75 Like 41 Dislike
Previous php-forum Next php-forum
Other php-forum

multiple recipients + dbuser mail recall
Hello,

I am building a php login script.

When the user registers the script will send

Wierd if else problem
Hi guys,

this probably aint wierd for you, but it seems like php is playin up to me. may b i

Firefox displaying PHP source code??
Currently testing a site thats almost built, am going to be including php on a sidebar on all pages

opening a window with after form submission
I know this this forum has nothing to do with JS, but i'm trying to use it with my php script.
<

value not going in data base
hello friends....
i am having a working javascript....when i am selecting any

Need Help with a query
Hello,
For some reason I am just not getting the right answer when I do this query and not quite

help with email script...
hey

I need help with my mail script

when the form on http://www.mcgdesignstudio.com/c

php code generators
All

Whilst enjoying learning a new language i have come accross a number of free code generat

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

Entering Data Problem
Code: $result = mysql_query("SELECT * FROM flights");
while ($row = mysql_fetch_array($

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