![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
![]()
Does anyone know what I'm doing wrong with this?:
PHP Code:
Thanks a bunch! :D |
#2
|
||||
|
||||
![]()
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.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
![]()
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 Last edited by Hwona; 07-31-2014 at 06:53 PM. |
#4
|
||||
|
||||
![]()
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.
__________________
Avatar courtesy of Doll Divine. |
#5
|
||||
|
||||
![]()
^ Thanks, but I actually had that before I tried to change the table, but it worked then.
|
#6
|
||||
|
||||
![]()
umm so your problem has been resolved now?
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
![]()
^ 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
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Anyone Know How to Fix a Table | Hwona | Questions and Supports | 0 | 07-28-2014 10:31 AM |
Change table set up in pound? | Infernette | Questions and Supports | 0 | 02-09-2013 07:18 PM |
Admin Cp (Table) | Alaric | Questions and Supports | 14 | 04-24-2012 06:23 AM |
A 2-column table? | Quillink | Suggestions and Feature Requests | 8 | 09-23-2010 02:26 PM |
Table Prefix | fadillzzz | Questions and Supports | 5 | 01-21-2010 11:17 AM |
What's New? |
What's Hot? |
What's Popular? |