undefined offset help


Posted on 16th Feb 2014 07:03 pm by admin

Hi All,

I kept getting undefined offset PHP notice for a simple for loop. For eg
$va = array();
$i=0;
while($row = mysql_fetch_array($result))
{
$va[$i] = $row['id'];
$i++;
}
It gives undefined offset at this line $++

thanks

67 Like 52 Dislike
Previous php-forum Next php-forum
Other php-forum

FROM_UNIXTIME($phpdate);
Hello,

I tried to use this :

$date = FROM_UNIXTIME($phpdate);

ANd I was t

question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<

Upload simple problem
Really confused!! I run once and it worked, but when i tried today...it didn't work

Which par

Variable Clash
In the past I've had variables clash. For example:

Code: <?php
$c = 5;
$ca

Internal Server Error issues
This has been bothering me for weeks and I've been trying to solve it without asking for help, but e

dynamic table with forms
I have a table that is populated with mysql data and in teh first column there is a raido button tha

need help in mysql_num_rows()
please tell me what i am doing wrong in this query. it displays this error

Code: Warning: mys

Show specific day of the week
I have been racking my brain trying to get this function to work properly and it is doing so for eve

Help uploading .JPG
I have a problem with upload images when the ending is .JPG capitalized.. I really don't know what c

gather checkbox data from form into email
Hello all,

First, i'd like to thank everyone who responded to my previous posts regarding set

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