Forum: HTML and CSS Mar 25th, 2009 |
| Replies: 4 Views: 758 Ok, got it right...not as it should look like, but at least it fits the windows now :D
If you're interested how, go check the code on the page for details, however in short I did it like this.
1.... |
Forum: HTML and CSS Mar 25th, 2009 |
| Replies: 4 Views: 758 Ok, fooled around with the code. The problem lies only in IE 6 and only under certain circumstances.
If I use a wrapper - like
<div class="wrapper">
<div id="googlemap"></div>
</div>
... |
Forum: HTML and CSS Mar 24th, 2009 |
| Replies: 4 Views: 758 Yes, almost got used to it, but this one really surprised me.
Any ideas anyway what may be the cause?
Do you see something wrong with my code?
I am out of ideas in which direction should I look... |
Forum: HTML and CSS Mar 24th, 2009 |
| Replies: 7 Views: 2,846 Actually <div> element is 100% stretched by default, unless contained in another block element with fixed widht, or unless floated. So, if you are using div's and do not use neither float, nor width... |
Forum: HTML and CSS Mar 24th, 2009 |
| Replies: 4 Views: 758 Hi folks,
It has been some time since my last visit. This time I come looking for help...
I have coded a page that contains a google map next to an address location. Basicly the map shows... |
Forum: PHP Feb 12th, 2009 |
| Replies: 6 Views: 373 Hm,
Appears you are right.
It really does not replace new line indicator by html equivalent <br /> it only inserts it before the new line indicator. Odd....
So instead using nl2br, you can use... |
Forum: PHP Feb 12th, 2009 |
| Replies: 6 Views: 373 Nav33n's proposal will return a string with no spaces, instead with new lines where the breaks are.
In order to return a string with line breaks, you should replace <br /> with \n , store it in a... |
Forum: HTML and CSS Dec 2nd, 2008 |
| Replies: 3 Views: 563 Post some code that we can read, however, it should look something like
<div>
<p>Your text here</p>
<img.../>
</div> |
Forum: PHP Dec 1st, 2008 |
| Replies: 7 Views: 735 It is up to you. If you start building a large website with a lot of repeating code like headers, navigation menus, etc, you will realize how helpful the includes are.
Later on, you will realize... |
Forum: PHP Dec 1st, 2008 |
| Replies: 5 Views: 552 Hm, I think that the question was whether multiple visits on a database-driven site would be handled well, because each php page, which requires data from the db, would initiate a new sql session as... |
Forum: PHP Nov 29th, 2008 |
| Replies: 2 Views: 456 You can't.
SHA is one-way encoding mechanism. So in order to verify a password, the verification string has to be encoded using the same key as it has been initially encoded upon inserting into the... |
Forum: PHP Nov 28th, 2008 |
| Replies: 3 Views: 379 Ok, the error says that no result has been returned from sql. This may be caused either by no data in tables or by a wrong sql statement.
I suggest you to put this line just after... |
Forum: JavaScript / DHTML / AJAX Nov 28th, 2008 |
| Replies: 24 Views: 43,496 Ok, guys, why do we need such a word fight for nothing?
Actually I did not understand what is exactly the requirement - I mean, does the guy want to have the code work in any browser window on... |
Forum: PHP Nov 28th, 2008 |
| Replies: 2 Views: 795 Depends on what you expect to happen next. You can act both in PHP, manipulating the returned array result, or you can change your SQL so that sql returns the first and last name as one column,... |
Forum: HTML and CSS Nov 28th, 2008 |
| Replies: 2 Views: 573 You can't doing it using this code.
The css style you provided is useful when you want to define some general attributes for multiple tags.
In order to achieve yours, you have to explicitly... |
Forum: PHP Nov 27th, 2008 |
| Replies: 2 Views: 442 FTP_PUT () overrites files without warning. I have no idea about ftp_fput(), but I suppose it will overwrite as well, that is - it will replace content.
Why don't you try with a simple txt file... |
Forum: PHP Nov 26th, 2008 |
| Replies: 1 Views: 310 You are trying to create a JPG from PNG. I don't think that GD allows this. Therefore you should use createimagefrompng() and imagecopyresampled(). Also, header(content....) should be PNG, not JPG. |
Forum: PHP Nov 25th, 2008 |
| Replies: 8 Views: 1,606 Well, honestly, I do not like while loops, so I would go with scandir() function in php that returns an array of all files. Then I will manipulate the array and upload file by file, rather than... |
Forum: PHP Nov 24th, 2008 |
| Replies: 8 Views: 1,606 Hmmm.. I have had problem with file creation using php, so I had to change folder permissions to 777 and just then it worked.
I think also that you do not change the ftp_delete command, as it is... |
Forum: PHP Nov 24th, 2008 |
| Replies: 4 Views: 539 Ok, "effective" what do you mean by that?
If you mean effective - like having a lot of things that change, rotate, move from one place to another, have sounds and stuff, you should do it with... |
Forum: PHP Nov 24th, 2008 |
| Replies: 6 Views: 635 No, this is not a javascript question. Do some search on google for GET and POST method.
Also, if you really want to learn programming, go to http://www.w3schools.com/ |
Forum: PHP Nov 24th, 2008 |
| Replies: 8 Views: 1,606 Check permissions for read/write/delete on the folder on the remote machine using the name / pass. |
Forum: PHP Nov 24th, 2008 |
| Replies: 3 Views: 582 Why don't you create an activate service page. E.g. imagine not all users want to participate in the arcade, but by mistake they click on the game page....
I think it would be better you create a... |
Forum: HTML and CSS Nov 23rd, 2008 |
| Replies: 10 Views: 898 Just one thing - <p></p> elements are not allowed to contain h1-h6 elements.
This means you cannot have the following <p><h1>Heading Here</h1>The other text being here</p> |
Forum: HTML and CSS Nov 23rd, 2008 |
| Replies: 10 Views: 898 The difference is the following:
p {} only is a master declaration for your whole page. Definitions here will be inherited by all p tags by default. It is like a default style for p tags.
... |
Forum: DaniWeb Community Feedback Nov 22nd, 2008 |
| Replies: 141 Views: 10,362 It seems some people do not like changes. It is really good you changed the layout, now I really need to explore daniweb again, and I might say I have stumbled into places I've never been before...
... |
Forum: DaniWeb Community Feedback Nov 21st, 2008 |
| Replies: 141 Views: 10,362 Good, then split the browser window on both, so it will be in the perfect center then :)
Joking... |
Forum: DaniWeb Community Feedback Nov 21st, 2008 |
| Replies: 10 Views: 1,303 Ok, I like to help as well and I do my best to do so.
However, it seems to me that a lot of people here expect someone to do the job for them. I am speaking about PHP and HTML/CSS forums, as there... |
Forum: DaniWeb Community Feedback Nov 21st, 2008 |
| Replies: 141 Views: 10,362 Hey, I was just looking where to say how am I glad you changed design of the site. Now it seems to me more clean and sophisticated. I really like the new looks. Loads faster than the old version,... |
Forum: PHP Nov 21st, 2008 |
| Replies: 3 Views: 527 Well, here you should do some coding before printing the contents:...
//this is where you need to intervene
if ($arr_getf = mysql_fetch_array($sth_getf)) {
print '....'
instead, do... |
Forum: PHP Nov 21st, 2008 |
| Replies: 2 Views: 1,605 OK, as far as I understand you first want to check if such an appointment already exists, then, if the date-hour is free, you want to write the appointment. Is that correct? If it is this way, you... |
Forum: PHP Nov 21st, 2008 |
| Replies: 4 Views: 2,477 I think there is no a 100% guaranteed solution for this problem, no matter you conform to standards or not. I use gmail and constantly i have mails from friends of mine going into the junk folder,... |
Forum: HTML and CSS Nov 21st, 2008 |
| Replies: 9 Views: 2,129 http://www.w3schools.com/html/html_intro.asp
http://www.w3schools.com/css/css_intro.asp |
Forum: PHP Nov 21st, 2008 |
| Replies: 4 Views: 762 The proposed code works 100%, but maybe you have not explained precisely what do you want to do, or what errors you have, etc.
What pritaeas proposed is a 100% working solution to what you have... |
Forum: PHP Nov 21st, 2008 |
| Replies: 7 Views: 1,262 This is really strange, because I have tested the code in my server and it works perfectly. Note that it works either with or without the second dot with no problems. Basically what I did was to use... |
Forum: PHP Nov 20th, 2008 |
| Replies: 9 Views: 1,352 Guys, I am actually interested in the single quotes used - i mean one time quotes used are like this [ ‘ ] or [ ’ ], the other time used they are as supposed to be [ ' ].
I am not sure whether PHP... |
Forum: PHP Nov 20th, 2008 |
| Replies: 10 Views: 1,477 Ooops...my bad. I thought you want to append content rather than replace it.
In this case 'w' is correct option for fopen to be used. Maybe w+, but in any way, as I have read your code more... |
Forum: HTML and CSS Nov 20th, 2008 |
| Replies: 7 Views: 825 I do php and mysql, XHTML 1.1 strict, css 2, javascript. Now I'm looking towards Ajax, but actionscript and flex are cool. |
Forum: PHP Nov 20th, 2008 |
| Replies: 10 Views: 1,477 You should use fopen with parameter 'a' or 'a+'instead of 'w' in this way if file exists new data will be appended, otherwise php will attemt to create it.
... |
Forum: HTML and CSS Nov 20th, 2008 |
| Replies: 1 Views: 1,665 Sam, you never know how many pixels 100% is, because different users use different resolution on their screens.
This means that if your resolution is e.g.1600px wide, then a user with resolution... |