133 Posted Topics
Re: I see only a block of code, without any description for what you want Can you provide us with more details ? ![]() | |
Re: I am not sure what you want, but I'll suppose that you want to eliminate the first element. If yes, then add: while($r=mysql_fetch_array($pc) && $i != 0){ .... } or you can use the limitation in the query if you want to eliminate the negative number and the zero, then: … ![]() | |
Re: First of all the server is running linux or windows ? For linux you can use the lampp which is provided by the same company that created the xampp. To access the server from another computer, type the ip of the server in the browser so you will be able … | |
Re: why don't you keep both -moz- and -webkit- at the same time ? and why are you using them .. you can do this with simple css no need for moz and webkit, personally i use them only to round corners | |
Re: I didn't really understand what you want. But you have lot of errors in this php code: <?php $system_date = Date("m/d/Y"); echo '<input type = "Date" value ="' . $system_date . '">'; ?> | |
Re: There are a lot of tutorials on google. Choose your language and start searching ! | |
Re: I suggest to add "or die(mysql_error())" after **mysql_query(...)** to understand what is the error | |
Re: If you are new to this field, I recommend you to read a PHP & MySQL book (For dummies is a good collection) or buy on online tutorial. Here are the steps you need to learn: 1- Basic PHP code 2- Learn the SQL operations (select, insert, update, delete) 3- … | |
Re: to do an online offline system u nees to set a column for the last_active to store when the user was lastly active (this is used in case the user close the browser without signing out) and u need to set another column is_online to check if the user is … | |
Re: There are lot of wordpress tutorials for biginners on youtube, check this link: https://www.youtube.com/results?search_query=wordpress+tutorial+for+beginners&filters=playlist&lclk=playlist And trust me it's one of the easiest open source CMS to create a website (usually a blog). Just download it from the official website http://wordpress.com/ , then intall it on your local host and check … | |
Re: okay i think that's becuz the $_POST['Name'] is not set in print.php. actually u are redirecting to the page print.php and not submitting the input values ... In other words u may use the post in the save.php cuz the form action is pointing to save.php but not in print.php. … | |
Re: Try this: hyp = (hyp.charAt(0)+"").toUpperCase() + hyp.substring(1); System.out.print(hyp); | |
Re: Thank you, it can be helpful if the browser does not support javascript or it's disabled ... | |
Re: Very easy,here's a detailed connection PHP & MySQL: //$variables to use in the connection $host = 'localhost'; //Most of the time it''s 'localhost' but may be different $user = 'root'; //username $pass = ''; //password $db = 'daniweb'; //first you have to make the connection, if not made => mysql_error() … | |
Re: $txtname = ucwords(strtolower($row ['First.Name'])) . ' '. ucwords(strtolower($row ['Last.Name'])); remove the replace function ... Don't complicate your life ... :) | |
Re: you can easily fix that by using the percentage %. Let's say that the background div has an id of 'context', then the css would contain: #context:{width:100%}; if you don't want to complicate your self by opening the css file and save and refresh. Use the firebug plugin on firefox … | |
Re: what does it give you when you enter the ip on the browser from the other pc, for example when entering 192.168.x.x ? Is it page not found or access forbidden or what? | |
Re: It's very easy, just use photoshop to crop the button and the box field. Then in HTML create a form that contain a input for the search box and submit button for the search, to do so: <form method="POST" action="search.php"> <input name="search" value="Search keyword ..." type="text" id="searchb"> <input name="sbutton" value="Search" … | |
Re: Unfortunately it won't work for < IE9, but if border radius is really a problem, then make the corners with photoshop and save them as images. | |
Hey all!! I am thinking of creating a website that may contain some buying/selling items, so I was wondering which framework is the best for shopping online. I have some experience with codeigniter, but I was using it for its MVC structure which organizes and uses files more efficently. Anyway … ![]() | |
Re: Hello, okay I'll fix this to make it exactly match the HTML code, but I am interested in who gave you this code ;) the recursion is smart ... I will assume that the categoryList() is the function to call to display the navigation menu function hasChild($parent_id) { $sql = … ![]() | |
Re: <?php $mysql_host = "***"; $mysql_database = "***"; $mysql_user = "***"; $mysql_password = "***"; mysql_connect($mysql_host,$mysql_user,$mysql_password); mysql_select_db($mysql_database); $query = "SELECT * FROM people coming"; $result = mysql_query($query); while($w=mysql_fetch_array($result)) { echo $w['Name']; } ?> okay lets see ... it's recommended that you don't insert spaces in the table names, but I think you … | |
Re: There are many books that can help (For dummies is a good start). Good Luck | |
Hello, I want to create tables in database (using SQL) and add foreign keys to each table refering to the other one. For example: CREATE TABLE ONE( ID INT NOT NULL, NAME VARCHAR(20) NOT NULL, TWOID INT NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (TWOID) REFERENCES TWO (ID) ON DELETE … | |
Re: PHP & MySQL solve your problem, buy for dummies book and start learning step by step :) | |
Re: Why I have a feeling that this is your homework ;) anw heres a semi-answer ... 1 . the diff btw this.dollars and otherMoney.getDollars(): this.variable means refers to the variable in the current class where this.variable appears. getDollars() is a function for the composite otherMoney which is also of type … | |
Re: Here the full tutorial https://www.youtube.com/watch?v=FmN4Pj3VWpc It worked for me I am using Windows 7 and ubuntu 12.04 If you have already installed ubuntu incorrectly, format the part of the hardisk reserved for ubuntu and follow the steps in the video :) Good Luck | |
Re: Okay the 2 classes are `Node` and `BST` PSEUDOCODE: **class Node has** value of type integer left and right node of type Node **class BST has** root of type Node Insert method using recursion (prefered recursion) Find method using recursion (remember it's a tree, so recursion should be your friend … | |
Re: I think you have to define a variable of type file and pass it as parameter to the fgets(): <?php $file = fopen("file/games.csv","r"); // Dump the games.csv file into an array $games = fgets($file); // Parse the array foreach($games as $game) { echo "{$game}"; } fclose($file); ?> ![]() | |
Re: If you want to design your own website you have to know: PHOTOSHOP HTML CSS If you want a blog with pro templates: wordpress (best blog framework) If you want free hosting: ex: www.yourname.something.com www.000webhost.com If you want paid hosting: ex: www.yourname.com www.bluehost.com www.godaddy.com To learn PHOTOSHOP HTML CSS you … | |
Re: Maybe the way you coded it is not the best way, but anyway you can use the height: #px; overflow:hidden; to cut the unnecessary space. | |
Re: I think this is what you are looking for: http://www.problogdesign.com/wordpress/load-next-wordpress-posts-with-ajax/ | |
Re: Sorry but your code is not clear ... why you are echoing at each line ? | |
Re: Do you want to put the footer at the extrem bottom ? if yse: change: <body> => <body style="position:relative;"> <footer> => <footer style="position:absolute;bottom:0px;"> (maybe you are using DIV for the footer, if so do the same but footer become div) | |
Hello all. Currently I develop PHP website, and I do simple java programs. Since I will continue learning more and more java, I decided to learn JSP/Spring MVC (Don't really know how Spring MVC Framework uses JSP, check next paragraph) combination of my web knowledge and the Java programming language. … | |
Re: Try this code, it worked for me ;) <?php $total= "AA AA AA AA BB BB BB BB BB BB CC CC BB BB BB BB AA AA CC CC DD DD DD DD" ; $keyarr=explode("\n",$total); $int=sizeof($keyarr); $i=0; $tmp = array(); $cur = 0; $found = false; while($i<$int){ $found = … | |
Re: Dear ggeof, just remove every thing related to positionning. Positionning is like forcing a block (div in this case) to be at a specific position. Try to avoid this option in css for simple website. In addition, positionning could create a problem in the display on different browsers when used … | |
Hello, well this suddenly surprised me .. dunno why ... i was trying to solve the binary-tree implementation ... where i noticed using root.left = new node bla bla My question insert(Node root,int value) root.left = new node(null null value) Etc ... The function doesnt create a copy of the … | |
Re: Dear Sobias, the remember me check box is to create a cookie in the browser so the user stay logged in until he/she kill the cookie by logging out or if the cookie expires in x Days. To do this from your website to login to another website: - You … | |
Re: Dear 'Fiorentino01^', there are 2 ways to do this: - Write the full path Ex: <a href="http://www.domain.com/web-site/2/home.html">go to Home</a> (This will be placed in the page index.html) and same thing with home.html - Write the path starting from the location of the file you are coding Ex: you are coding … | |
Re: Hello, it's enough, you are comparing username and password from user to database, the only two input that can identify the user are username and password, but make sure you are making the username unique. | |
Re: Dear 'techxaidz', the problem is not very clear, what I understood is: you have to make a class Library then create classes: Book, Magazin etc ... that will inherite attributes and methods from the Library class. But the problem is that the relationship of the inheritence is "**is**" For example: … | |
Re: Dear kimmi_baby, I can't see the difference in width btw the navigation/Meny bar and the slider. Please be more specific so we can help you :) | |
Re: Dear earlxph8, if you know how to use html this will be very easy for you. In html file you directly write `<p>Sample test</p>` however in PHP, you have to echo the html: `<?php echo "<p>Sample test</p>";?>` When you echo a string, it will be treated as a html text, … | |
Re: Dear Wailintun, this is knonwn for the Slider or S3Slider, try to google them and you will easily find the free source code for it. It's not difficult, try to understand it before the copy paste ;) | |
Re: Dear Ilda, I don't really understand, you need help in what data can be added to the database or how to create a database from zero ? Please be more specific, Thank you :) NB: You have to put some self effort and of course we will help you :) … | |
Dear Daniweb, I am facing a problem with daniweb forum, it keeps crashing randomly (only when I am browsing the website, if I am not on the website tab or not moving the mouse, nothing happens). I am using firefox mozilla OS: UBUNTU and WIN7 (same computer partition: ubuntu 14 … | |
Re: Ancient Dragon is totally true, and parallel processing makes the throughput even faster (Computers with multiple processors). But everything depends on the OS and the program running (Programmers can distribut tasks of there programs on different processors to make execution faster). A single processor cannot execute multiple instructions in exactly … | |
Re: Dear vizz, check this link for the full ways to convert integer to string in php http://stackoverflow.com/questions/1035634/converting-an-integer-to-a-string-in-php |
The End.