31 Posted Topics
Hi all, and thanks in advance for any replies. Google Places - great for helping nearby searchers find your business. But would signing up have a negative impact on searches outside of your business' region? For example (fictional): a user in London searches for "IT support" and finds my IT … ![]() | |
![]() | Re: Hey, Posted in a similar thread a while back: Technically there is little difference between the 2 - both are block-level elements so you could basically manipulate them in the same way, with CSS, nesting or otherwise. The difference between the two is semantics. The meaning of the element. A … |
Re: As @Andrew Collings posted, [URL="http://www.w3schools.com/"]w3shools[/URL] contains a wealth of information, presented in a really easy-to-understand way. I'd recommend checking out the HTML and separate CSS tutorials on [URL="http://www.tizag.com/"]Tizag[/URL]. Once you've got to grips with those they offer tutorials where you learn to build a simple HTML/CSS site from the ground … | |
Re: That sure is a lot of JavaScript to do something that would be simple with pure CSS: [url]http://www.alistapart.com/articles/horizdropdowns/[/url] For your existing code, I'd suggest it's something to do with the float value on your table (which is unnecessary on your demo page, but may be needed for what you're working … | |
Re: Try getting rid of the line: background-attachment:fixed; | |
Re: Protip: Use a basic css reset, for example: * {padding:0; border:0; margin:0} Then most basic styling rules will be cross-browser friendly. For the more advanced stuff like floating and dynamic sizing, always clear after using the float property to avoid height issues in firefox and text wrapping issues in old … | |
Re: Hey, You have called a custom function show_table(); before declaring what it is. Remember this is a php script - it will be parsed line-by line. [code=php]s how_table(); ?> <?php function show_table() { ?> <table border="1" cellspac... [/code] I agree with a previous comment that suggested echoing your table, if … | |
Re: If this code is rused on your mobile subdomain as well, it's possible you have entered a redirect loop. Make sure your index.php file at mobile.sitename.com does not include any redirects. | |
Re: If you are trying to get an apache server with PHP/MySQL up and running on a windows box, try XAMPP: [url]http://www.apachefriends.org/en/xampp-windows.html#641[/url] - basic package, exe. | |
Re: Hi, you need to encode these special characters, not "escape them". In PHP, characters are "escaped" using a backslash... for example if you want a quote in a string: [code=php]$string = "here is a double quote now \" followed by this text";[/code] These escaped characters must be "unescaped" when parsed … | |
Re: It is a "url parameter", basically when the page example.php?ref=home is requested, the server will call the file example.php and serve it's output. When the script example.php is being run, it can ask the server whether or not the "ref" url parameter is set, and if so what its value … | |
Re: Problem is here: [code=php]$destination="$_GET["town"]";[/code] - Anything starting with $_CAPS[] is a PHP array. Using quotes like this: "data here" declares a string. So if you were to echo "$_GET["town"]"; you will output the text "$_GET[", before PHP becoming confused by the remaining part - town"]". You are trying to output … | |
Re: This does sound like a database problem, the classic mysql_connect function is often used in conjunction with "or die(mysql_error())", which would explain why you don't see anything in your browser. To check everything else is working properly... Rename your index.php file and upload a simple html file called "index.htm" containing … | |
Hi All, thanks in advance for any replies. Environment: PHP5, MySQL, Windows XP/Server 2000/Server 2003. Problem: Using shell_exec to run a small program connected to a database, waiting for it to finish and then outputting a file which was produced. All was fine until I got a new and larger … | |
Hi all, and thanks in advance for any replies :) So I have a 300GB hard disk with Windows 7 on it, I also have a NAS drive for storing my music etc, so my C:\ drive only has to have the OS, my apps and games. Now a couple … | |
Re: [CODE=php]echo is_null($row['model']) ? "N/A" : $row['model'];[/CODE] This is an inline if/else statement. If the "is_null" condition is satisfied, the output will be "N/A", else the value of your array item. If the output is a number you could also use $row['model'] > 0 instead of is_null($row['model']). Let us know if … | |
Re: Technically there is little difference between the 2 - both are block-level elements so you could basically manipulate them in the same way, with CSS, nesting or otherwise. Table vs div on image stealing? Again they're both the same. If a user can see it he can make a copy … | |
Re: This just screams AJAX, or at least at lot of HTML and some serious Javascript... I don't think anyone will just give you anything more than links to tutorials here, but I hope I'm proven wrong! Good luck with your project :) | |
| |
Re: Hey, I had to do basically the exact same thing. You can use the TCPDF PHP library - it's really simple and can use basic HTML and in-line CSS to create and style tables for input :) [url]http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf[/url] | |
Re: A "headers already sent" warning arises when a script tries to modify header data after sending content (for example using echo). When this content is sent, the server will send a standard set of headers followed by that content, so it cannot modify those headers any more (because it's now … | |
Re: Hey, I use xampp myself when I'm developing on windows but from what I can gather they basically do the same thing. I'm going to assume here that the apache service is running on your machine, wampp should give you some feedback on that one. Go to C:\wamp\apache\htdocs (var/www in … ![]() | |
Re: OK let's say you have a user email address and you want to find the relative ProfileID $email = [email]abc@abc.abc[/email]; // Email address of user $profileIDQuery = mysql_query("SELECT * FROM Linkingtbl WHERE Email = '" . $email . "'"); fetches row of data where the in "email" data field corresponds … | |
Re: Hello again :) So you want to show the user's ID from this database, no problem, one question before I start going off on one though: What user-identifying data do you have available to you on this page that we could use to find other data associated with that user? … ![]() | |
Re: sudo apt-get install apache/apache2? | |
Re: "perhaps the least-regulated industry in the U.S. today." The internet is not an industry... It's a public forum, arguably playing host to industries - Online shopping/music/banking. They are the industries. This is why people see "Net Neutrality" in the completely wrong way. | |
Re: Hey, Set up a password protected directory with your web host/on your server. There's no point explaining it all here, googe "apache(or IIS) password protected directory". Or click here: [url]http://www.google.co.uk/search?q=apache+password+protect+directory&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a[/url] You'll notice the first link to the official apache documentation page here: - [url]http://httpd.apache.org/docs/2.0/howto/auth.html[/url] Or there is a more friendly … | |
Re: Just noticed a typo - if this code was copy/pasted it's probably your problem: musql_connect('192.16.1.2:3306', 'root', '123'); ^^ should be mysql_connect... Just thought I'd mention it ;) | |
Re: If you don't have any luck, try "fpdf" - you can give it html input i.e. tables etc, even basic CSS is supported! [url]http://www.fpdf.org/[/url] | |
Re: Hi, If you are just pressing the "back" button after logging out you will see the page visited previously - as cached by the browser. Try going back to that page and then hitting "reload" or "refresh". Post back if you're still having problems and we'll look at sessions/cookies :) | |
Re: It is a different style of programming - using classes, objects and methods in instead of includes/functions/variables. This is a good place to start: [url]http://www.killerphp.com/tutorials/object-oriented-php/[/url] |
The End.