Jump to content

azonicds2

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Everything posted by azonicds2

  1. Ignace you are a god! That worked brilliantly. Thank you very much for that. Very much appreciated! I had tried to use implode before but i wasn't using it correctly obviously. Thanks mate! Danny
  2. Have tried that Robert and i can't get that to work either. Any other ideas? Looking at my code am i going about this the wrong way, should i be using some sort of count? Thanks a lot!
  3. Wont that do it for every row though, rather than just the last one? Thanks
  4. Hi guys Had some great help from here before so thought id try my luck again. Basically i have an array query that works fine, but the echo is going into a piece of Javascript, its basically telling the Java what image paths to use for a Slideshow, each of these needs to be seperated by a comma. Accept for the last one in the array needs to have the comma removed. I can remove the last comma for each row no problem but thats where the problem lies. I only want to remove it from the last row in the array. Any ideas? My code is as follows: <?php $query2 = mysql_query("SELECT * FROM homeimages ORDER by Filename ASC") or die(mysql_error()); while ($row2=mysql_fetch_array($query2)){ $string = "['http://www.benbrownphotography.co.uk/images/home/upload/".$row2['Filename']."'],"; $output = substr_replace($string,"",-1); echo "$output"; } ?> This is fine for if there is only one row in the database but when you add more it is obviously removing the comma from every row. How can i remove it only from the last row in the array? Thanks a lot in advance! Danny
  5. Hi Guys Here goes, i've no idea where to start with this, and i know this place has sorted me out before with all my php needs Im only used to connecting php with MySQL however im now trying to connect to a Microsoft Access .mdb database that i have on my web server and have no idea how. Ive tried lots of combinations and have had no luck. I understand that there is odbc and DSN-Less connections but which one do i use. Also if ODBC how on earth do i go about setting an ODBC connection up on my web server, do i get my hosting company to do it for me?? If possible i would like to by-pass the odbc connection and connect to the db in a different way. Just for a little extra information i have the database file called hope.mdb inside a subfolder on my domain called db. Can anyone please help me?? Thanks alot in advance for any help at all. Danny
  6. Hi all, Ive had some good answers here in the past so thought id stop by again. I'm wondering if its possible to set up an announcements page on a website that can receive emails. To the effect that the subject of the email becomes the Announcement title and the text of the email becomes the body of the announcement? Not sure how to go about this or whether its even feasible, but any help or ideas are greatly appretiated. Thanks alot in advance Danny
×
×
  • 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.