Jump to content

jlange

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

About jlange

  • Birthday 12/21/1990

Contact Methods

  • AIM
    livetoboard90

Profile Information

  • Gender
    Male
  • Location
    racine wi

jlange's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. the foreach is the best option still..i'm using simplepie (rss parser) and it does some weird OOP things (i think) which are way over my head. thanks for the reply, though, gives me exactly the answer I need.
  2. Maybe its something really simple, but I'd like to get a foreach going for items in an array, but I only want it happening a set number of times. I'm not really that much of an expert on loops (obviously), but I understand PHP, so go easy on me but not too easy!
  3. $stringpos = strpos($content, '.jpg'); $stringpos = $stringpos+4; $chars = $stringpos; $content = substr($content,0,$stringpos); $content = $content."\" style=\"height:100px\" /></a>"; works! thanks!
  4. ToonMariner: That gave me all of that extraneous text, and no image! i'll do some research on that function though, because to me it just looks like compiled C...
  5. by the way, i figured i can use a string search function to find a value from an array i'll make that will have all the different kinds of image file extensions, so, is there a string function to find what character number that is, or something? then, i could truncate it after that number of characters then just add on my string to the end.
  6. I'm not sure how to do this. What I'm trying to do is this: turn this: <a href="somelink"><img src="imgsrc" height="y" width="x">Some nonstatic text, courtesy of Flickr</a> into this: <a href="somelink"><img src="imgsrc" style="mystyle"></a> thoughts?
  7. Hi all, I'm not the best with JScript, and I've hit a roadblock in one of my projects because of it. I have a <select> with a lot of options, and another form with fields like username, password, first name, last name, etc. I would like those fields to fill with the information relating to whatever is selected in that <select> The data is generated via PHP from a MySQL database, if that serves any use. I look forward to hearing from you! This community is a great example of how the web lets people help one another and all that sappy stuff. PS, go easy on me, JScript to me is somewhat confusing, what with this.that.this(blah).that = this...PHP seems easier to me.
  8. Slightly off-topic: I have the id as the primary key. Is there a way to make new id's fill in the spaces caused by deleting old entries? It's just a temporary solution for now while I test out implementations, but I'd like to know.
  9. Hah, well, you lost me. But it's okay, I have something that works!
  10. Very cool. I think I'm going to take a simpler approach, and make a table for reservations that will have the date (m, d, and y) along with the id# of the object that's being reserved (referencing to another table), the id# of the faculty member who is checking it out, and finally the class period of the day for which its reserved. Making it time-based would be so much easier, but alas my school doesn't believe in making things easy. It's a work in progress and I'll update as I go along in case anyone wants to hear. I'm on Twitter; you'll probably find a lot of status updates going out today. (twitter.com/joey)
  11. Thanks much. I actually ended up SELECTing another value from the table (id). The list is being parsed for a <select> box that will then be submitted to remove whatever objects were selected. So, I have the id go to <select value="id"> and then I put the name column information betwixt the <select value="id"> and the </select>. I sort of feel like I'm actually coding useful things for the first time in my life.
  12. Hm, interesting. I had to nest a foreach in a foreach to get the contents of that array. It was like an array in an array or something. Strange. Thanks! I'll mark it as solved now.
×
×
  • 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.