- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 26
- Posts with Upvotes
- 25
- Upvoting Members
- 19
- Downvotes Received
- 13
- Posts with Downvotes
- 11
- Downvoting Members
- 8
164 Posted Topics
Re: If I understand it correctly, it is not a coding problem but you want to now how you can check if a room is free or not. I had the same problem with a holiday home rental system years ago and solved it this way. Create a table with 365 … | |
Re: There is a similar question here: [URL="http://www.codeguru.com/forum/showthread.php?t=494378"]http://www.codeguru.com/forum/showthread.php?t=494378[/URL] with a lot of reply's. Maybe it will bring you closer to an answer. | |
Re: It seems you have already solved it. In Firefox 3 under Linux I do get a new background image when pressing F5 or the refresh button. | |
Re: Welcome. You may want to look here [URL="http://www.phptutorial.info/iptocountry/the_script.html"]http://www.phptutorial.info/iptocountry/the_script.html[/URL] They explain how country identification works and have ready to use php online. In the response from users section, ([URL="http://www.phptutorial.info/iptocountry/responses.html"]http://www.phptutorial.info/iptocountry/responses.html[/URL]) the second question and answer is exactly what you are looking for. | |
Re: wmode = transparent only seems to work in MS Windows and sometimes in Linux browsers. (don't now about the Mac, can someone say something about flash on the Mac). But it depends on the rest of the code used. I'm re-designing a web site and there will be a flash … | |
Re: The letters are not coming out of a database I presume. Just an echo in the php file where these letters should be displayed in a browser? If so, you can repair the problem by re-opening the php file with a editor that understands utf-8. Under Windows you could even … | |
Re: If you want to learn PHP please don't read this tutorial. Buy a good book or read some good books that are published online. | |
Re: What does curl_getinfo give? It might give more info why it goes wrong so many times. | |
Re: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Sticky Footer</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <style type="text/css"> * {margin: 0;} html, body {height: 100%;} /* the bottom margin is the negative value of the footer's height */ .wrapper {background:#ccc;min-height: 100%;height: auto;height: 100%;width:500px;margin: 0 auto -142px;} /* … | |
Re: And remember, any method to get anything over a flash will not work when your page is opened under Unix or Linux. The flash plugin for Linux simple does not work correctly. | |
Re: Thank digital-ether for this part: onclick="return (confirm('do you really want to delete the stuff?')) Tried it with a submit button in a form and it even works here. Perfect. Just what I was looking for. | |
Re: Did a search with Google and it looks like IE7 is doing the right thing. On a lot of sites there are complains about absolute positioning in IE8. Seems it is not working the way it should. While searching found this site: [URL="http://msdn.microsoft.com/en-us/library/ms533005%28VS.85%29.aspx"]http://msdn.microsoft.com/en-us/library/ms533005%28VS.85%29.aspx[/URL]. Maybe it will help you solve the … | |
![]() | Re: I'm using Firefox 3.5.10 (in a virtual environment) and 3.6.6 under Slackware Linux 12.1. Daniweb looks (unfortunately) more or less the same as it does with IE on a Windows machine. ![]() |
![]() | Re: [QUOTE]But it took me about 5 minutes to figure out how that worked[/QUOTE] Only 5!! Took me a lot longer. It seems that things that are not important are in font size enormous and for what does matter you need a microscope to be able to read it. |
Re: Just add [CODE]<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> [/CODE] as first thing after <head>. As for South East Asian languages I'm not sure, but I think using utf-8 will do no harm. Al the characters of those languages are incorporated in utf-8. | |
In the previous version of Daniweb there was 1 error and no warnings reported by the web developer toolbar in Firfox 3.5.9 under Linux. But the current version has a few more (a lot more actually). For instance, when opening [URL="http://www.daniweb.com/forums/forum17.html"]PHP forum[/URL] with the same browser you get the following … | |
Re: I have a book about creating a webshop system but it isn't in English. Maybe this site: [URL="http://www.boran.com/book/export/html/43"]http://www.boran.com/book/export/html/43[/URL] gives some useful information. | |
Re: [QUOTE=neethu balan;1197579]linking database selected through dropdownlist with corresponding database in mysql via php[/QUOTE] Yes, that's the title. Did you press the submit button to quickly or what? What is the actual problem? | |
Re: [B]>> Okay, new design and we still only have two colors, red and green! Yucky!!![/B] Only two?? I see all shades of grey (not a color by the way) and a lot of shades of purple. That at least makes 3 colors. | |
Re: Based on the replies in several threads in this forum daniweb is going to loose it trusty long term members and goes on with newbies. It seems only the newbie posters are happy with the changes. Queen of DaniWeb, a real Queen listens to the people and acts accordingly. I … | |
Re: [QUOTE=saranraj.cmr2;1205632]Hi to all, I am developing web application in kohana php farmework. I want to do water mark image in this application. There is no library available in kohana php for this issues.. Checked in plain php. Its working well. but that same function not working in kohana framework php. … | |
Re: It shouldn't be to difficult to find a professional designer or company that knows what they are doing and can make a fully functional website like this one. Or is jess3.com chosen for financial reasons? It is just a thought, but there are quite a few professionals member of Daniweb. … ![]() | |
Re: Based on the previous replies here, I conclude that there is still no solution. The following code will upload any file (test for file-type is not included yet) to the folder "upload". [CODE]<?php // set the destination $uploaddir="upload/"; // test for errors if ($_FILES['file']['error'] > 0) { echo "There is … | |
Re: [QUOTE=WaltP;1224285]The ADA -- I agree. They make [B]my[/B] teeth hurt too. I also think flash sites should be banned, to, as well as automatic music and video, and flashing ads.[/QUOTE] Don't forget the abundant use of the color purple. | |
Re: The current layout, use of color, fonts are to big, and it is harder to read prove that not every change is an improvement. Eventually you get used to it, but .... I don't think I will be so active here as I was lately. And oh my, that permanent … | |
Re: [quote]Also, its been just one day. There have been things fixed all over the place, things will get better, just give them time. We can't have everything fixed all at once [/quote] After you have been building a site or restyled and existing one, you should test and test again … | |
Re: You could put the part to create a thumbnail inside main.php like so:[CODE]<?php function show_thumbnail($image) { $path_parts = pathinfo($image); $basename = $path_parts['basename']; // width and height of thumbnail $new_w = 200; $new_h = 200; // get info about the image list($width,$height,$imgtype) = getimagesize($image); if (empty($imgtype)) { // it seems we … | |
Re: What messages do you get in the error log(s)? The mysql error log file is usually found in the mysql data folder and ends in .err | |
Re: On line 87 of the first php file you use if (isset($_POST['filename'])). But this won't work. If you want the name of the uploaded file use $_FILES['filename']['name']. To check if any file is selected before the submit button is pressed use is_uploaded_file($_FILES[$filename]['tmp_name']); So in your code you could change this … | |
Re: I have done some tests. If your mysql table charset is set to Greek, you can enter Greek characters in the table and when viewed with the query browser, the do look like Greek and not garbage. So instead of[CODE]CREATE DATABASE `database1` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; [/CODE] use[CODE]CREATE … | |
Re: In the form (index.php) you use "user1" and "password1". But in login.php you start to use "user1_login". To make this work, first change references so they are all the same. If you use "user1" in the form, keep using "user1" in the page(s) after that form. | |
Re: Welcome. Did look at the site with Firefox and didn't see any image overlap. Is the overlap only in specific browsers? In the "products" part you are using tables. Maybe each of the <td>'s need to have the width set also to avoid overlapping. But it is hard to tell … | |
Re: [QUOTE=dan_t;1213995]Another question, Is there a way in php to send emails without having to use the "mailto:" ? Most everything I have seen uses this method, but a lot of people don't use MS Outlook. Thanks Dan[/QUOTE] The use of "mailto:" is not related to Outlook. On a Windows machine … | |
Re: Did you check if the cpu has come loose? Or the cpu fan? | |
Re: [QUOTE][CODE]$_to = array(); //get recipients $_to[] = "name@email.com" . ", "; $_to[] .= "name@email.com"; //set the headers $headers = "From: <name@domain.com>"; mail($_to[$i], $_subject, $_text, $_headers);[/CODE][/QUOTE] I don't see $i in the above code. And why are you using an array? Change $_to[] to $_to and remove the line $_to = … | |
Re: And remember, if you are viewing this page on a Linux machine, the menu will always be behind the flash. On a Linux machine, no matter what you try flash will always be on top. | |
Re: If I found the right line in the source code, you need to tell the background not to repeat. Like so: [CODE]<td colspan="2" valign="top" background="http://djfades.com/images/main_bg.jpg" style="background-repeat: no-repeat">[/CODE] | |
Re: When using a form to upload files, (input type="file") you can get the name of the file this way:[CODE]$name = $_FILES['upload']['name'];[/CODE]Assuming that your form looks like this:[CODE]<form method="post" action="upload.php"> <input type="file" name="upload" value="" maxlength="200" size="40"> <input type="submit" value="submit"> </form>[/CODE] | |
Re: Make sure the table is using charset utf8. Then before you insert or select from this table use [CODE]mysql_query("SET character_set_client=utf8", $con); mysql_query("SET character_set_connection=utf8", $con);[/CODE] That way Chinese will go in the table and will come out again. | |
Re: You might be able to do it with curl. See here: [URL="http://curl.haxx.se/"]http://curl.haxx.se/[/URL] In php you prepare the curl command needed ($command = "curl ....."; and execute it with system($command); | |
Re: Yes and no, but the debate is still going on. CSS is in, no doubt about that. The benefits of using css are huge. Every modern site uses css nowadays. As for tables, they are out but not completely. There are still situation where css is "not up to the … | |
Re: You should check the value of 'f1'. See that it is appended to $fullpath (in download.php) but the result is an illegal path. There are too many forward slashes in this part of the path: [CODE]Project////qhdebug.log[/CODE] | |
Re: [I]From [URL="http://dev.mysql.com/doc/refman/5.0/en/replace.html"]http://dev.mysql.com/doc/refman/5.0/en/replace.html[/URL][/I] [QUOTE]REPLACE works exactly like INSERT, except that if an old row in the table has the same value as a new row for a PRIMARY KEY or a UNIQUE index, the old row is deleted before the new row is inserted[/QUOTE] Haven't completely checked your posted code, but … | |
Re: I have no doubt that there are many ways to do it. Maybe this will work for you: [CODE]<?php // Where do I run (Window or Linux) and handle accordingly if (strtoupper(substr(PHP_OS,0,3)=='WIN')) { // Windows $path = "C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs"; $command = "dir /s/b/o:g ".$path." > dirlist.txt"; } else … | |
Re: [I]From [URL="http://php.net/manual/en/reserved.variables.server.php"]http://php.net/manual/en/reserved.variables.server.php[/URL][/I] [QUOTE] 'HTTP_REFERER' The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. [B]In short, it cannot really … | |
Re: Hard to tell. It depends on your own knowledge and what is covered in those courses. | |
Re: Don't know this particular hard drive, but it strange you need a driver for it in Windows XP. I have 9 external usb hard drives (from Maxtor, Seagate, IOmega and Western Digital) and have never installed any drivers for it. Used the Maxtors even under Windows 98. The fact that … | |
Re: [QUOTE][CODE]$sql= "INSERT INTO flats (date_posted, type, location, rent, title, image, image1, image2, image3, image4, description, contactEmail, number) VALUES (NOW(),'$_POST[type]', '$_POST[location]','$_POST[rent]', '$_POST[title]', '$_POST[image]', '$_POST[image1]', '$_POST[image2]', '$_POST[image3]', '$_POST[image4]', $_POST[description]','$_POST[contactEmail]','$_POST[number]')"; $sql2 .= "INSERT INTO user (email, password, conpass) VALUES ('$_POST[email]','$_POST[password]','$_POST[confirmPassword]')";[/CODE][/QUOTE] Insert an echo $sql."\n"; on line 3 in the above code to see … | |
Re: A colleague of mine came up with phpLiveDocx, a Zend Framework component and can read and write DOC and DOCX files in PHP on Linux, Windows and Mac. The project web site is: [URL="http://www.phplivedocx.org"]http://www.phplivedocx.org[/URL]. But I haven't worked with it, so can't say anything useful about it. |
The End.