Welcome Guest, Not a member yet? Register   Sign In
RE:[help!!!] A PHP Error was encountered
#23

[eluser]Dyllon[/eluser]
[quote author="WebsiteDuck" date="1263302097"]Try changing this
Code:
$rows = $this->input->post("row0");
to this
Code:
$rows = array($this->input->post("row0"));
[/quote]

Honestly I don't think this is the right answer, it's slapping a band-aid on a much larger issue.

I don't mean to be harsh but if you don't know where your variable is coming from, why it's an empty array, why it's not an array at all, or why it's not even a variable I think it's time to take a step back.

Handling arrays and knowing how to use basic built-in php functions are very basic skills.

Take some time to learn more of the basics of php, read articles, tutorials, and books.
There are thousands of free php tutorials on the internet and php.net has great documentation and user submitted examples.

Code readability and naming conventions are also very important, especially when asking other developers to review your code.
If it's hard to read or the variable names don't make sense people are less likely to read through it and try to help.


Messages In This Thread
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 09:49 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 09:55 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 10:08 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 10:13 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 10:24 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 10:28 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 10:37 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 10:59 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 11:03 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 11:06 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 11:08 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 11:11 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 11:21 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-11-2010, 11:26 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 12:22 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 12:32 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 12:37 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 12:45 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 12:50 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 01:07 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 01:14 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 01:25 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 01:37 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 08:47 AM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 07:26 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 07:31 PM
RE:[help!!!] A PHP Error was encountered - by El Forum - 01-12-2010, 07:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB