Jump to content

MrRay

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

About MrRay

  • Birthday 05/21/1988

Contact Methods

  • AIM
    abitfocused
  • MSN
    iamray@bcn.net
  • Website URL
    http://not hosted yet

Profile Information

  • Gender
    Not Telling
  • Location
    Otis, MA

MrRay's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey everybody :), not sure if you still remember me, but I need help again for the new revision. I wanna parse xml w/ php and use that to generate pages. As for actually doing that part, it has not happened yet, for now I am simply preparing. The XML document I plan to have set up like this: [code]<inventory>               <item>                         <number></number>                         <century></century>                         <dimensions></dimensions>                         <value></value>                         <sold></sold>                         <category></category>                         <artist></artist>                         <name></name>                         <description></description>                         <images></images>                         <listed></listed>               </item> </inventory[/code] Was my original idea, but I got a different idea involving having the xml be used to point at folders containing other data, which would decrease the parsing time. Does it sound practical? I am aware that the downside would be that extraction of data for other applications would not be as convenient... But would the performance increases be worth it? Also: is this method faster than using MySQL? What I was shooting for was a site that could do rss, wml, have the abilility to work with another cms if the need were ever present, and be able to be easily integratable with things. I'm just not sure enough though...I'm far to new to the xml thing. What is the best method?? As always, thank you for aiding me. Ray
  2. you're awesome. when this site gets all of its kinks out and hes happy with it I'm gonna show you it. i owe you one. theres been so much going on and stuff here it wouldve been a nightmare finding time to figure it out. if I can get some free time maybe I'll try to help you guys convert to smf to return the favor :)
  3. I have setup a static menu, which I want to pass a keyword to a php script that already exists. How would I approach this? [pre] <?php require('top.inc'); require('menu2.inc'); echo " <div id='main' class='hideMe'> <span class='content_header'>TEST </span> <div class='content_box'> \n"; mysql_connect('localhost', 'blah', 'blah'); mysql_select_db('dbname'); $sql = "SELECT (data, number)         FROM items         ORDER BY area, locname"; $res = @mysql_query($sql); $count = 0; while (list ($data, $n) = mysql_fetch_row($res)) {     echo "<div class='item_box'>\n           <div class='item_pic'><a href='$n\.htm'>\n<img class='noborder'  src='styles/Images/lo_res/$n\.jpg'/></a>\n   <div class='item_content'>\n                 $data\n<br/>Item no\. upper($n)\n</div></div>";     if (++$count % 4 == 0) {         echo "\n</div>\n\n";     } } echo "<br/></div></div>\n"; require('content.inc'); require('footer.inc'); ?>[/pre] this code was originally from barand when he helped me out a few weeks ago, but i modified it for my application on the site. I want this code to take what the user sends through the link and make it use this script on that specific data
  4. I am not looking for people to give me code, because I need to figure this out on my own, but I want to make a dynamic menu where if the user triggers a MouseOver() function on a link, a corresponding image will appear with corresponding text. I really wanna learn how to do this on my own, I just need some advice. +-----------------------------------+ |___MAIN BOX___________ | | +---------------+---------------+| | |menu area...|image area..| | | | \\\\\\\\\\\\\\\| \\\\\\\\\\\\\\\| | | | \\\\\\\\\\\\\\\+---------------+| | +---------------+text area .....| +-----------------------------------+ thats the basic idea
  5. i figured it out, for some reason my DOCTYPE in the file top.inc was stopping the page from being loaded, it may have been the part with the <?xml (whatever i put there) ?> tag for formatting and stuff. Im pretty sure it was that actually.
  6. the parts I am concerned about are where it has [code] <?php require('whatever.inc') ?> [/code] and it won't do anything with it. i don't understand why it won't load the parts im telling it to for the page
  7. [code] <html><body> <?php require('top.inc'); require('menu2.inc'); ?>     <div id="main" class="hideMe">     <span class="content_header"><?php echo "$select_name" ?></span>         <div class="content_box"> <?php mysql_connect('localhost', 'asdfasdf', 'asdfasdf'); mysql_select_db('dbname'); $sql = "SELECT item_number, year, materials, dimensions, location, cost, misc         FROM items         ORDER BY area, locname"; $res = mysql_query($sql) or die(mysql_error()); $count = 0; while (list ($i, $y, $m, $d, $l, $c, $misc) = mysql_fetch_row($res)) {      echo "<div class='pic'><img src='$i'><br class='item'/>$y<br class='item'/>$m<br class='item'/>$d<br class='item'/>$l<br class='item'/>$c<br class='item'/>$misc</div>\n";      if (++$count % 4 == 0) {          echo "<br class='item'/>\n";      } } echo "<br/>\n"; ?>         </div>     </div> <?php require('content.inc'); require('footer.inc'); ?> </body></html> [/code] what is keeping this from working?
  8. [!--quoteo(post=384365:date=Jun 15 2006, 04:50 PM:name=theCrandallSter)--][div class=\'quotetop\']QUOTE(theCrandallSter @ Jun 15 2006, 04:50 PM) [snapback]384365[/snapback][/div][div class=\'quotemain\'][!--quotec--] yea thats almost what I am looking for, it definitely has the concept. I was thinking of using a while loop, but I wasn't sure how to implement it. I'll reply again w/ the site code after I clean it up a bit more for the recent revision I've been doing--the one I have now is about 4 versions old so gimme a sec to do updates to it and then we can go from there, I really have to thank you for this I was lost w/ this at first. [/quote] I changed a bit and added the extra parts in and got it to work, so I'm good, but I really have to thank you on this :). I am just a newbie, but at some point I wanna get as good as you. I think I'll take PHP when I go to college in the fall.
  9. yea thats almost what I am looking for, it definitely has the concept. I was thinking of using a while loop, but I wasn't sure how to implement it. I'll reply again w/ the site code after I clean it up a bit more for the recent revision I've been doing--the one I have now is about 4 versions old so gimme a sec to do updates to it and then we can go from there, I really have to thank you for this I was lost w/ this at first.
  10. Well, most of the problems I had in the past have been overcome. Currently I have been trying to learn LAMP (linux, apache, mysql, php) based webdesign on my free time and I am going pretty slow in my progress. I am making an antique site for a friend/boss of mine and I have a question about how to do something. We have the site: +-------------------------------+ |the site!.............................| +-------------------------------+ |.menu ..............................| +-------------------------------+ |+-----------------------------+| ||content_window...............|| ||-----float left row-----------|| || +---+.+---+.+---+.+---+ || || |pic |..|pic |...|pic |.| pic| || || |txt |..| txt|...|txt |..|txt | || || +---+.+---+.+---+.+---+ || ||------------------------------|| |+-----------------------------+| +-------------------------------+ so if i made it good enough to read, i have 4 boxes w/ pictures and descriptions of items in a row to prevent overflowing when i float them left, and I want my mysql database to have stuff like the item no and stuff like that that i already pretty much have a good idea of. The thing I am having a little bit of confusion with is the php. I want it to check if it there is any results, if there are---it will make a row for 4 boxes w/ descriptions and pics and then close the row make a new one and start over. I need some guidance cause I am a little new to this. If anyone could help I can not express how much I would appreciate it. I would try it on my own, but I want to see if any of you guys could give me a push in the right direction at least so I save a little time. I am using and CSS w/ XHTML strict rules for the setup. If I HAVE TO, I might cave and use tables..but I rather not... Any help would do THX Ray -------------------------------------------- BTW: I graduated--wooot woot
×
×
  • 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.