431 Posted Topics
Re: > Can we save whole page in cache and reload it again? For reference, yes this can, but not using Javascript. You you want to venture into server side languages, such as PHP, then this is easily done. Caching is a method of storing the output code to be used … | |
Re: You need to call the methods in javascript. Use: `$('#your_id').popover()` or `$('.popover').popover()` and apply the `.popover` class to all of your popovers. Here's a [jsFiddle](http://jsfiddle.net/acr6kedt/) to demonstrate. Just change the `MyPopover` and `MyTooltop` to whatever you want. The thing is, is that they don't actually make it real clear you … | |
Re: Platform shouldn't make a difference. These are PHP errors, and will show up no matter what platform you are running on. Are you CERTAIN the file `/uploaded/606.txt` exixts? And it might be worth trying this: `$target_path = "uploaded/";` Because it is common practice to use `./` or simply nothing, because … | |
Re: Well it's nice to see someone using OOP for a change in the paginator class. Try to keep to this good habit aha. Simply put the while loop inside your code where you want the loop. while($row = $stmt->fetch()){ echo '<div>'; ... } If you're on about inproving the PHP … | |
Re: If everything is contained within the same file, a static should be able to handle it. Without seeing your code it's difficult to tell. Just use some basic markup like: class globals { static $var = "Hello world."; } echo globals::$var; There's no reason why a global shouldn't, because if … | |
Re: I have replicated this in [jsFiddle](http://jsfiddle.net/z9v6eszt/1/), and all is working okay. Your alert script will not kick in until `$("#dd-event").change()` is called (as its within an IF statement). So as soon as you click on the dropdown and change the value, your script suddenly works, giving the appearance that jQuery … | |
Re: Just call the plugin in your demo link, and use the following snippets. Ajust your PHP: <a href="studentmgt.php?student_id='.$data['.student_id.'].'" class="confirm">Delete</a> jQuery: $(".confirm").confirm(); Then just put some PHP/SQL in the link to delete the record. | |
Re: Seriously guys I think some of you need to change your careers and become comedians because this is hilarious. > I though we were comparing beards not penis size. zzzzz. Lol well maybe some are, but I'll leave them to their own problems aha. > Mine is more stubble than … | |
Re: > I need to select '#foo #three' using 'this' to get this result Smells like homework to me? Well learn what the `.text()` function is and how to use it, because that's very helpful. Only requires one simple google. Your code essentially does this: *#foo -> #three -> div:first*, which … | |
Re: $allowtype = array_merge($imagetype, $file_type); Because you're using a double quote, your two variables aren't being inserted into the array. Use [array_merge()](http://php.net/manual/en/function.array-merge.php), it will combine both of your arrays accurately. | |
Re: echo "<input type='text' name='newstitle1' value='".$row['news_title']."' />"; You got your `"`'s all mangled up. There's no attribute opening to the value, and no closure of the value attribute and the input tag itself, but also you're not actually sealing the echo statement. Try to use `'` and `"` respectively, not only … | |
Re: Dispite other errors in the code, `mail()` needs the following parameters: *to, subject, message (, headers etc.)* [(See here)](http://uk3.php.net/manual/en/function.mail.php) No from. So this will cause a problem. Your HTML is invalid, as you are closing the body tag, and then placing the content, and not closing it and the HTML … | |
Re: Well assuming everything else is in order, try this in your code: $startYear = 1997; # Define variable here, I've used '1997' as an example, note that there's no commas to make it a text value. if ($startYear == "") { $startYear = NULL; } mysqli_query($con, "INSERT INTO Application (startYear) … | |
Re: **Javascript cannot specify download locations of any file.** That would be a serious security problem. In most cases, I don't see what the problem is letting the user pick themselves where to save downloaded files? What exactly are you trying to do this for? Unless you're doing something malicious I … | |
Re: `line-height: 26px;` will solve your problem, but you need to look at the overall structure of the menu as it's not best practice. | |
Re: Welcome! Oh the days of high school and education aha - very long time ago! Honestly the stuff we used to get up to at uni lol.... > At The Moment Im Busy With An Important IT Project, What sort of project are you doing? | |
Re: You can achieve this with a really simple jQuery script. I've used one from [here](http://www.jqueryscript.net/slideshow/Lightweight-jQuery-Background-Slideshow-Plugin-BgSwitcher.html), so it's just a case of changing the background attribute with a bit of jQuery magic. Here is a [jsFiddle](http://jsfiddle.net/odt3qcqr/1/) of how the script can be used, so all you have to do is adapt … | |
Re: When you send an email using your code, but instead of PHP dynamically putting content into the email, you manually type it in yourself. It's to check to make sure the PHP function is actually capable of sending an email. | |
Re: For a start, remember `mysql_*` functions are outdated in PHP now, so a much better idea to use `mysqli_` or PDO. There is also no need to open and close PHP tags (e.g. line 38 + 40), and no need to have an empty `else{}` statement. Next, your script is … | |
Re: Personally, I've never had a problem with [Google Fonts](http://www.google.com/fonts/). It is a vast library containing soo many free fonts to suit every purpose. A general font, like Open Sans or Ubuntu, should be able to cover just about any need when it comes to size and formatting. However, some fonts … | |
Re: Is this trying to test my maths skills or something? Because they're fine. | |
Re: > sretch What do you mean by this? > why this page looks good in all browser screen size Because they are using **responsive design**. This relies on a grid system and a page that adapts when the browser is re-sized. Start by playing with CSS `@media` queries. | |
Re: Don't forget PHP is a massive language with some of the biggest sites in the world resting on it (including DaniWeb,Facebook,Twitter...). Agreed, it's a case of what you feel more comfortable with. Personally, I love PHP and its a great language with more support than you could ever need. Thoroughly … ![]() | |
Re: > <img src="sills/cat_image_sill.png"><span><span></a> What the hell is going on here aha? `<img>` tags can't have child elements and god knows where the `</a>` came from. I've solved your problem using some more efficient and better-practicing CSS: [jsFiddle](http://jsfiddle.net/db8n20zt/) | |
Re: Well you need an idea of exactly what you're going to create. Then you need someone to write it for you in or PHP (although there are more, i.e. ASP.NET etc.). You need to create some databases and get to work programming aha, start with some really simple tutorials. I … | |
Re: Hi there, try this: HTML PAGE: [jsFiddle](http://jsfiddle.net/z87c2bvt/2/) PHP: <?php // Connect to DB $result = mysqli_query($con,"show tables"); while( $row = mysqli_fetch_array($result) ) { echo "<option value='". $row[0]. "'>" . $row[0] . "</option>"; } ?> **Note:** Your `<option>` tag was being closed in the opener, and there are a few minor … ![]() | |
Re: Yes you can use [javascript](http://www.w3schools.com/cssref/tryit.asp?filename=trycss_js_clip) to do it, and your syntax is correct. Or you can apply CSS direct to an image, like this: img.clip { position: absolute; clip: rect(0px,60px,200px,0px); } Either one would work, depending exactly how you'd like to apply it. Personally I'd use CSS, unless you have … | |
Re: Maybe not a good idea to use `wordwrap()` after you've sorted the entire HTML of the message out. Maybe add it right at the beginning if your that desperate to use it, but I would consider some validation instead of just chopping half of the message off. Apart from that, … | |
Re: If we could sort out `Ctrl + Return` for all devices, I'd personally prefer that a lot more. | |
| |
![]() | Re: Hi there Alex! One of two doing a computing AS level, nice one, at least you'll get lots of help! Nice to know a proper lurker has been terned to proper member, and seriously its amazing how much you learn just be being here! > C# is slowly becoming my … |
Re: What about opening the file in a new tab or something, and therefore it will download to the user automatically. Of course, you would need to use some alert messages to check your user is okay with downloading a `.doc` file etc. If you want to show the contents of … | |
Re: What does `$actual_image_name` equal? Check view source on your page to see what it actually spits out into HMTL, as this is probably where our problem is hiding. | |
Re: I've just recreated your code, and I'm getting a big error: Line 65 **"jQuery.browser was removed in jQuery 1.9"** Maybe should look into this, as it may well affect that entire IF statement, hence your script isn't running smoothly. | |
Re: Take a look at [this](http://areaaperta.com/nicescroll/), it solves your problem using jQuery. You can play about and modify it if you want a specific look. | |
Re: I think this is more of a server problem than one to so with your site. I'd be amazed if you could do that yourself. It may be best to get your server cleaned up and reset so they're working fine. Your host might be able to sort that out … | |
Re: So if session variables are assigned in `set_sessions.php`, but as far as I can see you're only including it using an JS in the "replay" function. Make sure you're including `set_sessions.php` into `ad_hoc_query.php`. If thats not the case, run a simple test: place `<?php echo $_SESSION['']; ?>` somewhere in your … | |
Re: Take a look at *reset.css*: http://meyerweb.com/eric/tools/css/reset/ | |
Re: In your database if you use `AUTO_INCREMENT`, see [here](http://www.w3schools.com/sql/sql_autoincrement.asp). | |
Re: http://support.envato.com/index.php?/Knowledgebase/List/Index/85 ![]() | |
Re: > I have been trying to move this box How do you mean move it? Simply you can do something like [this](http://jsfiddle.net/gbyssxp5/): <div id="move"></div> #move { width: 100px; height: 100px; background: #000; position: absolute; top:0; left:0; } #move:hover { top:10px; left:10px; } There are so many ways of doing this, … | |
Re: > answer needed... We're volunteers, we might give you an answer if we're nice, but we don't *need* to do anything. Manners go a long way. > I've a website. I need huge visitors in my site. That's literally what every other one of the 644 million website owners say. … | |
Re: @oriclon, thats not what he asked: *read the question* > make a document that contains my navigation bar and just place a link of somekind so it loads it's contents into the html file? Only through using a server side language like PHP. You can use an `<iframe>`, but very … | |
Re: > So what seams to be your issue? No one is going to just answer this for you. Does he even want an answer? Just looks like a set of textbook exersises for us to complete? I'm good thanks. |
The End.