OK maybe I need to call you on this one LOL
Inserted your Show me code:
<?php foreach ($resource_typeRecords as $record): ?>
<div class='col-md-3 service'>
<h3>
<span class='fa fa-<?php echo htmlencode($record['resource_type_icon']) ?>'></span>
<?php echo htmlencode($record['title']) ?>
</h3>
<p class='small'><?php echo strip_tags($record['content']); ?></p>
<?php showme($type); ?>
<a class='btn btn-default btn-md' href="categorytype.php?type=<?php echo $type['num'];?>">
<span class='fa fa-caret-right'></span>
Read more
</a>
</div>
<?php endforeach ?>
and I get this in the returned source code:
Sorry for the lengthy code here but this is one trip through the above loop.
<div class='col-md-3 service'>
<h3>
<span class='fa fa-search'></span>
Case Study </h3>
<p class='small'>Learn first-hand how we help our clients drive important business results.</p>
<xmp>Array
(
[0] => Array
(
[num] => 1
[createdDate] => 2014-09-22 01:12:33
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:35
[updatedByUserNum] => 1
[dragSortOrder] => 70
[title] => Case Study
[content] => <p>Learn first-hand how we help our clients drive important business results.</p>
[resource_type_icon] => search
[_tableName] => resource_type
)
[1] => Array
(
[num] => 2
[createdDate] => 2014-09-22 01:12:59
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:15:00
[updatedByUserNum] => 1
[dragSortOrder] => 10
[title] => Sample Product Report
[content] => <p>The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.</p>
[resource_type_icon] => file-text-o
[_tableName] => resource_type
)
[2] => Array
(
[num] => 5
[createdDate] => 2014-09-22 01:15:24
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:13:13
[updatedByUserNum] => 1
[dragSortOrder] => 40
[title] => Form
[content] => <p>A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.</p>
[resource_type_icon] => list-ol
[_tableName] => resource_type
)
[3] => Array
(
[num] => 6
[createdDate] => 2014-09-22 01:15:58
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:12:35
[updatedByUserNum] => 1
[dragSortOrder] => 50
[title] => Newsletter
[content] => <p>Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.</p>
[resource_type_icon] => newspaper-o
[_tableName] => resource_type
)
[4] => Array
(
[num] => 7
[createdDate] => 2014-09-22 01:16:44
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:56
[updatedByUserNum] => 1
[dragSortOrder] => 60
[title] => White Paper
[content] => <p>See our collected studies of real life stratagies used by our clients and other successful businesses.</p>
[resource_type_icon] => file-o
[_tableName] => resource_type
)
)
</xmp> <a class='btn btn-default btn-md' href="categorytype.php?type=
Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151
">
<span class='fa fa-caret-right'></span>
Read more
</a>
</div>
<div class='col-md-3 service'>
<h3>
<span class='fa fa-file-o'></span>
White Paper </h3>
<p class='small'>See our collected studies of real life stratagies used by our clients and other successful businesses.</p>
<xmp>Array
(
[0] => Array
(
[num] => 1
[createdDate] => 2014-09-22 01:12:33
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:35
[updatedByUserNum] => 1
[dragSortOrder] => 70
[title] => Case Study
[content] => <p>Learn first-hand how we help our clients drive important business results.</p>
[resource_type_icon] => search
[_tableName] => resource_type
)
[1] => Array
(
[num] => 2
[createdDate] => 2014-09-22 01:12:59
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:15:00
[updatedByUserNum] => 1
[dragSortOrder] => 10
[title] => Sample Product Report
[content] => <p>The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.</p>
[resource_type_icon] => file-text-o
[_tableName] => resource_type
)
[2] => Array
(
[num] => 5
[createdDate] => 2014-09-22 01:15:24
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:13:13
[updatedByUserNum] => 1
[dragSortOrder] => 40
[title] => Form
[content] => <p>A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.</p>
[resource_type_icon] => list-ol
[_tableName] => resource_type
)
[3] => Array
(
[num] => 6
[createdDate] => 2014-09-22 01:15:58
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:12:35
[updatedByUserNum] => 1
[dragSortOrder] => 50
[title] => Newsletter
[content] => <p>Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.</p>
[resource_type_icon] => newspaper-o
[_tableName] => resource_type
)
[4] => Array
(
[num] => 7
[createdDate] => 2014-09-22 01:16:44
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:56
[updatedByUserNum] => 1
[dragSortOrder] => 60
[title] => White Paper
[content] => <p>See our collected studies of real life stratagies used by our clients and other successful businesses.</p>
[resource_type_icon] => file-o
[_tableName] => resource_type
)
)
</xmp> <a class='btn btn-default btn-md' href="categorytype.php?type=
Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151
">
<span class='fa fa-caret-right'></span>
Read more
</a>
</div>
<div class='col-md-3 service'>
<h3>
<span class='fa fa-newspaper-o'></span>
Newsletter </h3>
<p class='small'>Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.</p>
<xmp>Array
(
[0] => Array
(
[num] => 1
[createdDate] => 2014-09-22 01:12:33
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:35
[updatedByUserNum] => 1
[dragSortOrder] => 70
[title] => Case Study
[content] => <p>Learn first-hand how we help our clients drive important business results.</p>
[resource_type_icon] => search
[_tableName] => resource_type
)
[1] => Array
(
[num] => 2
[createdDate] => 2014-09-22 01:12:59
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:15:00
[updatedByUserNum] => 1
[dragSortOrder] => 10
[title] => Sample Product Report
[content] => <p>The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.</p>
[resource_type_icon] => file-text-o
[_tableName] => resource_type
)
[2] => Array
(
[num] => 5
[createdDate] => 2014-09-22 01:15:24
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:13:13
[updatedByUserNum] => 1
[dragSortOrder] => 40
[title] => Form
[content] => <p>A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.</p>
[resource_type_icon] => list-ol
[_tableName] => resource_type
)
[3] => Array
(
[num] => 6
[createdDate] => 2014-09-22 01:15:58
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:12:35
[updatedByUserNum] => 1
[dragSortOrder] => 50
[title] => Newsletter
[content] => <p>Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.</p>
[resource_type_icon] => newspaper-o
[_tableName] => resource_type
)
[4] => Array
(
[num] => 7
[createdDate] => 2014-09-22 01:16:44
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:56
[updatedByUserNum] => 1
[dragSortOrder] => 60
[title] => White Paper
[content] => <p>See our collected studies of real life stratagies used by our clients and other successful businesses.</p>
[resource_type_icon] => file-o
[_tableName] => resource_type
)
)
</xmp> <a class='btn btn-default btn-md' href="categorytype.php?type=
Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151
">
<span class='fa fa-caret-right'></span>
Read more
</a>
</div>
<div class='col-md-3 service'>
<h3>
<span class='fa fa-list-ol'></span>
Form </h3>
<p class='small'>A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.</p>
<xmp>Array
(
[0] => Array
(
[num] => 1
[createdDate] => 2014-09-22 01:12:33
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:35
[updatedByUserNum] => 1
[dragSortOrder] => 70
[title] => Case Study
[content] => <p>Learn first-hand how we help our clients drive important business results.</p>
[resource_type_icon] => search
[_tableName] => resource_type
)
[1] => Array
(
[num] => 2
[createdDate] => 2014-09-22 01:12:59
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:15:00
[updatedByUserNum] => 1
[dragSortOrder] => 10
[title] => Sample Product Report
[content] => <p>The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.</p>
[resource_type_icon] => file-text-o
[_tableName] => resource_type
)
[2] => Array
(
[num] => 5
[createdDate] => 2014-09-22 01:15:24
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:13:13
[updatedByUserNum] => 1
[dragSortOrder] => 40
[title] => Form
[content] => <p>A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.</p>
[resource_type_icon] => list-ol
[_tableName] => resource_type
)
[3] => Array
(
[num] => 6
[createdDate] => 2014-09-22 01:15:58
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:12:35
[updatedByUserNum] => 1
[dragSortOrder] => 50
[title] => Newsletter
[content] => <p>Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.</p>
[resource_type_icon] => newspaper-o
[_tableName] => resource_type
)
[4] => Array
(
[num] => 7
[createdDate] => 2014-09-22 01:16:44
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:56
[updatedByUserNum] => 1
[dragSortOrder] => 60
[title] => White Paper
[content] => <p>See our collected studies of real life stratagies used by our clients and other successful businesses.</p>
[resource_type_icon] => file-o
[_tableName] => resource_type
)
)
</xmp> <a class='btn btn-default btn-md' href="categorytype.php?type=
Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151
">
<span class='fa fa-caret-right'></span>
Read more
</a>
</div>
<div class='col-md-3 service'>
<h3>
<span class='fa fa-file-text-o'></span>
Sample Product Report </h3>
<p class='small'>The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.</p>
<xmp>Array
(
[0] => Array
(
[num] => 1
[createdDate] => 2014-09-22 01:12:33
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:35
[updatedByUserNum] => 1
[dragSortOrder] => 70
[title] => Case Study
[content] => <p>Learn first-hand how we help our clients drive important business results.</p>
[resource_type_icon] => search
[_tableName] => resource_type
)
[1] => Array
(
[num] => 2
[createdDate] => 2014-09-22 01:12:59
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:15:00
[updatedByUserNum] => 1
[dragSortOrder] => 10
[title] => Sample Product Report
[content] => <p>The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.</p>
[resource_type_icon] => file-text-o
[_tableName] => resource_type
)
[2] => Array
(
[num] => 5
[createdDate] => 2014-09-22 01:15:24
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:13:13
[updatedByUserNum] => 1
[dragSortOrder] => 40
[title] => Form
[content] => <p>A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.</p>
[resource_type_icon] => list-ol
[_tableName] => resource_type
)
[3] => Array
(
[num] => 6
[createdDate] => 2014-09-22 01:15:58
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:12:35
[updatedByUserNum] => 1
[dragSortOrder] => 50
[title] => Newsletter
[content] => <p>Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.</p>
[resource_type_icon] => newspaper-o
[_tableName] => resource_type
)
[4] => Array
(
[num] => 7
[createdDate] => 2014-09-22 01:16:44
[createdByUserNum] => 1
[updatedDate] => 2014-09-27 07:11:56
[updatedByUserNum] => 1
[dragSortOrder] => 60
[title] => White Paper
[content] => <p>See our collected studies of real life stratagies used by our clients and other successful businesses.</p>
[resource_type_icon] => file-o
[_tableName] => resource_type
)
)
</xmp> <a class='btn btn-default btn-md' href="categorytype.php?type=
Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151
">
<span class='fa fa-caret-right'></span>
Read more
</a>
</div>
It seems to be repeating all the records for each trip through the loop.
I sure hope this gives you an idea on whats going on.
Michael Moyers
Owner of Just Rite Design Inc. A growing network of professionals in web design, graphic design, flash development, programming, and audio & video productions.
"Due to budget constraints, the Light at the end of the tunnel will be temporarily out!"