Jump to content

Giddy Rob

Members
  • Posts

    63
  • Joined

  • Last visited

    Never

Everything posted by Giddy Rob

  1. Hi, I have an array that i need to put the values into a variable and seperate by |. I have tried this but it misses the first value out and puts a | at the end, which i don't want. $count=0; while($count < sizeof($alsolike)){ $mightlike=$mightlike."|".next($alsolike); $count++; } If i have four values in the array from 1-4 I would like to put it in a variable so it looks like this "1|2|3|4" Can anyone help me? Rob
  2. Wicked, that would have taken me ages to find the documentation on how to do that. Thanks a lot for your help Rob
  3. Sorry if this sounds dumb but u just mean: <select name="alsolike[]" size="5" multiple> cheers Rob
  4. Cheers for the quick response, i understand the post part. How do i define array in the first place for the menu?
  5. Hey, thanks for your help but I have never done that before. What would the code look like just to help me understand. Been working 13 hour days this week trying to get this project done so my brain ain't firing on all cylinders! Cheers Rob
  6. Hey, I have a list that can have multiple selections and it is populated by running a mysql_fetch_array. <select name="alsolike" size="5" multiple> <?php include('dbconnect.php'); $likealso="SELECT productid, title FROM bknproducts"; $alsolike=mysql_query($likealso); while($alsolikerow = mysql_fetch_array($alsolike, MYSQL_NUM)){ echo"$alsolikerow[0]"; echo"<option value=\"$alsolikerow[0]\">$alsolikerow[0]: $alsolikerow[1]</option>"; } ?> </select> This part works fine but I am not sure how to get the mulitple values selected by the user back into a variable, which I will use to put the data back into the database. How do i know which options they have selected so i can just use the values of those in my concatenated variable? HELP ME PLEASE!!!! Cheers Rob
  7. Ah, cool. I will have a look. Thanks for your help everyone. Cheers Rob
  8. Thanks for the reply, but depending on the record depends where the line spacing is (if any) so it needs to be done automatically if possible? I am basically using one page that gets fed a record from a database depending on the id number so some text might be just one paragraph, but also there might be three! It all depends on what the user has put in the database. I would like it to be able to detect the spacing and put \r\n. Is this possible? Cheers Rob
  9. Hey, I have some text data in a database that im outputting to a page. The text is made up of two paragraphs divided by a line space i.e. "rar rar rar. rar rar rar" When I use mysql_fetch_array to get the value out of the database it gets rid of the spacing i.e. "rar rar rar. rar rar rar" I have checked in the database and it conserves the line spacing so I guess it must be something to do with the php? Is there a way i can output the value with the line spacing intact? Any help would be great. Cheers Rob ???
  10. Thanks very much, that will do me! See ya! Rob
  11. Hi, Does anyone know how to just display the first 20 characters, for example, held in a php variable? Any help would be super. Cheers Rob
  12. Hey, If that does't work have you thought of using a .flv movie file and progressivley downloading it from the server? It will require the use of flash but it works a treat. Regards Robert Shillito [url=http://www.dustmonkeys.com]http://www.dustmonkeys.com[/url]
  13. Hey, I have a xml feed I need to put into a html document, does anyone know how I get the records from the xml into php variables for the html page? Hope that makes sense. Cheers Rob ???
×
×
  • 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.