Jump to content

jester18

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Everything posted by jester18

  1. thank you very much, worked perfectly!
  2. Hello, Thanks for the reply. I have used floats on all the surrounding squares I just don't know how to float the middle square without it disrupting the surrounding float's position. I want it postioned exactly in the middle of the surrounding divs(just not sure how to achieve this). Please check out the attached image to see what I am refering to. thank you!
  3. Hello All, I have an image which contionously moves depending on different screen sizes, or browser size not quite sure. I used absolute positioning first however I found out relative positioning is better. heres is my css #ucd{ position: relative; top: -540px; margin-left: 170px; } still keeps moving when I look at the page on my friends desktop...any suggestion on how to keep the positioning the same? attached is an example of how i am structuring the Div's. The surrounding div's are floated left and right and stay in the same position but the centre image named "ucd" keeps moving. [attachment deleted by admin]
  4. Hello all, Wondering if you can help me, I am wondering if it is possible to get PHP to show the last websites you viewed, just giving the names of the websites in a list. If so? is there any pointers someone can give me as to how to learn to achieve something like this..I'd really appreciate the help!
  5. thanks for the swift reply, do you know how i could remove the ='s aswell from it? so its literally just the numerical portion 1.55727 Thank you!
  6. Hello All, I am wondering if you could help me? I know I have to use a regular expression but I'm really not sure how to achieve this, I want to be able to pull only the rate out of numerous currencies, an example: 1 British Pound Sterling = 1.55727 Canadian Dollar all I want to pull from that is 1.55727 ...the only way I know how is to do it by the amount of digits after the equals sign however that number can change so now im stuck. Would anyone be able to help me?
  7. Thanks very much for your help and paitence I think I got this now!
  8. Oh right I see, I wanted to display the physical image along with the details of the image and get PHP to output the XML so that Flash actionscript can read the XML. Thanks, sorry if I'm way off still learning all of this.
  9. Many thanks tried to do as you suggested most likely I'm doing this completely wrong the error im getting; Warning: Cannot modify header information - headers already sent by line 24 <?PHP $link = mysql_connect("***","****",""); mysql_select_db("***"); $query = "SELECT image,year,image_name,description FROM gallery"; $results = mysql_query($query); echo "<?xml version=\"1.0\"?>\n"; echo "<images>\n"; while($line = mysql_fetch_array($results)) { echo "<photo>" . $line["image"] . "</photo>\n"; echo "<photoname>" . $line["image_name"] . "</photoname>\n"; echo "<photodes>" . $line["description"] . "</photodes>\n"; echo "<photoyear>" . $line["year"] . "</photoyear>\n"; } header("Content-type: image/jpeg"); echo "</images>\n"; mysql_close($link); ?>
  10. hello all, Complete noob when it comes to PHP and MYSQL anyway I have put a series of images in my database, when trying to retrieve the images I just get a page of binary. <?PHP $link = mysql_connect("****","*****",""); mysql_select_db("***"); $query = "SELECT image,year,image_name,description FROM gallery"; $results = mysql_query($query); echo "<?xml version=\"1.0\"?>\n"; echo "<images>\n"; while($line = mysql_fetch_array($results)) { echo "<photo>" . $line["image"] . $line["image_name"] . $line["year"]. $line["description"] . "</photo> \n"; } echo "</images>\n"; mysql_close($link); ?> Anyone know what the issue could be? Thanks all
  11. have tried looking however possibly i'm typing the wrong description in the Google search query, haven't come across any relevant material
  12. Thank you for your response, however I have no idea how to achieve this.Would anyone be able to help me?
  13. Is it possible to get PHP to output your results from the database as links. I have a list of names I want to retrieve from mysql which I want to make clickable links to go to different pages.
  14. Hello All, I'm new to this forum completely new to PHP aswell. I'm wondering how to get PHP to output my results from MYSQL as links. I have a list of designers and and want the output to be a clickable list. Not sure how to achieve this? heres my code: <?PHP $link = mysql_connect("******","******",""); mysql_select_db(******"); $query = "SELECT designer_name FROM designer WHERE left (designer_name,1) ='a'"; $results = mysql_query($query); echo "<?xml version=\"1.0\"?>\n"; echo "<designers>\n"; while($line = mysql_fetch_assoc($results)) { echo "<designer><![CDATA[ <br />" . $line["designer_name"] . "]]> </designer>\n"; } echo "</designers>\n"; mysql_close($link); ?> Many Thanks
×
×
  • 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.