Jump to content

JSHINER

Members
  • Posts

    465
  • Joined

  • Last visited

    Never

About JSHINER

  • Birthday 12/24/1985

Contact Methods

  • AIM
    SHINERJ6

Profile Information

  • Gender
    Male
  • Location
    Boston, MA

JSHINER's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. I'm not exactly sure what the question is here? Can you go into a little more detail?
  2. If I have the follow blog post: "<img class="alignnone size-full wp-image-24" style="float: right; margin-left: 10px; margin-bottom: 10px" title="Old Phone" src="http://site.com/old-phone.gif" alt="Old Phone" width="250" /><b>This is the blog text here.</b>And some more blog text." How can I get it to just display: "This is the blog text here. And some more blog text." Basically I need formatting and images taken out of it. If all I can do is images that's fine, but I need them out at the very least.
  3. <?php // Sample Code $cat_id = array(25, 11, 73,14); $cat_name = array('Apple', 'Bananna', 'Clown', 'Dog'); $category = 11; for ($i = 0; $i < count($cat_name); $i++) { if ($cat_id[$i] == $category) { $last = --$i; $next = ++$i; } } echo '<a href="page.php?id=' . $cat_id[$last] . '"><< ' . $cat_name[$last] . '</a> || '; echo '<a href="page.php?id=' . $cat_id[$next] . '">' . $cat_name[$next] . '></a>'; ?> Using the above. It works great for $last, but for $next it is showing as the current (in this case 11 since I set it to that)
  4. Actually sorry - that returns nothing.
  5. Andy-H - Thanks! But... That returns Next as 14 - Last as 73 What I was looking for was Next: 73, Prev: 25 Any thoughts?
  6. The page hits another query using the ?id= in the address. So the page knows its "Banana" by the page.php?id=11 (11 is the category_id of Banana)
  7. Array ( [0] => Array ( [category_id] => 25 [category_name] => Apple ) [1] => Array ( [category_id] => 11 [category_name] => Banana ) [2] => Array ( [category_id] => 73 [category_name] => Clown ) [3] => Array ( [category_id] => 14 [category_name] => Dog ) ); With the above array, let's say I'm on a page that is currently "Banana" (page.php?id=11) - how can I get it to know what the next and previous category is? So Next: 73, Previous 25 (using the category_id) Thanks!
  8. Let's say I have the following: $link = "<a href="http://www.site.com" target="_blank"><img src="file.jpg"></a>"; How can I get it to just echo: <img src="file.jpg">
  9. I have a form where a user enters a username. I want it to kick back an error if they enter their email address. How can I get it to see if a "@" or "." is in the entry?
  10. Tried going through that page - none of the sorts seem to be working. foreach($interestCount as $key=>$val) { $item = array(); $item["term"] = $key; $item["counter"] = $val; if ($val> $maximum) $maximum = $val; $terms[] = $item; } How can I sort that so it sorts by "counter" highest to lowest.
  11. one more thing... can you sort the array by "counter" ?
  12. Array ( [bread] => 19 [butter] => 19 [coke] => 4 [orange] => 7 ) How can I get this into an array that looks like this? $terms[] = array('term' => $term, 'counter' => $counter); So 'term' would be "bread" and 'counter' would be "19" and so on.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.