- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I'm learning coding since 4 years, I started with HTML and CSS, followed by PHP, Javascript and Java 2 years ago, 1 years ago I started with jQuery
- Interests
- My Girlfriend ;) Webdevelopment <3 Partys :) some gaming facebook^^
- PC Specs
- TOWER-PC: CPU: Intel Core2 Quad CPU Q8200 @ 2.33GHz GPU: NVIDIA GeForce GTX 260 RAM: 8192 MB DDR2 Dual…
66 Posted Topics
Re: The easiest way would be to use php. It would also work with Javascript, but much more complicated what do you want to use? | |
Re: Hi, I don't exactly know what you mean by that, but maybe you are looking for [JSON](http://www.json.org) or [multidimensional arrays](http://webcheatsheet.com/php/multidimensional_arrays.php)? | |
Re: Hi, How about saving the video paths to a database together with the user id. To get the previous videos of a user, you fetch all videos of the specific user id. And to prevent videos from having the same file names, you could save them like [upload timestamp].[ext] I … | |
Re: why are there ":" in every input-element? [CODE] <html> <title> test </title> <body> <div align="center">???? <form id="form1" name="form1" method="post" action="1.php"> ??:<input type="text" name="username" id="username" /><br> ??:<input type="text" name="pass" id="pass" /><br> ??:<input type="text" name="email" id="email" /><br> <input type="submit" name="button" id="button" value="??" /> </form> </div> </body> </html> [/CODE] and the 1.php: [CODE] … | |
Re: use [CODE] function getHeight() { //function to geht the Clients window Height if(window.innerHeight) { return window.innerHeight; } else if (document.body && document.body.offsetHeight) { return document.body.offsetHeight; } else { return 0; } } document.getElementById('yourdiv').style.height = getHeight(); [/CODE] -Agarsia | |
Re: did you read your error.log? does it say something? try to debug your script step by step | |
Re: Maybe because the first of January is in the last week of the year before (1986) for example its an friday. then the first week of 1987 starts at the 4. of January. -Agarsia | |
Re: nope, this will not work. you can create a "select" element with javascript or css3 using div elements and in these you could have input-elements like: for example: [CODE] <div id="select"> <div id="active"><!--active option--></div> <div id="dropdown"> <div class="option"><input type="text" value="aa" /></div> </div> </div> [/CODE] this has to be designed with … | |
Re: First you need a webserver with php5 & mysql, for example xampp for windows [url]http://www.apachefriends.org/de/xampp.html[/url] (or lamp for linux) Then use a HTML/CSS/PHP Editor like Dreamweaver or Notepad++ a good tool to work with a database is [URL="http://www.phpmyadmin.net/home_page/index.php"]phpMyAdmin[/URL] then use a CMS, depending on what you need for your project, … | |
Re: Maybe you are looking for: [CODE]$str = implode("\n", array_slice(explode("\n", $str), 58));[/CODE] while $str is your document content and 58 the lines to be skipped -Agarsia | |
Re: [CODE]$("#item").html()[/CODE] to replace the inner HTML of #item, [CODE]$("#item").before()[/CODE] to add something before #item, [CODE]$("#item").after()[/CODE] to add something after #item, [CODE]$("#item").append()[/CODE] to add something to the HTML in #item or just use JavaScript: [CODE]document.getElementById('item').innerHTML = "...";[/CODE] | |
Re: Did you try this: [CODE]$string = '<?php $p="'.$_SESSION['z'].'"; ?> '; [/CODE] -Agarsia | |
Re: Could you post also the html and the rest of the javascript? in this part i don't see any errors, -Agarsia | |
Re: it does not show up in my sourcecode did you fix it? if not, maybe the '</div> <!-- content #end -->' is in your index.php or somewhere else, for example: [CODE]<?php include "footer.php"; ?></div> <!-- content #end -->[/CODE] maybe just search for the '</div> <!-- content #end -->' in your … | |
Re: Use ajax. to test if username already exists add this to your jquery: [CODE] $.post('checkusername.php',{'username':username},function(data) { if(data=="0") { //Username does not exist } else { //Username already exists } }); [/CODE] and create the checkusername.php: [CODE] echo mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '".$_POST['username']."'")); [/CODE] I hope it helps … | |
Re: I think noone here has the time to write the script for you -> use google to find snippets [URL="http://www.google.com/search?q=form+add+delete+textfield+jquery"]http://www.google.com/search?q=form+add+delete+textfield+jquery[/URL] 1. [URL="http://new2wp.com/snippet/jquery-add-remove-extra-input-form-fields/"]http://new2wp.com/snippet/jquery-add-remove-extra-input-form-fields/[/URL] 2. [URL="http://charlie.griefer.com/blog/2009/09/17/jquery-dynamically-adding-form-elements/"]http://charlie.griefer.com/blog/2009/09/17/jquery-dynamically-adding-form-elements/[/URL] I think these posts will answer your question :) -Agarsia | |
Re: there are 2 ways: 1. using php: - change the links in the "main.html" to: "frame.php?link=external_1.html&title=External 1" where external.html is your link and External 1 is the banner-title - create a php-file named "frame.php" and use some code like this: [CODE]<div id="banner"><h1><?php echo $_GET['title']; ?></h1></div><iframe src="<?php echo $_GET['link']; ?>" />[/CODE] … | |
Re: maybe use position: fixed this one is supported by IE since IE 7 about older IE like IE 6 do not have to care, Google or Facebook do neither | |
Re: maybe this works: [CODE] $(document).ready(function() { $(".accMenu li").hover(function() { $(this).addClass('hover'); //Use CSS to set the style for ".accMenu li.hover" $(this).click(function() { $(".active").removeClass('active'); $($this).addClass('active'); }); }, function( $(this).removeClass('hover'); )}; }); [/CODE] enjoy :) | |
Re: is poll.sql a database or a file? if you return a database it will not be printed as table, it will only connect to the database. so nothing will ouputed with the page you posted above | |
Re: phase5 [URL="http://www.phase5.info/"]http://www.phase5.info/[/URL] | |
Re: use .txt files, if someone comments, a php-file will insert an json-code, and update it when someone comments it again, like for post 2034 the php-file first creates the file 2034.txt, and it will add the comment like: [CODE] {1 : {'author':'Me','comment':'This is a comment','date','2011-02-22'}} [/CODE] on the posts' page … | |
Re: maybe this will help you: [URL="http://vandelaydesign.com/blog/web-development/jquery-image-galleries/"]http://vandelaydesign.com/blog/web-development/jquery-image-galleries/[/URL] | |
Re: [CODE]$(window).load(function(){ setHeight(); });[/CODE] this is not JavaScript, its jQuery, if you use it, please include your jquery.js [U]before[/U] including this script, else, if you are not using jQuery, look for an other method. By the way? what does this code should do? If this is not the solution, please post … | |
Re: Don't know what you want to do exactly, but you access the value of the input forms in javascript by: [CODE] document.formName.inputName.val() [/CODE] | |
Re: [CODE] $resultArray = mysql_fetch_array(mysql_query("SELECT * FROM table")); [/CODE] or don't I understand your question? | |
Re: [URL="http://developers.facebook.com/docs/"]http://developers.facebook.com/docs/[/URL] in the Facebook API you can find everything you need | |
Re: maybe use this in line 1: [CODE]$(document).ready(function() {[/CODE] | |
Re: Maybe because there is no stylesheet included? include the stylesheet you used in the screenshot and it will work. | |
Re: to enter things in mysql use php, to do this on the page, without referring to an php page use javascript/jQuery. to get which option is selected in javascript: [CODE] document.form1.selectboxName.value; [/CODE] | |
Re: why using " at line 27[CODE]"$qsuccess = mysql_query($sql)"[/CODE] try without: [CODE]$qsuccess = mysql_query($sql);[/CODE] | |
Re: you tried to set heights to the rows? and you shouldnt use max-height for the tbody, cause you need min-height in the problem you have | |
Re: Yes, the easiest way for you would be to use ftp and set the user rights to download only and the coworkers rights to upload and download. FTP would be fast but the interface isn't that nice. You could also use free File Uploader-Scripts. So you do not need to … | |
Re: Firstly: what is your exact problem? if its the Database, then forget it to create a page like facebook, because you need much more things of the database, or leartn how to use MySQL with PHP. Secondly: We do not code something for you, you can ask for help if … | |
Re: [CODE]$message = " echo $_POST["fname"]; echo $_POST["age"]; ";[/CODE] what are you doing there? if you want to set $message to the value of fname and age you have to use this code: [CODE] $message = $_POST["fname"].$_POST["age"]; [/CODE] | |
Re: how will the emplty a-Tag will remove the text? if you use no content for a, it will have a width of 0 and a height of 0 too, if you want the a-tag not to be displayed use css: [CODE]#a {display:none;}[/CODE] if you want to show the a-tag but … | |
Re: "it was not a PHP error, i fixed by given authenticated user write/modify/read permission on the wwwroot holder and the same permission to network resource account. initially i have the permission set up for network resource account, the error page still is there. then i search on php.net and add … | |
Re: use an PHP script, first count all rows in this table [CODE] $count = mysql_num_rows(mysql_query("...")); [/CODE] then get the last row and get the em_id of $last: [CODE] while($last = mysql_fetch_array(mysql_query("SELECT * FROM ... LIMIT ".$count.",1")); ) { $last_em = $last['em_id']; } [/CODE] now create the new id [CODE] $new_em … | |
Re: first of all: the url isn't right, if you want to get like: $test = 1 =>1.php and $test = 2 => 2.php this works: [CODE] while($row = mysql_fetch_array($sql_query) $test = $row['id']; { echo "<a href='".$test.".php"'>".$test."</a>"; }[/CODE] seconddly $test will not access the link, you have to set a id … | |
Re: why do you set a variable indexWhereFound? i think you mean indexFound? [CODE]{ var indexFound = -1; for (var position = 0; position < valueArray.length; position = position + 1){ if (valueArray[position] == value){ indexFound = position;} } return indexFound; } [/CODE] | |
Re: Use $_SESSION (creating session), $_COOKIE (setting Cookie), $_POST (using post) or $_GET (send variable via URL) i would use $_POST or $_GET ![]() | |
Re: you could use javascript instead of the header()-function, that would we what i would use: [CODE] <script>document.location.href = "index.php#contact";</script> [/CODE] that refreshes the page and scrolls down to the #contact | |
Re: first get the number off all posts: [CODE] $number= mysql_num_rows(mysql_query("SELECT * FROM post")); [/CODE] then do [CODE] $sites = ceil($number/5); [/CODE] to get how many pages there are. (5 is the number of posts per page) now test if $sites > 1, now if its over 1 use a for-loop … | |
Re: then create a javascript function that builds up the menu, then include the script in ever page and the function will create everywhere the same menu | |
Re: i would say, you should just use bottom: 0px instead of top: 531 for #iframe3 and maybe you should sett the a variable width to the iframes, so everyone can see the page fullscreen.. | |
Re: Firstly the Code in eval() isn't correct: [CODE]eval('document.documentGetElementById("imagepreview").innerHTML= content;');[/CODE] Secondly if this is pure JavaScript, it will not work, because many browsers do not allow Javascript to access local resources. Error: [CODE]Not allowed to load local resource: file:///C:/fakepath/DSC00053.JPG[/CODE] | |
Re: Google, first result: [URL="http://www.webdeveloper.com/forum/showthread.php?t=170285"]http://www.webdeveloper.com/forum/showthread.php?t=170285[/URL] second result: [URL="http://www.theukwebdesigncompany.com/articles/article.php?article=1583"]http://www.theukwebdesigncompany.com/articles/article.php?article=1583[/URL] third result: [URL="http://www.sephiroth.it/tutorials/flashPHP/sms/"]http://www.sephiroth.it/tutorials/flashPHP/sms/[/URL] | |
Re: if your dropdown box is like <select> <option> then just make a function with jquery: [CODE] $(document).ready(function() { $("#selectElementId").onchange(function() { ... }); }); [/CODE] this is the way you can let jquery do something when your select-box is changed |
The End.