Jump to content

dennismonsewicz

Members
  • Posts

    1,136
  • Joined

  • Last visited

About dennismonsewicz

  • Birthday 02/03/1987

Contact Methods

  • AIM
    noosemonsewicz
  • MSN
    noosemonsewicz@hotmail.com
  • Website URL
    http://www.dennismonsewicz.com

Profile Information

  • Gender
    Male
  • Location
    Nashville, TN

dennismonsewicz's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. Ah that makes sense! So my 2nd example is stating the $var could be an array, right?
  2. Can someone explain the difference between the following? function a(array $var) { } function a($var = array()) { } function a(Array $var) { } I have seen these recently in a script I am modifying, but not 100% sure as to what each one does. Well I know what the middle one does, but am a little confused on the 1st and 3rd one. Thanks! Dennis
  3. I am trying to create a script that will show a block of images for every nine items in an array. So it doesn't need to show the block of images for every 9 items, but every time the counter hits 9 show a block of images. Make sense? I am stumped as all get out. Thanks for all the help in advance!
  4. Ok I think I know what I need to do... Its the way a jquery slider is setup... there is an unordered list that has to have 9 items per list. So I have to figure out a way to show blocks of unordered lists with 9 items per.
  5. And what is the difference between ++$i and $i++?
  6. Wow thats a lot closer than what I could have done tonight! Thanks man! Now its cutting off at 9 images but not continuing the foreach loop to show the rest of the images.
  7. Ah gotcha... I just tried it and thats right... I am just trying to show 9 images at a time because of a photo gallery I am working on. Its built to show 9 at a time, but if there is more than 9 then a sliver of the 10th image appears on the page... I just need the script to break at the 9 and then show the next set of 9 images.
  8. Hmmm what would I do instead of using a for loop?
  9. I am working on a photo gallery script in which I need to show 9 images at a time. Here is my script so far <?php foreach($pictures->result() as $p): ?> <?php for($i = 1; $i <= 9; $i++) { ?> <div class="item"> <ul> <li><a href="images/gallery/<?=$p->category;?>/<?=$p->photo_name;?>" rel="example1" ><img src="images/gallery/<?=$p->category;?>/thumb_<?=$p->photo_name;?>" alt="#" /></a></li> </ul> </div><!-- end item --> <?php } ?> <?php endforeach; ?> At the moment the script is showing one image at a time 9 times and for every entry in my database. I have been battling this for a little while now. Thanks in advance for all of your help!
  10. I figured out what I was doing wrong. $xml = new SimpleXMLElement($result); $ticket_count = (string) $xml['count']; The first node in the XML was what I was trying to work with and I was going levels in.
  11. I am trying to retrieve an attribute from a node and I keep getting the error: Warning: main() [function.main]: Node no longer exists in /Users/dmonsewicz/Projects/noosemonsewicz/api_stuff/index.php on line 70 PHP Code $xml = new SimpleXMLElement($result); $arr = $xml->tickets->attributes(); echo $arr['count']; XML <tickets count="0" type="array"></tickets> Any ideas on what I may be doing wrong?
  12. I am working on a script for a client of mine that will allow their clients to select photos to order and then will submit the order so that an admin can go back in and look at the order. I am stuck on one thing. I don't know how to go about creating an order id. I need something that is tied to each entry in the database. I thought about creating the order in the DB and then taking the created rowid and using it as the order id, but that doesn't seem efficient... any ideas? Thanks in advance
  13. I have a CURL app that makes a call to an external webpage on a different site and based upon certain URL params, this webpage will generate a PDF and then send the PDF back to the browser for download. Is there anyway to grab this PDF with CURL? I have tried it but CURL decodes the file and shows a bunch of weird characters on the screen. Thanks in advance! Dennis
  14. I have been banging my head against the wall for days on trying to get my web server optimal to my standards. My company is using a Java based CMS that calls for Tomcat to run on my ubuntu box which uses Apache and AJP Proxy to route everything. Is there anyway to configure my server to route requests for Tomcat through Tomcat and request for PHP through Apache alone?
×
×
  • 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.