473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PHP: error-Undefined offset: 0

echo"Array is".print_r($arr[0],true);
Jan 14 '12 #1
1 1817
Dormilich
8,658 Expert Mod 8TB
there is no array index 0 in your array.
Jan 14 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Frank | last post by:
How do you turn on PHP error messages in PHP, So I can see what is happening when a php page fails ? Windows & Linux ??
2
by: Scott Castillo | last post by:
I can't seem to find the PHP error log file on a Windows system. Does anybody know where it is? Thanks for the help.
1
by: O.B. | last post by:
I'm working on integrating some PHP code into a website hosted by catalog.com. It appears that PHP error handling is disabled. Other hosting services (that I have worked with) have this turned on...
3
by: Pratchaya | last post by:
Hi Everyone ============================================================== About PHP::: Error/Problem PHP Warning: mysql_fetch_array():...
11
by: newbie | last post by:
hi can anyone tell me why i am receiving error msg with this php script <?php require($_SERVER."/config/db_config.php"); $connection = mysql_connect($db_host,$db_user,$db_passwword) or die...
2
by: nesster13 | last post by:
I have installed Apache and PHP 5 on my machine. I have use Smarty and Pear to help me with the general template of my page. I was able to have a page loaded onto the my browser with not error but...
1
by: newsbandit | last post by:
Hello All, is there a way to specify a php error log for each individual site on an IIS 6 server? If so how, when I turn on logging in the php.ini file it seems to be global and all sites dump to...
2
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
5
by: openxmod | last post by:
hi, i am using WAMP in localhost... can anyone help about how to handle PHP error?
14
by: fuchsia555 | last post by:
Is there anyway to hide php error messages? Because i have in my php code error but it redirecting after 1 sec and shows my hosting path and php error number, but this error doesn't effect anything.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.