- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 19
- Posts with Upvotes
- 16
- Upvoting Members
- 14
- Downvotes Received
- 11
- Posts with Downvotes
- 7
- Downvoting Members
- 6
136 Posted Topics
Re: A yummy PIZZA....Domino's Double cheese dip pizza....it's a hell tasty!!!!! Also having Garlic French Fries..... | |
Re: i think so u made this script quiet complicated for php beginners.... I will soon post the easier solution to this ...might be in tomorrow evening.... i have worked many times in this type of pagings... ![]() | |
Re: check your code by replacing your line 8 with this..... [CODE]$str="delete from customer where customerid ='".$_POST['cid']."' ";[/CODE] If it's fine then ok...otherwise ....before line 8 add this line and see what's your output..... [CODE] echo $_POST['cid']; [/CODE] ![]() | |
i want to make a photo uploader page...that uploads photo and display it in the same page...but i also have one more problem...i don't want page to be refreshed...because i have other controls in that page....can u give an idea how to do so??? | |
Re: For me ,It's [URL="http://en.wikipedia.org/wiki/Tupac_Shakur"]2PAC[/URL] who gave a new singing style (rap) to this world.... And [URL="http://en.wikipedia.org/wiki/Mahatma_Gandhi"]Mahatma Gandhi[/URL] who used non-violence as his sword to fight for humanity.... .... | |
Re: form.php [CODE] <html> <body> <form action="uploader.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form> </body> </html> [/CODE] uploader.php [CODE] <?php echo "Party Symbol<br/>"; if($_FILES["file"]["name"]) { echo $_FILES["file"]["name"]; echo $_FILES["file"]["tmp_name"]; move_uploaded_file($_FILES["file"]["tmp_name"], "./images/" . $_FILES["file"]["name"]); } ?> [/CODE] This is the simplest script … | |
Re: i prefer JOOMLA...i have been using it since 1 year....very easy n great CMS..... | |
Re: I have done what u want.... form.php [CODE] <html> <head> <title>Add text </title> </head> <script type="text/javascript"> function add_field(a){ // create a div element var div1 = document.createElement('div'); // Get template data if(a==1){ div1.innerHTML = document.getElementById('fieldtpl').innerHTML; } // append to div, so that template data becomes part of document document.getElementById('addhere').appendChild(div1); } … | |
Re: the first code in ur script must be session_start(); to do this just copy my code and write it just at the beginning of ur code... [CODE] <?php session_start(); ?> [/CODE] Hope ur problem might be solved....if any problem persist PM me.... | |
Re: try this... [CODE] mysql_query("SELECT * FROM Products"); [/CODE] This might work...if it is not working then check whether there is any table or not???? And also provide us the structure of the table Products | |
Re: for pagination refer to the following link....Click [URL="http://www.daniweb.com/web-development/php/code/351142"]here[/URL] | |
Re: Wait for a day...i will make a better solution for this....and guide you to move on much further on the same.... Although vibha has given a nice example.... | |
Re: yes green codes are just comments ....you can delete them....they are meant only for others to understand how the code works and are not executed.... | |
Re: It is possible to do that...Although at present i don't have solution but it's a nice question n i will start working on it soon.... Many sites provide such kind of facilities... ![]() | |
Re: session_start() must be the first statement.... So just remove it and place it at top... [CODE] <?php session_start(); ?> <html> <head> <?php ob_start(); include('connection.php'); $username = $_POST['username']; $password = $_POST['password']; $remember = $_POST['remember']; $sql = ("SELECT * FROM users WHERE username='$username'"); $result = mysql_query($sql); if ($result) { $rows = mysql_fetch_array($result); … | |
I am working on developing p2p chat system and also file share system.... But only thing is that ...i can't find out the way to find how to implement it...i have worked on client server programs but i m not able to get p2p... The concepts of P2P are:- 1. … | |
Re: Think before writing [COLOR="red"]session_destroy()[/COLOR] It may lead to destruction of all the sessions....for reference click [URL="http://php.net/manual/en/function.session-destroy.php"]here[/URL].... | |
Re: click [URL="http://www.w3schools.com/html/default.asp"]HTML tutorial[/URL] for understanding it and learning it... Institute will suck bucks for no reason and will just play tricks for all these .... It's better to use online tutorial and if you have any problem then just post in forums....people are there to help ya!!!! And moreover i … | |
Re: See the basic for job portal is that you must be able to make a register form for both user and company.... User have to upload their resume in that form... And then from the data entered in company form and user form must be stored in a database.... and … | |
Re: check if the query you used to create database is similar to this:- [CODE] CREATE DATABASE database_name; [/CODE] I hope your problem is solved.... If you are not getting the database created then tell if you are getting any error and if so specify the error.... | |
Re: ok..i will help you out...First of all download Wamp Server by clicking [URL="http://www.wampserver.com/en/dl32.php"]here[/URL]... Next for learning CSS click [URL="http://www.wampserver.com/en/dl32.php"]here[/URL]... and for php click [URL="http://www.w3schools.com/php/default.asp"]here[/URL].. These links provided will help you to understand the basic concepts of PHP.... If you want further help then refer [URL="http://www.php.net"]http://www.php.net[/URL] [B]PS-If your problem is solved … | |
Re: It's very simple...just while fetching data write in the sequence in which you need data... For example:- [CODE]<?php //database connection string $result=mysql_query("SELECT * FROM table_name") or die("Query error"); echo "<table>"; echo "<th>Chair</th><th>Bed</th><th>Sofa</th>"; while($row=mysql_fetch_array($result)) { echo "<tr><td".$row['chair']."</td><td>".$row['bed']."</td><td>".$row['sofa']."</td></tr>" ; } echo "<table>"; ?>[/CODE] Hope it's clear... [B]PS-If your problem is solved mark … | |
Re: Ajax uploader and ajax update. Quite a few about now actually. Like the idea. May have a pop at it myself. I assume you need a callback function when the upload is completed 'cos as you know ajax is asynchronous, and using synch. ajax kinda defeats the object / causes … | |
Re: Click [URL="http://www.daniweb.com/forums/solved.php?t=361671"]here[/URL] to mark the thread as read.... For using the onload option is notworthy on the body event... | |
Re: This is the syntax of define() [COLOR="Red"]bool define ( string $name , mixed $value [, bool $case_insensitive = false ] )[/COLOR] It is somewhat similar to #define in c,c++ it is used to define the value to a variable and is used throughout the scope.... For more details.... To get … | |
Re: Use join to get records from 3 tables...For reference visit click [URL="http://www.tizag.com/mysqlTutorial/mysqljoins.php"]here[/URL] [B]PS-If your problem is solved mark the thread as solved[/B] | |
Re: Actually at present i am using the latest version WampServer 2.1e (32 bits) and it is working fine... i have worked with it's previous versions also and their all worked fine without any bug till now for me.... Download wamp by clicking [URL="http://www.wampserver.com/en/dl32.php"]here[/URL] | |
Re: As i presumes you want to create table using any of the field like textbox or combobox.... Just understand this code that how it works and your problem will be solved- [CODE] <form method="POST"> Enter table name<input type="text" name="t_name"> <input type="submit" value="submit" name="submit"> </form> <?php if(isset($_POST['t_name'])) { //database connection string … | |
Re: To upload file use this code... upload.php [CODE]<html> <body> <form action="uploader.php" method="GET" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form> uploader.php <?php //51 echo "Party Symbol<br/>"; //if($_FILES["file"]["name"]) { echo $_FILES["file"]["name"]; echo $_FILES["file"]["tmp_name"]; move_uploaded_file($_FILES["file"]["tmp_name"], "./record/" . $_FILES["file"]["name"]); } ?> </body> </html>[/CODE] Check this … | |
Re: See their is one more method you can store the location of image instead of storing image in database.... And then retrieve the location of image and just use image tag...Hope it's clear..... [B]PS-If your peoblem is solved marked the thread as solved...[/B] | |
Re: header must be top of the codes. Don't use headers bottom of html codes. The "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags (<?php . . . ?>). | |
Re: Click [URL="http://www.dynamicdrive.com/dynamicindex11/abox.htm"]here[/URL] to learn about popup view using javascipt | |
mods i want to ask if it will be possible to change my email id for subscription to threads...It's filling my personal email id so i made another for forums...now i want to shift my subscription to that mail-id... Please help how can i do that... I want to shift … | |
Re: Don't panic...i am back to help you all... n2=(++n1)+[B](++n1)[/B] See the concept is that ++n1 is preincrement operator having greater priority so it will first increment n1 value and making it 3..... n2=[B](++n1)[/B]+(++n1) ++n1 is preincrement operator so it will be incremented to 4.... Now the above code is similar … | |
Re: So whats the problem ???is any error notified???or the uploading is not working.... Specify so that i could help you... | |
Re: See the difference between GET and POST method is that GET method sends the form value send reflected in URL...Ofter this must be avoided when using secure login...as this may lead to insecurity or backhole left in your code leading to illegal access... POST methos sends the data but doesn;t … | |
Re: For xampp just install the xampp server and to start php and mysql services just click on start services in them and to stop them click on stop services... For using editor with xampp you can use netbeans 6.9 as a php editor... Netbeans is a good editor because ut … | |
Re: I have tried to make the code simplier for you to understand easily... I debugged code and removed the errors... First of all while reading data you must put your code within try and catch block.... [CODE]import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class pat { public static void main(String … | |
Re: [CODE] function foo() { echo "thanks for calling"; } $goto=$_GET['goto']; $sections= array('fail','success'); if(in_array($goto,$sections)) { foo(); //call the function u want to call here } [/CODE] | |
Re: Check the code.... [CODE] <?php $ip = $_SERVER['REMOTE_ADDR']; echo $ip; if($ip >= "00.00.00.00" && $ip <="127.0.0.1"){ echo "<font color='red'>Ooops, your ip address has been banned from this website.</font>"; exit(); } ?> [/CODE] Hopefully it was useful... PS-If your problem is solved...mark the thread as solved... | |
| |
Re: You can do this by just using a simple sql query.... You can do it by using "LIMIT" it will limit the number of records. If you have problem in that please notify that.... Code will be somewhat like this:- [CODE] SELECT sum(price) from info limit 10,10 [/CODE] In this … | |
Re: [CODE]class pat{ public static void main(String []args) { int w=4,t=0; int k = 1; int[]array=new int[5]; for (int r=0;r<=4;r++) { for (int i=r;i>=0;i--) { array[i]=i+1; System.out.print(array[i]); } System.out.println(); } } }[/CODE] | |
Re: what do you mean by submission script???Do you mean entering data in form or entering data in database???? Specify.... | |
Re: Look at the code below...I think so this is what you are looking for... data.php [CODE] <?php $con=mysql_connect("localhost","root","") or die("couldn't connect to mysql"); $db=mysql_select_db("abc",$con) or die("database not found"); $result=mysql_query("SELECT name FROM aaa") or die("query error"); echo "<form action='' method='GET'>"; echo "<select name='s'>"; while($r=mysql_fetch_array($result)) { //echo $r['name']; echo "<option value='".$r['name']."'>".$r['name']."</option>"; } … | |
Re: script for paging to show 1 to 10 at bottom of the page.... check.php [CODE]<?php $page=1; $nor=10; $a=1; if(isset($_GET['page'])) { } else { $_GET['page']=1; } echo $_GET['page']; $con=mysql_connect("localhost","root","") or die ("error"); $db=mysql_select_db("check",$con) or die("database not found"); $result=mysql_query("SELECT * FROM comment") or die ("query error"); echo "<table border='1'><tr><th>name</th><th>Comment</th></tr>"; $r=mysql_num_rows($result); echo $r."<br/>"; … | |
Re: See you can work this out in one way....store all images in a folder and in database add location of image (either relative or absolute)... and then just display ie using the below code... [CODE] <?php include 'includes/connection.php' ; $query = ("SELECT * FROM pets"); $result = mysql_query($query); while($dog = … |
The End.