8,966 Posted Topics
Re: Here's one: [url]http://purecssmenu.com/[/url] | |
Re: The mysql_fetch_array function does this. It retrieves the table columns by id AND by name. You can use mysql_fetch_row instead. | |
Re: [code] <html> <head> <style> .wrapper { height:200px; position: relative; border: 1px solid #f00; padding: 1px; } .box1 { height:20px; border: 1px solid #0f0; } .box2 { height: 100%; border: 1px solid #00f; } </style> </head> <body> <div class="wrapper"> <div class="box1">I have fixed height</div> <div class="box2">I don't have a height</div> </div> … | |
| |
Re: [url]http://www.w3schools.com/TAGS/tag_fieldset.asp[/url] | |
Re: You can only do this by using a payment provider, like a bank, or paypal. | |
Re: The mysql_real_escape_string is intented to be used when you include a variable into an sql statement. You are just displaying the result. That is why you are shown a value with the extra slashes. The stripslashes function is the one that removes the slashes. | |
Re: It all depends on the size of the scripts and how much they influence the webpage. | |
Re: [code] SELECT elec.sum(votes) as votes, stat.sum(rating) as rating, votes/rating as percentage FROM elec, stat WHERE YEAR=2009 [/code] Only thing I'm not sure about is the YEAR = 2009 in the where. | |
Re: [icode]<p.*>(.*)</p>[/icode] [icode]<p.*>[/icode] matches the opening tag [icode](.*)[/icode] is a backreference to the remaining content [icode]</p>[/icode] matches the end tag | |
Re: Like this ? [code] <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#wrapper").hover( function () { $(this).toggleClass("blue"); }, function () { $(this).toggleClass("blue"); } ); }); </script> <style type="text/css"> #wrapper { background-color: #ccc; } #wrapper.blue { background-color: #ccf; } </style> </head> <body> <div id="wrapper"> <p>date</p> <p>description</p> </div> </body> </html> [/code] | |
Re: I'm guessing url(image/xx) should now be url(../images/xx) since the css has moved to a subfolder. | |
Re: [code] <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("li").each(function(i) { alert($(this).attr("value")); }); }); </script> </head> <body> <ul> <li value="1">item 1</li> <li value="2">item 2</li> <li value="3">item 3</li> </ul> </body> </html> [/code] | |
Re: Do you need to use a Google map, or is a plain image okay ? You can add polygons to a Google map, but I am unsure if it is possible to add a click to them. A normal image map can do the trick. ([url]http://www.w3schools.com/TAGS/tag_map.asp[/url]) | |
Re: There may be something in session.php or config.php that adds spaces to the output (or more). | |
Re: You should remove the include and use simplexml_load_file(). You cannot just include an xml file. | |
Re: No, use phpMyAdmin to export your database to an .sql file. It is a text file containing all queries to recreate your database. | |
Re: I don't know if you use jQuery, but I do, and I use this plugin for formatting floats: [url]http://code.google.com/p/jquery-utils/source/browse/trunk/src/jquery.strings.js[/url] | |
Re: Why not let the browser handle it: [code=php] <?php echo '<a href="mailto:' . $row_master_view['email'] . '">' . $row_master_view['email'] . '</a>'; ?> [/code] | |
Re: [QUOTE=network18;1036495]call this function on click of the link, from where you download the pdf file.[/QUOTE] This would still allow for downloading without password, just by looking at the page source. Another way would be to put the pdf in a separate folder on the server, and password protect it (using … | |
Re: [QUOTE=baltazar;1014476] According to the Cycle plugin docs, when you hover over a nav element, the cycle plugin gives it a "activeSlide" class and you can supposed to be able to manipulate the style of the element using this class. I have tried to do this but it doesn't work. [/QUOTE] … | |
Re: Something like this will insert a div with class new_item before the element with class class_next [code] $('<div class="new_item"><\/div>').insertBefore('.class_next'); [/code] | |
Re: li.Tag perhaps. Not a very nice solution, but it works. | |
Re: I can answer for Google OAuth: no. If you want to have the user's email address, then you can implement ClientLogin instead. However, I can't imagine that users are willing to supply their google login information to you. Don't know about the other's. | |
Re: You can use Google Charts API, or jQuery. My own dashboard consists of Google Charts, filled with data provided by Analytics. I also used a jQuery tagcloud for displaying Analytics keywords and top pages. | |
Re: What happens when the query fails, and $result is false, instead of a resource ? My guess is that there is an error in the query or it's not connecting correctly. | |
Re: Maybe you can find a solution you like on this page: [url]http://javabyexample.wisdomplug.com/web-programming/47-javascript/85-30-best-jquery-photo-plugins-sliders-slideshow-galleries-and-scrollers.html[/url] | |
Re: [icode]$i=$_GET['day'];[/icode] will cause the notice if you call the page without this parameter. To remove the notice, do this: [icode]$i = isset($GET['day']) ? $_GET['day'] : -1;[/icode] | |
Re: You can insert a datefield as '1971-10-28'. The data you are trying to insert does not fit in the date column. | |
Re: IIRC the older versions of wamp had a default root user (named: root) without a password. Any specific reason you've installed 1.7, and not 2.0 ? | |
Re: If you add your site to Google Webmaster Tools, you can change this setting. | |
Re: Looking for this ? [url]http://www.w3schools.com/Css/default.asp[/url] | |
Re: Check out this first: [url]http://dev.mysql.com/doc/refman/5.1/en/[/url] It contains everything you need to know to get started. | |
Re: If you really need to do this this way, then creating a msqli_multi_query could help. That way the server gets all queries at once, and does not need to handle each query separately. [url]http://php.net/manual/en/mysqli.multi-query.php[/url] | |
Re: $id is not set. Put the following on line 5: [code=php] $id = $_GET['id']; [/code] | |
Re: TO is a reserved word, put backticks around it: [icode]`to`[/icode] | |
Re: [code=php] $code = geoip_country_code_by_addr($GeoIPDatabase, $IP); if ($code == "de") { // goto page for germany } [/code] ![]() | |
Re: It is possible to attach a callback function to the animate() function. This callback is called after the animation is done. Put your post in that function. See [url]http://docs.jquery.com/Effects/animate[/url] | |
Re: Do you mean for indexing ? It is possible to add it to Google Webmasters Tools as a sitemap. | |
Re: The margin-left of the image is causing this. if you add to .main 50px left for the background image it will probably solve your problem. | |
Re: [url]http://www.zvon.org/xxl/XSLTreference/Output/function_substring.html[/url] | |
Re: For an empty line you can use [icode]Memo1.Lines.Add('')[/icode]. Line 3 and 4 should use this method too, because they are strings. Lines 1 and 2 add a TStrings object (a collection of strings). | |
Re: $members->start(); This requires that $members is an object, created with: $members = new <classname>; Where <classname> is the class you want it to be (probably db). | |
Re: maybe this will help [url]http://www.macronimous.com/resources/using_stored_procedure_with_mySQL_and_PHP.asp[/url] |
The End.