![]() |
Error When Trying to Edit Table
Does anyone know what I'm doing wrong with this?:
PHP Code:
Thanks a bunch! :D |
Theres a chance that a cell or a row of your table has no content, this is usually where the count() member function error occurs.
|
The cells and rows look full... umm, I tried editing the "index" thing, but nothing' changing...
edit: whenever I do: $totalAdopts = $mysidia->db->select("owned_adoptables", array("aid"), "owner = '{$mysidia->user->username}' && tab = 0")->fetchColumn(); $totalAdopts2 = $totalAdopts->rowCount(); instead of: $totalAdopts = $mysidia->db->select("owned_adoptables", array("aid"), "owner = '{$mysidia->user->username}' && tab = 0"); $totalAdopts2 = $totalAdopts->rowCount(); I get this: Fatal error: Call to a member function count() on a non-object in /home/wallie12/public_html/myadopts3.php on line 30 |
Your first 0 doesn't have a semicolon.
$totalAdopts = $mysidia->db->select("owned_adoptables", array("aid"), "owner = '{$mysidia->user->username}' && tab = 0")->fetchColumn(); $totalAdopts2 = $totalAdopts->rowCount(); Or maybe it doesn't matter? I dunno. |
^ Thanks, but I actually had that before I tried to change the table, but it worked then.
|
umm so your problem has been resolved now?
|
^ No, I was just trying to explain that that wasn't the part that wasn't functioning well. ^.^ I may just end up trying to simply style the tables, but I don't know how to do that either. XP
|
All times are GMT -5. The time now is 05:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.