208 Posted Topics

Member Avatar for rokape

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.

Member Avatar for rokape
0
2K
Member Avatar for MJ Pieterse

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.

Member Avatar for MJ Pieterse
0
330
Member Avatar for ankit.pandey3

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 …

Member Avatar for Borzoi
0
129
Member Avatar for bharanidharanit

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 …

Member Avatar for Borzoi
0
213
Member Avatar for jogieglenmait

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

Member Avatar for Borzoi
0
366
Member Avatar for Violet_82

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> &gt; Visual impairments </p> [/code] You can find a reference table here: [url]http://www.w3schools.com/tags/ref_entities.asp[/url] Also, …

Member Avatar for Violet_82
0
90
Member Avatar for Borzoi

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 …

Member Avatar for Borzoi
0
122
Member Avatar for Borzoi

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 …

Member Avatar for aniyishay
0
172
Member Avatar for greatmind

If you need to learn some php, then [url]http://php.net[/url] is a great site to learn the different functions.

Member Avatar for lagspike
0
106
Member Avatar for mestalia118
Re: help

I'm not quite sure what you want. Could you explain in more detail, please?

Member Avatar for Arkinder
0
78
Member Avatar for cguan_77

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.

Member Avatar for cguan_77
0
164
Member Avatar for nikita.chandra

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.

Member Avatar for Arkinder
0
143
Member Avatar for ~s.o.s~

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 …

Member Avatar for Borzoi
0
726
Member Avatar for divyakrishnan

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

Member Avatar for Borzoi
0
124
Member Avatar for Borzoi

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 …

Member Avatar for Borzoi
0
168
Member Avatar for Haz425

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.

Member Avatar for lyrico
-1
182
Member Avatar for shahiduop

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 …

Member Avatar for Borzoi
0
127
Member Avatar for daviddoria

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 &amp; 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 …

Member Avatar for Arkinder
0
159
Member Avatar for cguan_77

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]

Member Avatar for Arkinder
0
208
Member Avatar for samsons17

Why do you want to disable centre click? All it does is scroll or open links in a new tab.

Member Avatar for Borzoi
0
116
Member Avatar for jsmiley77

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]

Member Avatar for Borzoi
0
174
Member Avatar for shenbagam

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 …

Member Avatar for joehms22
0
109
Member Avatar for bouncycastle

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 …

Member Avatar for Borzoi
0
118
Member Avatar for Borzoi

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 …

Member Avatar for onetimeuser1
0
1K
Member Avatar for chinee
Re: css

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 …

Member Avatar for chinee
0
148
Member Avatar for mushget

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 …

Member Avatar for Arkinder
0
93
Member Avatar for Borzoi

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 …

Member Avatar for Borzoi
0
295
Member Avatar for MAD_DOG
Member Avatar for Griffin54
Member Avatar for Borzoi
0
118
Member Avatar for Borzoi

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 …

Member Avatar for P0lT10n
0
117
Member Avatar for bleedi

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 …

Member Avatar for d5e5
0
183
Member Avatar for mbarandao
Member Avatar for mbarandao
0
330
Member Avatar for cdes1145

Do you want this to happen in real time like an instant messenger or more like a message board/forum?

Member Avatar for Borzoi
0
182
Member Avatar for zyzagy

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.

Member Avatar for Borzoi
0
168
Member Avatar for Borzoi

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 …

Member Avatar for Kraai
0
137
Member Avatar for bspace

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]&#38;#58;[/icode] to display it.

Member Avatar for ko ko
0
109
Member Avatar for knarffrank

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.

Member Avatar for Borzoi
0
224
Member Avatar for jhonnatas

Set a cookie in the user's browser when they log in then on the admin page, check for that cookie.

Member Avatar for Borzoi
0
85
Member Avatar for mtvaran

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 …

Member Avatar for monica singh
0
215
Member Avatar for kesh1000

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]

Member Avatar for Graphix
0
212
Member Avatar for Borzoi

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 …

Member Avatar for Borzoi
0
113
Member Avatar for feoperro

[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]

Member Avatar for BSkiLLs
0
177
Member Avatar for Borzoi

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

Member Avatar for Borzoi
0
84
Member Avatar for nikita.chandra

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 …

Member Avatar for teedoff
0
126
Member Avatar for Capt Spaghetti

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.

Member Avatar for Capt Spaghetti
0
158
Member Avatar for MoreBloodWine

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 …

Member Avatar for MoreBloodWine
0
140
Member Avatar for mushget

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]

Member Avatar for Ritesh_4
0
90
Member Avatar for stonest123

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 …

Member Avatar for pakishpk
0
402
Member Avatar for poseidon32

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

Member Avatar for Agapelove68
0
887
Member Avatar for Borzoi

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?

Member Avatar for Borzoi
0
131

The End.