Jump to content

taneya

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

taneya's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I have limited knowledge of php. I am working on a Google Maps mashup using their API. I am trying to generate a php script to produce an output as below so I can insert it into my file that drives the map. I need a row of space between each result. The parts in bold are the database field names to supply the variable. var markermarkerNum = newGMarker(newGLatLng(latlng),markerOptionsmarkerOption); map.addOverlay(markermarkerNum); GEvent.addListener(markermarkerNum, "click",function() {markermarkerNum.openInfoWindowHtml("><div style='font-size:80%;padding:5px;height:90px; width:330px;'><div style='float:left;padding-right:5px;'><img src='img'></div><a href='url' target='_blank'>name</a><br>location<br>years<br>contentType</div></div>");}); I started on my own and was able to configure the PHP script to generate the first two lines, but got stuck after that. I did the code for querying the db in my file, but I can't seem to figure out how to get the output configured correctly. Is there anyone that may be able to help? or configure it for me? I don't think this would take a long time for someone who knows what they are doing. I just don't think I know enough PHP to problem solve. I appreciate any help in advance.
  2. Hi all, an inexperienced user here but I hope this is a simple question. I have a page on my site that shows results from a search. Each row of results contains an ID number. How do I turn that ID number into a link? I plan to use this link to show more details. I would prefer not to have to hard code a URL into the database table (a workaround I have used before). I am interested in very basic explanations and possibly some sample code I could study? Or, perhaps be pointed to a book/website I can read to help me understand how to do it? thank you in advance.
  3. Thank you both for the suggestions! I plan to get back to this tonight and will try it out. May I ask another question though? Let's say one field is site name and another field is URL. What would the code look like if I wanted to show the text of the site name, but make that text a link using the URL in the other field of the table?
  4. I am a real novice w/ PHP. If I have a field in my database table that is a link (for example - http://www.phpfreaks.com), is there a way to use PHP to turn that URL into a link when displayed on my php page? I'd prefer not to have to the a href tag and info around the link itself into the database table. I certainly welcome any suggestions. Taneya
  5. Hi, I am a relative newbie with PHP and have two questions that I'm hoping someone can help me understand how to do: 1. I have made a webform that has five input fields for entering data into a mysql table. One of the fields on my form I would like the user to select from a defined list of options. However, I would like this list to be extracted from my database, and not one that I have to hardcode the options. 2. For this same field, the list that the user would select from is a name. However, there is another table in my database that assigns this name and ID number and it is in fact this ID number that needs to go into the particular table that my form is set up to enter into. Is there a statement that I can write that will let the person select the name, but then what is entered into the form is actually the ID number? I can provide more detail if needed, but any insight would be most helpful! Taneya
×
×
  • 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.