208 Posted Topics
Re: 8 bits = 1 byte (B) 1024 bytes = 1 Kilobyte (KB) 1024 Kilobytes = 1 Megabyte (MB) If you have the amount of KB and you want to convert it to MB, you just divide by 1024. I'm not sure what you're doing with all those other numbers. | |
Re: Is your site live? Link us to the problem page if you can. If we experience the problem ourselves we will find it easier to help. | |
Re: You can purge duplicates from an array by using array_unique. What I would recommend is start an array which holds the whole table row then before running a loop to display the array, re-set the array by using: [code] $variable = array_unique($variable); [/code] This should remove any duplicates. If it's … | |
Re: We use Contensis at my place of work but I wouldn't recommend it at all. It crashes a lot, doesn't work properly in any browser other than IE and sometimes screws up CSS classes. For example: I would set an image to the previously defined "imageleft" to make it float … | |
Re: Would I be correct in assuming that the file is displaying the [icode]<br>[/icode] where you want the line break? If so then use this instead: [code=PHP] <?php $user = $_POST['user']; $pass = $_POST['pass']; $file = "fileone.txt"; $content = $user . ","; file_put_contents($file,$content,FILE_APPEND); $content2 = $pass . "\n"; file_put_contents($file,$content2,FILE_APPEND); ?> [/code] … | |
Re: Just so you know, you shouldn't use characters such as > and & etc as text. I.e.: Replace: [code] <p>You are in: <a href="index.htm">Home</a> > Visual impairments </p> [/code] With: [code] <p>You are in: <a href="index.htm">Home</a> > Visual impairments </p> [/code] You can find a reference table here: [url]http://www.w3schools.com/tags/ref_entities.asp[/url] Also, … | |
Is there a way to make the width of the page, or an element within the page only change by a certain amount depending on the width of the screen? For example, I have a white box with 6 items in. Each item is its own box and has a … | |
1. Separate pages. Each page coded completely independently. 2. Index page with content as included files. An index page with everything that would appear on every page coded in then a simple if statement to check which page should be displayed, likely depending on the URL (e.g.: index.php?page=news). 3. Content … | |
Re: If you need to learn some php, then [url]http://php.net[/url] is a great site to learn the different functions. | |
Re: I'm not quite sure what you want. Could you explain in more detail, please? | |
Re: I thought that a robots.txt file was just to prevent search engines from crawling through folders they shouldn't. I don't think it will increase web traffic. I could be wrong though but that's my understanding of it. | |
Re: Could you also provide the code for the table? This way we can try to duplicate the problem ourselves and it'll be easier to find a solution. I cannot see any problems with your CSS although I would suggest using classes and not IDs. | |
Re: I agree with Ancient Dragon. Getting married based solely on your attraction to that person rarely ever works. Finding the person you truly want to spend the rest of your life with will happen at different times for everyone. For example, my parents got married when my father was 18 … | |
Re: [QUOTE=pompi;1407167]PHP means Personal Home Page.I am always seeking net for valuable things that can assist me achieving knowledge. We are in Website design business for long. I think that your post is good in terms of topic. By the way, if you have time please check <a href="http://www.mavrickit.com" rel="nofollow">Website Design … | |
Due to the uselessness of the IT team in my place of work, I have written a small batch file for the people in my department to map a network folder to a drive letter since the network path is too long and Windows will not allow us to open … | |
Re: If you're starting out with PHP, I would suggest going to [url]http://w3school.com/php[/url] and [url]http://php.net[/url] to get the basics. | |
Re: You need to encase the links in your css in quotes. For example, your #mainDiv is currently: [code=CSS] #mainDiv { width:975px; margin-left:auto; margin-right:auto; background:#FFF; background:url(images/main_bg.jpg); background-repeat:repeat-y; } [/code] When it should be: [code=CSS] #mainDiv { width: 975px; margin-left: auto; margin-right: auto; background: #FFF; background: url('images/main_bg.jpg'); background-repeat: repeat-y; } [/code] I'm … | |
Re: Looking at your code for the page, you have </p> after each link in that menu but you don't have an opening <p> tag. You have: [CODE] <p class="text1"> <a href="whoweare.php">Who We Are</a></p> <a href="events.php">Events</a></p> <a href="newsletter.php">Newsletter & News</a></p> <a href="AwardNominations.php">Award Nominations</a></p> <a href="videos.php">Video Library</a></p> <a href="jobs.php">Jobs</a></p> <a href="links.php">Links</a></p> <a … | |
Re: Is it just text you're aligning or are they images or other elements? Have you tried just coding them inline? I.e.: [code] <!-- Assuming you're using images --> <img src="images/image1.jpg" alt="image 1" /> | <img src="images/image2.jpg" alt="image 2" /> | <img src="images/image3.jpg" alt="image 3" /> [/code] | |
Re: Why do you want to disable centre click? All it does is scroll or open links in a new tab. | |
Re: You want to add pt, not px. [code] <style type="text/css"> body { color: <?php print $_POST["color"] ?>; font-family: <?php print $_POST["font"] ?>; font-size: <?php print $_POST["font-size"] ?>pt; } </style> </head> <body> <?php print $_POST["box"] ?> [/code] | |
Re: If you want "Username" to be the same as "userNAME" instead of them being 2 different users (I.e.: you don't need to type your username exactly how you did when you signed up) you should use the toupper(); function: [code=php] if(toupper($result["username"]) === toupper($username)) { //user exists } else { //user … | |
Re: Google will demote the pagerank of similar pages. If there's only about 10 words different on each page, it's going to assume they are the same page and demote them. I've noticed that you don't have your site set up to have either the www. or not. Google will detect … | |
This isn't the first time I've had this problem and the last time I had it, I didn't note down how I fixed it. I just spent the last hour or so looking for solutions to this online and to my surprise, nowhere actually has an answer. My external hard … | |
Re: When linking to images or other pages, you should always use relative links. Only use absolute links when linking to external sites. [code=HTML] <!-- Using relative links means that if your domain changes, you wouldn't have to change the code. --> <a href="index.html">Home Page</a> <img src="images/picture.jpg" /> <!-- While not … | |
Re: I don't know what your problem is but I can see many problems: [icode]margin: self;[/icode] does nothing. To centre, you'd need to use [icode]text-align: center;[/icode]. [icode]background-image: url ("images / fond.png);[/icode] will not display the image. Remove the spaces before and after the forward slash. [icode]<code type="Css">[/icode] is just wrong. Does … | |
I just had a problem with my computer here at work and I knew the problem and solution straight away but I do not have sufficient privileges to fix the error on my account so I had to contact IT to get it done. It's taken the guy who came … | |
Re: What's the code you're using to try align it where you want? | |
What is the proper way to use sessions? I have a forum on my site which I've coded from scratch but I've not been using sessions for the users and instead I've been using just cookies to determine if they're logged in or not. I know my current way isn't … ![]() | |
Re: Why would you not want to use [icode]%word%[/icode]? With your way, if you have something like "Harry Potter and the Chamber of Secrets" and the person searches for "Chamber of Secrets" then no result would be returned. If you have code to ignore "The" every time, then if someone searches … | |
Re: What is showing in the code on the loaded page? (View > Page Source) | |
Re: Do you want this to happen in real time like an instant messenger or more like a message board/forum? | |
Re: What everyone else has said plus you need the first line of your table in a row. You've got the [ICODE]<th>[/ICODE] but it's not within a [ICODE]<tr>[/ICODE] and since it's the only one in the row, you need to use [icode]colspan="2"[/icode] too. | |
Hello all, How would I go about getting my site to redirect any visitor to [url]http://site.com[/url] rather than [url]http://www.site.com?[/url] I have searched the forums here and have tried various coding people have provided but none of it seems to work. Could someone maybe post a step by step guide on … | |
Re: I assume that you want to display the colon on the page instead of it being read as part of the code. In that case, use the HTML [icode]&#58;[/icode] to display it. | |
Re: Use nav33n's method if it's a simple link and you don't mind the end user seeing the variable (and possibly changing it) but use $_GET instead of $_REQUEST. Use catherine sea's example if it's a form you're using to get input from the user. | |
Re: Set a cookie in the user's browser when they log in then on the admin page, check for that cookie. | |
Re: You will never learn if you just get other people to fix your errors, just like Graphix said. I can see the change that needs to be done to get the code to work and it's a very minor correction needed. I will tell you what the problem is but … | |
Re: If you have PHP enabled on your web server/host then you could just use the php [icode]md5();[/icode] Example: [code=PHP] $md5info = md5($ThingToConvertToMD5); [/code] | |
Is there a way to have multiple conditions using some sort of "or" so that I don't have to nest so many if statements? I currently have cells like this: [code=Excel Formula] =IF(E2 = "District1","North",IF(E2 = "District2","North",IF(E2 = "District3","North",IF(E2 = "District4","North","Not North")))) [/code] I have tried using OR in two … | |
![]() | Re: [QUOTE=pritaeas;1381530]You can use rowspan. [code] <table> <tr> <td rowspan="2">1</td> </tr> <tr> <td>2</td> <td>3</td> </tr> </table> [/code][/QUOTE] You would need colspan for that, not rowspan. You would use rowspan like this: [code] <table> <tr> <td rowspan="2">1</td> <td>2</td> </tr> <tr> <td>3</td> </tr> </table> [/code] |
I'm having a brain fart today and can't figure out something. I have the formula: [ICODE]x + 20% = y[/ICODE] Which can be expanded to: [ICODE]x + ((x / 100) * 20) = y[/ICODE] What I'm trying to do is find out what [ICODE]x[/ICODE] is when I know what [ICODE]y[/ICODE] … | |
Re: You're closing the style when you call "red" which is why it's not rendering properly. All you need to do is remove the speech marks around "red" to fix it. I'm not sure why you're doing it in a table though and you should be using css to centre the … | |
Re: You need to ecbo the table for it to works: [code] <?php function show_table() { echo "<table border=\"1\" cellspacing=\"2\" cellpadding=\"2\" style=\"background-color:#33990f;border-width:2px;width:100%;\"> <tr> <th><font face=\"Arial, Helvetica, sans-serif\";font color=\"#FFFAFA\">Organization Name</font></th> <th><font face=\"Arial, Helvetica, sans-serif\";font color=\"#FFFAFA\">ID</font></th> </tr> </table>"; } ?> [/code] Make sure you escape any speech marks within the code. | |
Re: It's possible that IE naturally adds a bit of padding. Try putting [icode]padding: 0px;[/icode] into the css. I work similarly to lordrt in the way that I develop my sites for FireFox and don't worry too much about other browsers but I always make sure it's workable. A few things … | |
Re: There is a good tutorial for this on the w3schools website. Here's the link: [url]http://www.w3schools.com/css/css_image_gallery.asp[/url] | |
Re: Instead of wrapping the whole site in a <div> tag, set the body to have a background colour in the CSS: [code=css] body { background-color: #104e8b; } [/code] The reason why you're getting the white border is because you're wrapping it all in a <div> which naturally has a bit … | |
Re: [QUOTE=poseidon32;1363610]if i watch a video i cant see it normal,if i play a game it take wery wery long time...etc...a i forget,i also use iobit securiti 360....[/QUOTE] If it's just the graphics, videos not playing right and games working slowly, it might be a problem with the graphics card and … | |
If I was to set a wildcard in my subdomain (*.example.com) to redirect to www.example.com, would that affect any pre-existing subdomains (for example, blog.example.com) or would it only redirect things I haven't set? |
The End.