208 Posted Topics
Re: It looks as though the data is just being placed at the beginning of the table in MySQL5.1 instead of the end. Unless specified, MySQL will add the inputted data to the end of the table, not the beginning. I don't recall this being different in MySQL 5.1. How are … | |
I tend to use XHTML due to browser compatibility. In almost all cases where I've worked with XHTML, the content has displayed in every browser the same and the times it didn't was due to certain browsers *cough*IE*cough* not supporting the CSS styles I was using. When HTML 5 was … | |
Re: > However, from what I hear about them these days they are pretty much evil incarnate. They've just taken the Dungeon Keeper motto of "It's good to be bad" to heart. | |
Hi, I'm not sure if I'm posting this in the correct place as this is related to nginx configuration and not specifically PHP scripts. If I am posting this in the wrong section, please let me know and I will post it in the correct location (unless a Mod is … | |
Re: The `header();` function also needs to be before any output to the browser, if I'm not mistaken. You basically just wamt to move the PHP in your code (lines 46-58 in the code you've given) to the top of the page, before the `<!DOCTYPE>` declaration. I also recommend you put … | |
Re: This can be done purely with CSS if it's just a drop-down menu. The `<option>` tag doesn't allow `<img>` tags to be nested in but you can use the CSS backround option. My below example assumes that each item has a different image and I'm using random cat images I … | |
Hi there, I've not been on here in a while. I'm having trouble with a PHP function and I'm pretty sure I'm missing something very obvious or I'm doing something wrong so hopefully someone can help me reach that inevetable facepalm or headdesk when I realise what I'm doing wrong … | |
Hi everyone. It's been a while since I've needed help with a PHP problem. Hopefully someone here knows what I'm doing wrong because I can't see it. I am trying to use rename() to rename an image file which is in a subdirectory of a subdirectory the script is running … | |
Hello everyone. Hopefully somebody can help me. I have an old 250 GB external HDD which I used to use for data storage. It's a fairly old model (bought it in 2005) and the USB port on the caddy seems to be broken. At first, I could have the HDD … | |
I have a server which is hosting just a single site and because of this, I intend to redirect all traffic from domains which isn't mine to my domain. For example, if a random person decides for some reason to point their domain to my server, when my server gets … | |
I currently have a problem where DVD's will not output any audio to the front speakers of my 5.1 surround sound unless something else is also sending audio there. For example, I watch a scene with lots of dialogue but I only have the background audio. If I open up … | |
I am trying to write a shell script but I only want it to run if there are no files with a specific name found on the server. I know how to check for a specif file which would be done like this: if [ -f /path/to/file ] then echo … | |
Re: I don't see why you need to use asp to link to a page like you are. Correct me if I'm wrong but from what I can see, the image will always link to that ContactUs.aspx page and therefore you don't need any sort of scripting to get the link … | |
Re: You post in a forum topic entitled "You know you are old when..." | |
Re: Even if you have the font, anyone viewing your site will need to have the font installed on their computer to be able to view it. To use the font though, find out what it's displayed as (in Word for example) then in the CSS you would put [icode]font-family: font … | |
I have spent weeks looking for a solution online but I have turned up with nothing. I am running Windows XP Professional (this has been tried on both service pack 2 and service pack 3) but every time I try to run the Cisco VPN client I get "Error 56: … | |
Re: I was always taught BODMAS/BIDMAS: (B)rackets powers (O)f/(I)ndices (D)ivision (M)ultiplication (A)ddition (S)ubtraction In some countries, replacing "Brackets" with "Parentheses" would be the case making it PODMAS/PIDMAS but I've never hear of PEMDAS. I'm assuming the "E" is representing another word for powers of or indices but why is the M … | |
Re: I am also looking for a Domain Name Registrar with no extras. I don't need the technical support and I know how to set up my server exactly how I want. I'm currently using a free .co.cc domain until I can find a good one. The service .co.cc provides is … | |
I recently bought a 3DTV (today, in fact. Just waiting for it to arrive early next week) and the only thing I need is an HDMI cable which can carry a 3D signal since my current one is only v1.3 which I believe cannot carry a 3D signal. I know … | |
I currently have a small script I've written that basically takes an incremental backup of a folder which looks similar to this: [code] #!/bin/bash cp -ruf /home/folder4/subfolder/ /home/folder5/ cp -ruf /home/folder3/subfolder/ /home/folder4/ cp -ruf /home/folder2/subfolder/ /home/folder3/ cp -ruf /home/folder1/subfolder/ /home/folder2/ [/code] Now this runs fine, only updating the files that … | |
I've been trying to set up my computer so that I can remote in to it while I'm away from home but it doesn't seem to be working. At first, I thought the problem may be with my router not forwarding the ports properly or something like that but when … | |
My dad recently got an HTC Widfire and I was setting it up for him because he didn't want to ruin it, despite the setup being very simple. I had set up the e-mail using the default "Mail" app that came on the phone (not the Gmail one) and it … | |
I plan on making a web server for myself. Just a small site for myself containing my blog and a small infrequently updated webcomic, nothing huge and commercial and was wondering what is generally the best Linux to use for this. I have made web servers before using Windows XP … | |
Re: I've had awful teachers before. -English teacher which marked my coursework as wrong because I used a word that he never heard me say before. -Maths teacher that taught us what we needed to know for the modular exam AFTER the exam. -Maths teacher that constantly lost coursework and refused … | |
Post your riddles here! Here's an easy one: A bicycle takes exactly 40 minutes to travel a 40 minute journey. How long would it take a car that goes twice as fast? | |
Hello everyone. I am currently building a website for a business I plan to start up sometime this year. I have a few questions as to what the requirements are for an e-commerce site and best practice for some parts. I will number the questions so that they can be … | |
Who thinks that LEGO Karate Kid should be the next LEGO video game to be made? Based on the original trilogy, of course. It'll fit their 3 story format they've used. It may be hard in some parts to make it 2 player though. The tournament for example (unless they … | |
Re: Most servers place index.html above index.php so if you've made your home page as index.php and the host automatically puts an index.html page up, then it'll be displaying index.html. Have a look on your host and see if there is an index.html file and if so, delete it so that … | |
Re: What is the post stored as in the database? If it's stored as "text" and not varchar() then I believe you don't need the <br /> tags as line breaks are automatically placed which may be why your line breaks are doubling. | |
Re: Even strong passwords are crackable and it won't stop the user being subjugated to phishing. I would go with ardav and only allow bbcode. ![]() | |
Re: Using [icode] [/icode] like that would only make it align correctly for the screen size you're viewing on. One thing you could do is wrap each part in it's own <p> tag and use CSS to set them all to the top of the div that they are already in then … | |
Re: The most secure way would be to invent your own encryption method (as long as it's not as simple as +1 to each character or something stupid like that). The downside to this is that it will take a while to code. | |
Re: Nick Evan - A llama who can somehow use a computer. Maybe the avatar is just throwing me off. Narue - Makes me think of Naru Narusegawa from Love Hina which makes it hard for me to imagine what she's like. Ancient Dragon - Not sure why but I imagine … | |
Re: I am happy to flag any spam I come across but I don't want a reward so I won't be PMing you the link to the post I flag. It's a nice idea to offer it to get newer members to start flagging bad posts though. | |
Re: Your if statement is doing nothing. If you want to check if something is in the variable then use this: [code] if (isset($send)) [/code] Also, there is no part of that code where you send the mail. Lines 25 and 26 wouldn't cause the mail to send as you're just … | |
I'm currently building a website for a small charity and they've asked me if it was possible to make an admin area where they could access some of their work when they're out and about so they don't have to fill in forms twice. I can do this as I … | |
Re: Could you post the PHP that calls the variables to be placed in the values? We could probably help if we saw the supposed problem code. | |
Re: You can remove duplicate values from the array with [icode]array_unique();[/icode]. [code] $array = array_unique($array); [/code] | |
Re: Could you please wrap any code in code-tags. | |
Re: Where are you saving the .htaccess file? I was having trouble with mod_rewrite before and couldn't figure it out but it turned out that I had saved the file in the wrong place. I had saved it in the same folder as the server configuration files but it's supposed to … | |
Re: [QUOTE=ardav;1417984][B]> Most threads are.[/B] What?! Next you'll be sayin' there's no Santa Claus as well. :'([/QUOTE] I hate to break it to you... | |
Back in 2004, I started a 2 year college course. This course was Btec National Diploma for IT Practitioners. That course is a level 3 qualification in computing (in case the course title wasn't obvious enough). I finished the course and passed, being the 4th best in the class. Today, … | |
Share your experiences that you've had with "experts" who have made you want to facepalm from their stupidity and users which have less than minimal knowledge. For example, people that wonder why their computer doesn't turn on during a power cut. My most recent one that I can recall is … | |
Re: I sometimes lose track of time when I'm coding but I haven't deliberately tried to spend ages working on it or timed myself. | |
Re: I'm only guessing here but I have a feeling that the iPhone put back the device's clock an hour and then put the alarm time forward an hour. I.e.: 7:00am becomes 6:00am but the alarm should still be 7:00am and go off at that time but for some reason becomes … | |
Re: In the DNS settings you need to set up a zone record. It would be an A record (Address) and the value would be the IP address of your server. You will probably want to make a couple. One for site.com and one for www.site.com so that both go to … | |
Re: Just as Kraai said, you need to view source and not save the page. Bear in mind that viewing the source only shows the outputted HTML and will not show any PHP so you won't be able to steal websites database passwords. | |
Re: If it's in your place of work, contact your IT department. It's likely they're using the default SMTP port but you will need to ask them as they may have changed it. | |
Re: Make sure your DNS is set up so www.example.com is there. If it's not, then requests to www.example.com won't work as that doesn't exist. You just need to make it the same as your example.com entry. | |
Re: In my opinion, the best way to make a site is one that doesn't require a set maximum width. I would make it so that if the user has a high resolution (for example 1920x1080) then the site would expand to fit so as to minimise empty space but for … |
The End.