130 Posted Topics
Re: DeIntegro, The reason you're only getting one row is because you're querying for one row. You need to query an array of rows. [code] $row = mysql_fetch_[b]row[/b]($result); [/code] should be [code] $row = mysql_fetch_[b]array[/b]($result); [/code] | |
Re: Are you "floating" anything like divs or lists? If so, you need to clear them. Do you have an example page you can show? | |
Re: I'm guessing you found the thread via Google Search, Jkreifels. From here on out, try not to "bump" topics over 3 years old. | |
Re: This MAY or MAY NOT work, but have you considered using one of those standardized "reset" CSS stylesheets? [url]http://meyerweb.com/eric/tools/css/reset/[/url] You'd simply place that CSS above everything else (thus it would get overriden by stylesheets underneath it when it needs to). What it does is get the browsers as close as … | |
Re: the prince Awah, You clearly do not seem to understand that we don't wait for you to beckon us for help. I'm sorry you feel as though the world (specifically Daniweb) owes you this huge favor of doing the work for you, but I doubt anyone with any self-respect will … | |
Re: How about a soda machine? Insert coins, count money, see if any needs to be returned, and choose a candy bar. The thing is, every time they buy one, you need to keep track so that they can run out. Use a txt file to keep track of it. So, … | |
Hey guys, I'm interested in PHP and was wanting to get better. I figure there is at least a handful of active members who are college students and wouldn't mind learning more PHP. My offer is to create our own, unique, open-sourced educational CMS similar to Blackboard or Angel. It … | |
Hey guys, This may be entirely impossible, but I've been wanting to shore up the security of a Wordpress CMS for a family friend. Obviously, anyone who goes to [url]http://site.com/wp-admin[/url] will see a login screen, which MAY be susceptible to potential hacking. What I'd like to do is the following. … | |
Re: Well, I'm guessing you see the actual data in all browsers, but you don't see a BORDER in IE, correct? If so, that's fairly obvious. You've set "border" to "none", but used browser-specific CSS to create rounded corners for Safari/Chrome and Firefox browsers. Set "border" to "1px solid #000" and … | |
![]() | Re: [URL="http://www.webdeveloper.com/forum/showpost.php?p=980574&postcount=5"]This[/URL] looks like something you may be searching for. |
Hi Daniweb, I'm looking to read in a file, but "ignore" the label prefixed to data. For instance, if I have the following on one line, I want to ignore "Cities:" but read in the rest. [code] Cities: Chicago, New York, Atlanta [/code] If someone can point me in the … | |
Re: In JavaScript, something like this would insert "Hello World" into an element. [CODE] var element = document.getElementById('content'); element.innertHTML = "Hello World";[/CODE] (Something like that...I'm not great at JS) In PHP, it's made much simpler. [CODE]<div id="content"> <?php $hello_world = "Hello World"; echo $hello_world; ?> </div>[/CODE] | |
Re: Sigh, read [url]http://learncpp.com[/url] If you don't like learcpp, tale a look at [url]http://www.cplusplus.com/doc/tutorial/[/url] There is NO reason for you to be unable to do such a program on your own with enough learning. This sounds jackass-y, but it's NOT intended to. Just trust me, put the time in and you'll … | |
Re: Would you be up for using jQuery to allow for showing/hiding the content? If so, you could literally create the effect in two lines worth.... | |
Re: Care to post your entire HTML/CSS code? I despise having to guess the issue. | |
Re: Try this. You weren't selecting your classes properly. For instance, your <a> tag has the class "nav" while the <ul> tag has the class "navbar". Yet, you used ".nav li" trying to select your <li> tags. However, all that was doing was selecting the <li> tags inside your <a> tags, … | |
Re: Silly question, but if this is a hard-coded site, would you be up for using external services? For instance, [url]http://roundpic.com/[/url] is a fantastic option because all you do is upload an image and specify the rounded-pixel size as well as which sides. | |
Re: Do you have a live test site up yet? The HTML you posted is not of much use considering the images can't be seen (empty "login" area). From what I'm seeing in the image you posted, it appears to be a floating issue but I can't be 100% certain without … | |
Re: Are you sure you didn't invert the slashes? [CODE] <a href="//Server/folder">Click Here</a> [/CODE] Also, you should probably be using double-quotes instead of single-quotes. | |
Re: Title: [I]IFRAME issue[/I] Answer: [B]IFRAME[/B] May I ask why you are using an iFrame? They're not even valid HTML anymore, I believe. As for the problem, it's because the iFrame can only be as tall as the container it's "wrapped" in. So, let's say this is your layout: [CODE] <div … | |
Re: To center your footer, set .inner-footer margin to auto; .inner-footer { margin: auto; } Also, remove the overflow on your header, because I get a little scroll bar if my window is too small...come on, man! :P | |
Re: Hi lochnessmonster, Have you considered the tutorials @ [url]http://www.learncpp.com/[/url] I've been using it for rehashing my knowledge on OOP and it's been amazing. I've got a $100 book sitting right on my desk a foot from me, but the author on that site has made everything so easy to understand … | |
Re: [QUOTE=Ancient Dragon;1498577]where did you define MAX?[/QUOTE] He defined it in [B]main[/B], but he's not passing it as a parameter for any of his functions. Either define the variable as a global variable (not recommended as a habit) or pass the value as a parameter in your functions. --EDIT-- I got … | |
Re: @VernonDozier, Thanks so much for that link. When I installed Linux, I forgot to backup my bookmarks and lost that page. Cookie for you, bro. @destroyer89100, Do you enjoy programming? That's a relatively simple problem and the fact that you don't want to put the (small) amount of time necessary … | |
Re: Make sure to close the <a> tag. The one you posted above isn't closed. Also, consider span tags inside the <a> tags because some clients otherwise default to their skin colors. For instance, gMail (I think) causes all links to stay blue even if you inline-style a different color UNLESS … | |
Re: This should give you a pretty good answer. [URL="http://www.learncpp.com/cpp-tutorial/85-constructors/"]Constructors[/URL] [URL="http://www.learncpp.com/cpp-tutorial/86-destructors/"]Destructors[/URL] | |
Re: Remove the PHP echo for the DOCTYPE, and everything above the <head> tag. See what happens...I have a feeling that's your problem. If I recall, DOCTYPE is read-only and shouldn't be outputted like that. | |
Re: [QUOTE=AndreRet;1494291]No prob. 4 *&%%^ HOURS to get 6 lines of code!, I'm sure I'll be bald by the end of this week. Funny enough, I had a breeze with MySql into all different pages. vb6 is just soooo much easier, or until I have this under foot at least.;)[/QUOTE] AndreRet, … | |
Re: Might have something to do with line 30. [CODE]generator.document.write('<html><head><title>Math Challenge!</title></head><body>');[/CODE] Try to remove that and see if it fixes that. You've already generated a majority of those tags above the JavaScript. [B]EDIT:[/B] Also try to remove the following line right above the the one above: [CODE]var generator=window.open('', 'name', 'width=400,height=100,toolbar=0,scrollbars=0,screenX=200,screenY=200,left=200,top=200');[/CODE] It … | |
Re: Try placing a z-index on the inner UL. .menu ul li:hover ul li:hover ul { z-index: 2; } | |
Re: Hey shawtyred74, Your second code isn't properly wrapped in code tags. The problem is the opening brace to the ending code wrapper. Instead of [COLOR="Red"][B][U][[/U][/B][/COLOR]/CODE], you have /CODE] | |
Re: Shouldn't it be [B]$row = mysql_num_rows($result)[/B] instead of [B]$row = mysql_fetch_array($result)[/B] | |
Re: [QUOTE=xcdear213;1493124]How do I go about coding a website design I just created in PhotoShop? Right now it's a PSD file so how do I turn it into a website now? No, I don't have Adobe Fireworks, so I can't use that.[/QUOTE] Well, you've created an image of what you wish … | |
Re: Increase your #wrapper width. EDIT: Consider using something like 8px of padding on the .content area of the sidebar. I tested it out with Firebug and it looked better. Right now, as you can see, the text is hitting the edge of the sidebar. | |
| |
Re: @teedoff Completely agree with you regarding paragraph tags being used instead of break tags. To be honest, is there ever a real need for break tags? For instance, while they can be used as "presentational" markers, what about the blind users who have to listen to Jaws or other visual-aid … | |
Re: [QUOTE=luweegee;1490380]u have an extra code 4 that issue sir?[/QUOTE] [CODE]<?php function is_locked() { // if locked, return 1 (true) // else return 0 (false) } if(is_locked()) // display "locked thread" image else // display "open thread" image ?>[/CODE] | |
Re: You can use floats, margins, and padding (along with vertical-align). Also, post some code and people will give you pointers/hints. | |
Hey guys, I need some help in deciding whether Wordpress 3.1 is OK for full-time use. I realize it's in beta, but my mother's friend wants her static website turned into dynamic content via Wordpress. I don't mind 3.0, but I've heard really good things about 3.1, such as superior … | |
Re: Tables are NOT the way to go. Learn how to create websites with divs. They'll make your life a lot easier and the troubleshooting (if there is any) will be a breeze compared to tables (in my opinion). However, if you do decide to stick with a table layout, consider … | |
Re: [QUOTE=sjeggels;1471067]hey magicmedia your suggestion worked fine. my next question is how do i display post/comments of my blog on the index page of my website. thanks.[/QUOTE] Or you could, you know, read the documentation and find out yourself? [url]http://codex.wordpress.org/[/url] You'll thank me later. | |
Re: Just took a quick peek at your website. You should consider removing the height:80%; style from your "lightbox" class. If you go to your [url=http://ewh.ieee.org/r1/schenectady/New/Events.php"]upcoming events[/url] page, you'll see you have text continuing further down the line than the white content area. | |
Re: Did you create a static version of whatever it is you're trying to generate with XML/XSL? I've learned my lesson...always make sure a static (HTML) copy works in all browsers before attempting to create it with XML/XSL. Paste your XML and XSL (separately...obviously) and I'll take a look. | |
Re: Hi Violet82, I skimmed over the thread and tested out the HTML/CSS in the first post. It works fine in IE8 and Firefox. I realize the problem is IE7, but without sounding like a wise-ass, it should unless you're doing something wrong. At my job, we recently created a calendar … | |
Hi Daniweb, Have a quick question I'd like answered. Right now, I'm testing out liquid web sites on a smart phone powered by Android. When I load a (width:100%;) website with the smartphone being taller rather than longer, it comes out looking great. However, when I turn the smartphone 90 … | |
Re: After viewing the page source, it appears you didn't properly close off your <a> tag. Also, you used <a [U]ref[/U]=...> instead of <a [U]href[/U]=...> [CODE] any notices to True Enterprises shall be given by email to <a [COLOR="Red"]ref[/COLOR]="mailto:[B][U][I][COLOR="Red"]<script type="text/css">[/COLOR][/I][/U][/B] [/CODE] | |
Re: Good God! Why do you guys waste your precious time with this bullcrap? Don't help them if they can't help themselves. Prop open a book and read about classes. Once you read a chapter on classes, you're good to go assuming you know how to use arrays, what data types … | |
Re: Good job figuring it out on your own! +1 REP | |
Re: [QUOTE=shaya4207;1429939]:), My point is that it's not 'all' it does...[/QUOTE] Hi shaya4207, The reason it does more than just center the page (it also pushes the wrapper down by putting margin above it and below it) is because margin: 35px auto; means the following: margin-top:35px; margin-right:auto; margin-bottom:35px; margin-left:auto; margin:0 auto; … | |
Re: Well, technically, you shouldn't use arrays with a size determined through a variable. It should either be a defined constant(int a[5]) or (int a[SIZE]), but not a variable that [B]may [/B]get changed. If you don't know the size of the array at the start of the program, you should probably … |
The End.