431 Posted Topics

Member Avatar for Priti_P

> 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 …

Member Avatar for mattster
0
183
Member Avatar for websponge

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 …

Member Avatar for websponge
0
244
Member Avatar for berserk

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 …

Member Avatar for berserk
0
402
Member Avatar for RonKevinT.Manuela

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 …

Member Avatar for RonKevinT.Manuela
0
274
Member Avatar for ankit1122

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 …

Member Avatar for ankit1122
0
838
Member Avatar for nadiam

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 …

Member Avatar for mattster
0
244
Member Avatar for davy_yg

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.

Member Avatar for mattster
0
2K
Member Avatar for happygeek

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 …

Member Avatar for DistantGalaxy
1
520
Member Avatar for shammi.khan.73

> 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 …

Member Avatar for shammi.khan.73
1
107
Member Avatar for kaakka

$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.

Member Avatar for mattster
0
342
Member Avatar for tuxslonik

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 …

Member Avatar for mattster
0
72
Member Avatar for SumanSingh8419
Member Avatar for koneill

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 …

Member Avatar for koneill
0
207
Member Avatar for shammi.khan.73

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) …

Member Avatar for shammi.khan.73
1
6K
Member Avatar for shashikumar s g

**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 …

Member Avatar for almostbob
0
189
Member Avatar for davecoventry

`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.

Member Avatar for davecoventry
0
378
Member Avatar for Clif40RD

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?

Member Avatar for servent123
0
236
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
181
Member Avatar for davy_yg

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.

Member Avatar for davy_yg
0
499
Member Avatar for ashley9210_2

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 …

Member Avatar for broj1
0
180
Member Avatar for steelbrain
Member Avatar for Apalache

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 …

Member Avatar for almostbob
0
129
Member Avatar for nufftalon
Member Avatar for Santanu Das

Is this trying to test my maths skills or something? Because they're fine.

Member Avatar for ElliotNorton
-6
181
Member Avatar for davy_yg

> 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.

Member Avatar for davy_yg
0
212
Member Avatar for m2soft
Member Avatar for Glenn Rodgers

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 …

Member Avatar for diafol
0
274
Member Avatar for koneill

> <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/)

Member Avatar for mattster
0
104
Member Avatar for haider885

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 …

Member Avatar for JorgeM
0
141
Member Avatar for ankit1122

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 …

Member Avatar for diafol
0
189
Member Avatar for koneill

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 …

Member Avatar for mattster
0
344
Member Avatar for showman13

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, …

Member Avatar for mattster
0
266
Member Avatar for matrixdevuk

If we could sort out `Ctrl + Return` for all devices, I'd personally prefer that a lot more.

Member Avatar for matrixdevuk
0
121
Member Avatar for davy_yg
Member Avatar for BrennenList
Member Avatar for humorousone

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 …

Member Avatar for happygeek
1
153
Member Avatar for Blueie
Member Avatar for erabxes

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 …

Member Avatar for steelbrain
0
287
Member Avatar for hanspeare

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.

Member Avatar for hanspeare
0
5K
Member Avatar for Tameat614

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.

Member Avatar for Tameat614
0
395
Member Avatar for Siberian

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.

Member Avatar for mattster
0
155
Member Avatar for Gary_4

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 …

Member Avatar for BMXDad
0
131
Member Avatar for Lonestar Jack

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 …

Member Avatar for Lonestar Jack
0
192
Member Avatar for shashikumar s g
Member Avatar for shashikumar s g
0
283
Member Avatar for bLuEmEzzy

In your database if you use `AUTO_INCREMENT`, see [here](http://www.w3schools.com/sql/sql_autoincrement.asp).

Member Avatar for bLuEmEzzy
0
298
Member Avatar for arifsaroha
Member Avatar for diafol
0
143
Member Avatar for vivosmith

> 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, …

Member Avatar for mattster
0
256
Member Avatar for mamun.bl

> 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. …

Member Avatar for mindstreak
1
230
Member Avatar for totalwar235

@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 …

Member Avatar for oriclon
1
298
Member Avatar for manaog.aaronvici.7

> 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.

Member Avatar for mattster
-1
351

The End.