
Beeeeney
Members-
Posts
193 -
Joined
-
Last visited
Everything posted by Beeeeney
-
Rotating Banner Stop Rotating When I Remove A Link.
Beeeeney replied to Beeeeney's topic in Javascript Help
I know that, but I'm not allowed to use the JS file because I don't know JS. They don't want me to break their site, which is understandable. The devs are looking at it behind me as we speak. Thanks for the comments, anyway. -
Rotating Banner Stop Rotating When I Remove A Link.
Beeeeney replied to Beeeeney's topic in Javascript Help
I could, but I'd have no idea how to fix it. -
Rotating Banner Stop Rotating When I Remove A Link.
Beeeeney replied to Beeeeney's topic in Javascript Help
No, there clearly is no JS in what I posted. I quite literally have no clue where the source of the problem is. That's why I posted the code from the page I edited, which in turn broke the banner. That seemed the most logical thing to post. -
Rotating Banner Stop Rotating When I Remove A Link.
Beeeeney replied to Beeeeney's topic in Javascript Help
Yeah, I'm not a complete newbie with it. I learned the basic syntax right before I started learning PHP. -
Rotating Banner Stop Rotating When I Remove A Link.
Beeeeney replied to Beeeeney's topic in Javascript Help
Here's the code from the top of our index.php file down to where the second image code for the banner is. <?php $webroot=""; for ($i=0; $i<substr_count( str_replace("\\",'/',$_SERVER["SCRIPT_FILENAME"]), "/")-5;$i++){$webroot=$webroot."../"; } // Calculate Statistics $today = date('Y-m-d'); require_once $webroot."statistics/statistics.php"; $statistics = new statistics('banner'); $search = new OfferSearch(); $search->setSource('tourops'); if (isset($_GET['cruiseline'])){ $cl = $_GET['cruiseline']; if ($cl){$search->setCruiseline($cl);} }; ; if (isset($_GET['dest'])){$dest = $_GET['dest']; $search->setCruiseline($dest);}; $search->setStartdate(new ParameterRange(date("Y-m-d"), date("Y-m-d", mktime(0, 0, 0, date("m"),date("d")-1,date("Y")+2) ) ) ); //--------------------------number of offers displayed --------------------------------------- $results = $search->getResults($dbh,'price','DESC',0,1000); shuffle($results->entries); $results->entries=array_slice($results->entries, 0, 6); ?> <!-- Start BODY section --> <div id="jsslider-container1"> <div class="ws_images"> <?php $i = 0; ?> <!--<a href="http://www.planetcruise.co.uk/exclusive-offers/search/offers.php?ids=70421,112358,70418&title=KEEP%20IT%20SIMPLE%20WITH%20MSC%20CRUISES&bi=New-Template_MSC-Keepi-it-simple_May-2012_landing.gif"><img src="http://planetcruise.co.uk/images/header/header_banner/New-Template_MSC-Keepi-it-simple_May-2012.gif" width="960" height="320" id="wows<?//++$i?>"/></a>--> <a href="http://www.planetcruise.co.uk/cunard/queen-mary-2/africa/28-mar-2013/29-nights/34806/"><img src="http://planetcruise.co.uk/images/header/header_banner/cunarddeal.jpg" width="960" height="320" id="wows<?=$i?>"/></a> <a href="#"><img src="http://planetcruise.co.uk/images/header/header_banner/Deals-Channel-banner-Oct-2012_Rev-B.gif" width="960" height="320" id="wows<?=++$i?>"/></a> -
Rotating Banner Stop Rotating When I Remove A Link.
Beeeeney replied to Beeeeney's topic in Javascript Help
I know the banner is JS, but I know literally nothing of JS and apparently I'm not allowed to know where that code is located, even though I have full FTP access. No worries, thanks. I'll let my manager know that it's a JS problem. -
I have a small problem with my company's rotating banner. Our website is http://www.planetcruise.co.uk Basically, if I remove the link for the second banner, it stops rotating and doesn't let you view anything past that banner. Basically does anyone know how I can get it to display as a static image, rather than an image which requires a link? General code structure: $results = $search->getResults($dbh,'price','DESC',0,1000); shuffle($results->entries); $results->entries=array_slice($results->entries, 0, 6); ?> <!-- Start BODY section --> <div id="jsslider-container1"> <div class="ws_images"> <?php $i = 0; ?> <a href="#"><img src="http://planetcruise.co.uk/images/header/header_banner/Deals-Channel-banner-Oct-2012_Rev-B.gif" width="960" height="320" id="wows<?=++$i?>"/></a>
-
Surely from those errors you can see where the problem lies?
-
Fantastic mate! So what's your question?
-
I was waiting in anticipation on the live feed until it got cancelled. There's footage of his test jump on YouTube though and it's pretty insane.
-
No, you can use it with absolute positioning.
-
Now don't quote me on this because I'm a beginner but that's not going to echo anything because you're trying to call something which doesn't exist. If in your DB you has "Chester City" and you queried something LIKE "Chester%", it would return "Chester City", but not the other way around. I'm sure one of the experts on here will correct me if I'm wrong.
-
Hi all. I'm a complete nub at PHP so I was wondering if anyone could help me out? This code: <?php mysql_connect("localhost", "XXX", "XXX") || die('Error:' . mysql_error()); mysql_select_db("newsite"); $query = "SELECT * FROM `newsite` . `content`"; $post = mysql_query($query); echo $post; ?> Returns "resource id #4" to the browser. Any ideas on how to get it to return the actual DB data? Thanks in advance.
-
It seems to work fine?
-
I would do exactly what you described; store it in a database as a long text. Though I'm new to PHP so the experts on here might have other ideas. You could then just call it by ID in your code.
-
Well all that submit button will do is send the form data to "go.php", if that's what you're asking? Do you have a page called "go.php"? All you then need to do is catch the form data with $_POST. If you don't, then of course it isn't going to do anything.
-
G'afternoon all. I've actually been lurking on these forums for a couple of weeks now so I thought I'd take the plunge and sign up. I've just started my sixth week in my new web development apprenticeship and I'm at the stage where I have to learn PHP. 6 weeks ago I knew nothing of even HTML but I'm pretty confident in HTML and CSS now. They're kinda just leaving me to my own devices to learn but I feel like I've hit a brick wall in my PHP learning. I've tried lynda.com, w3school, nettuts and even downloaded some books but I'm not sure of the best way to learn! Anyway, hi.