Jump to content

cturner

Members
  • Posts

    148
  • Joined

  • Last visited

    Never

About cturner

  • Birthday 04/22/1973

Contact Methods

  • Website URL
    http://www.blueguminteractive.biz

Profile Information

  • Gender
    Female
  • Location
    My computer

cturner's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I have tried your code, ranjuvs and have edited your code to suit what I am after, now it is coming up with a blank page. Here is the code which I have edited: $testimonial = array("testmonial1" => "companyname1","testmonial2" => "companyname2","testmonial3" => "companyname3","testmonial4" => "companyname4"); $rnd = rand(0, 3); print $testimonial[$rnd][$rnd]; I wanting to display the testimonial then the company name, because I am needing to make the company name a different colour to the testimonial. Could someone please tell me how I can get pass the blank page thing, and change the colour of the company name?
  2. I am wondering if someone could please tell me, how I can have a random multi array? This is an example of what I am after: Testimonial here Company Name here. The above must be randomly selected from an array. I will have at least 8 testimonails with company names to display, more maybe added later. I have no idea where to start with this. Thanks in advance.
  3. Someone please I desperately need this done asap.
  4. I am wanting to display a title and description to match a group of photos. The result from my code displays this: Title1 Description1 Photo1 Title1 Description1 Photo2 Here is my code: require "config.php"; // more code here $sql = "SELECT * FROM `livestock_photos` WHERE parent_id = '".mysql_real_escape_string($row['id'])."'"; if($debug == TRUE) echo '<p>DEBUG3: '.$sql.'</p>'; $result2 = mysql_query($sql) or die ('Could not query because: ' . mysql_error()); while ($row2 = mysql_fetch_assoc($result2)) { echo '<strong>'.$row2['title'].'</strong><br />'; echo $row2['description']."<br />"; echo '<a href="javascript:void(0)" onClick="popWin(\''.$images_location_large.$row2['filename'].'.htm\', \'\', \''.$popup_width.'\', \''.$popup_height.'\')"><img src="'.$images_location.$row2['photos'].'" border="0" /></a> '; $parent_id = $row2['parent_id']; } // more code here mysql_close(); My table structure is: Livestock_photos photos_id // the auto-incremented number parent_id // is the livestock listing's number title description filename // displays like this: livestock photo photos // displays like this: livestock photo.jpg You will be able to see why I have used filename and photos in the database, by looking at my code above. A photos row only displays one thing not multiple things. Can someone please help me solve this problem asap? Thanks in advance.
  5. I have tried that mwasif. It doesn't display in the order that I want. Anyway here is a part of my code that is revelant to what we are talking about: $query5 = mysql_query("SELECT title, DATE_FORMAT(date, '%W, %M %e, %Y') as date FROM `mediareleases` ORDER BY date ASC") or die("Could not query because: ".mysql_error());
  6. Thanks for that fenway. How do I display all of the different dates into this order: Wednesday, March 1, 2008 Thursday, March 2, 2007 and so on? With the most recent media release at the top.
  7. I am wondering if someone, could please tell me how I can display database content in date order? I have a date column that is a date type. I would like the date to be shown like this: Wednesday, March 1, 2008. I would also like the date to be ordered with the year then the month then the date of that month. Thanks in advance.
  8. There is a lot of code. However this is as far as I got with the above: if (($package == '50 MB') AND ($periodof == '1 year') AND ()) { $total = "$"; } elseif () { }
  9. I am trying to setup an order form on my website. Am stuck with the following: I need to determine which package was selected and how many years was selected. Also I need to find out which items have been selected in the listbox. Then add the total cost of that to the selected package cost. Then multiple the how many years to the total cost of all of the above. The listbox has addons for the package which will have prices within it. As well as names of the addons. Can someone please help me with this? Thanks in advance.
  10. As the above question says, I want to know what the most search engine friendly cms? It must be written in PHP and using mysql as the database. All comments are welcome. Thanks in advance.
  11. I am wondering if there is a script out there for displaying web page content into a foreign language, such as french? Or is there an easy way of programming it? I am going mental over this. I have been searching everywhere for a script but got nowhere. So I thought that maybe php freaks has the answer. It must be in php and mysql. Also how can I test it if my computer can only accept english? Can someone please help me work this out? Thanks in advance.
  12. I am trying to display an error only if the user has entered a username that is less than 6 characters. It hasn't worked for me. When I test the whole code and enter a username of 6 characters or more, it displays an error. It should only display login error when the username is less than 6 characters. So can someone please tell me how I can do this? Thanks in advance. Here is my code: if (strlen($_POST['username']) < 6) { $arrErrors['username'] = 'Login error.'; }
  13. Problem solved. The solution was I put: $realmonth1 = date('F', mktime(0, 0, 0, $current_month-1, date("d"), date("Y"))); $realmonth2 = date('F', mktime(0, 0, 0, $current_month+1, date("d"), date("Y"))); $realyear1 = date('Y', mktime(0, 0, 0, $current_month-1, date("d"), date("Y"))); $realyear2 = date('Y', mktime(0, 0, 0, $current_month+1, date("d"), date("Y"))); above all of the code. Then placed those variables in a query string.
  14. When someone clicks on a link it is suppose to display the whole date in a different page. I still can't get the date links to display. ??? Here is my updated code: require "config.php"; // more code here $year = $_GET['year']; $month = $_GET['month']; // WHERE startmonth = $month AND startyear = $year $sql = "SELECT startdate, startmonth, startyear FROM calendar WHERE startmonth = '$month' AND startyear = '$year'"; $result = mysql_query($sql); while ($row = mysql_fetch_array($result)) { $days_with_events[] = $row['startdate']; } //day 0 of the next month returns the last day of the current month $last_day_of_month = date("j", mktime(0, 0, 0, $month+1, 0, $year)); for ($i = 1; $i <= $last_day_of_month; $i++) { if (in_array($i, $days_with_events)) { echo "<td><a href=\"event.php?date=" . $i . "&month=" . $month . "&year=" . $year . "\">" . $i . "</a></td>"; } else { echo "<td>".$i."</td>"; } if ($theday == 6) { echo "</tr>"; echo "<tr>"; $theday = -1; } $theday++; echo " "; I have changed my table structure to: Calendar id startday startdate startmonth startyear starttime endday enddate endmonth endyear endtime // rest is irrelevant to the code above
×
×
  • 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.