545 Posted Topics
Re: Search these for reference.... [URL="http://php.net/manual/en/language.types.array.php"]http://php.net/manual/en/language.types.array.php[/URL] [URL="http://www.w3schools.com/php/php_arrays.asp"]http://www.w3schools.com/php/php_arrays.asp[/URL] | |
Re: PHP 5 is an OOP PHP ,and after PHP 6 all are OOPS....i am not sure that earlier version were OOPs or not,but from PHP 5 it is OOPS... | |
Re: Can you tell whether record is inserted in the table...Check your table records...and what problem you are facing in retrieving it?? Is it showing any error or the field is blank??? | |
Re: Have you install php editor for that....you require Apache server for that...So check whether you have that or not....otherwise download WAMP Server,Xampp server... | |
Re: Can you tell,what problems are you facing and write some code for that so that we can correct it or show you the direction to correct it??? We don't write complete codes,we only help to clarify any doubt or any error.... | |
Re: See it's just simple...once you have logged in just check the $_SESSION["admin"],if it is set then then use this:- [CODE]if(isset($_SESSION['admin'])) { //code for admin page....or either you can also redirect him to other pages for adiminstration and maintainance purpose } else { //non-admin page or content } [/CODE] | |
Re: display the value of $Title before that error line...and make that line as comment and tell whats the error...or whats the output.... [CODE] echo $Title; [/CODE] | |
Re: [CODE]header("Location: form.php?error=$error"); [/CODE] This is to redirect the user to the same page..for more reference about header,click[URL="http://php.net/manual/en/function.header.php"] here[/URL]... And moreover...the code above is not required at all... Just use javascript for the same....Click [URL="http://www.tizag.com/javascriptT/javascriptform.php"]here[/URL] to learn about different kinds of validation(These are called validations i.e., numeric input,or alha-numeric input etc) | |
Re: You need to download the [URL="http://www.uploadify.com/"]Uploadify-v2.1.4.zip[/URL] version and extract the files to uploadify folder in root.This will show the file as soon as it is uploaded.... | |
Anyone has an idea of how to execute the complete php code ....means i want to make online php editor...that will take code as input from user and correspondingly display the output.... I am not sure how to work with it... Till now i thought of taking input from user … | |
Re: So whats the problem???The code is fine. What do you want in that??? ![]() | |
Re: To read more about fatal error:"OUT OF MEMORY" ,Click[URL="http://techpp.com/2009/07/10/how-to-fix-php-fatal-error-out-of-memory/"]here[/URL] | |
Re: Check whether shorthand is enabled on your server otherwise....the code [CODE] <? echo $rows[username]; ?> [/CODE] won't work.... If it is not enabled then write like this [CODE] <?php echo $rows[username]; ?> [/CODE] | |
Re: I think your SMTP server is not configured.....configure it then only you can send mail... | |
Re: You may use date picker...just google and type day date picker...you can use that.... | |
Re: See the point is this ...we must start from scratch...and for web development...you must first understand the HTML ,then use CSS in it... And for PHP ,it is server side scripting...without knowing html ,css ,you can't work with php. So to learn these all just click [URL="http://www.w3schools.com"]http://www.w3schools.com[/URL] | |
Re: You can do that....while displaying the data from database use testbox to receive data and then you can directly update the data and while clicking on save button at the end,it will execute the update query.....Hope it's clear... | |
![]() | |
Re: the first error is due to this:- [CODE] $query= "SELECT `full_name` FROM account_details WHERE `account_number`='".$_POST['account_number']."'"; [/CODE] here you are only selecting the full name field only...and also check whether you want to select data from account or account_details instead of this it should be [CODE]$query= "SELECT `full_name`,`account_number` FROM account_details WHERE … | |
Re: check this link for pagination script...[URL="http://www.daniweb.com/web-development/php/code/351142"]http://www.daniweb.com/web-development/php/code/351142[/URL] | |
Re: Click [URL="http://www.tizag.com/mysqlTutorial/mysql-date.php"]here[/URL]....to get an idea about date datatype in mysql and how to work on it.... | |
Re: A kind of....but still user can enter your profile using SQL ejections,,,,, ![]() | |
Re: ~ $a- means(Not) Bits that are set in $a are not set, and vice versa. | |
Re: Use shell scripting....in that you have to use cronjob(but you must be using unix/linus OS) for this... For reference visit these links... 1.[URL="http://aplawrence.com/BDD/bbcronbasics.html"]http://aplawrence.com/BDD/bbcronbasics.html[/URL] 2.[URL="http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/"]http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/[/URL] | |
| |
Re: Some of the references for this are:- 1. [URL="http://php.net/manual/en/language.types.string.php"]tizag[/URL] 2. [URL="http://php.net/manual/en/language.types.string.php"]php manual[/URL] | |
Re: there were some errors that i have corrected in your code....and also i have tried to optimize the code..... [CODE]import java.util.Scanner; class prime { public static void primeNumberChecker() { Scanner keyboard = new Scanner(System.in); int inputInt; int number = 0; int f = 0; int i; System.out.println("Enter an integer value: … | |
Re: If you are displaying your code then add it in code snippets | |
Re: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Untitled 1</title> </head> <body> <table> <form name="myform" action="page2.php" method="post"> <tr> <td><input type="checkbox" name="a[]" value="name" />Name</td> <td><input type="checkbox" name="a[]" value="address" />Address</td> <td><input type="checkbox" name="a[]" value="mobile" />Contact No</td> <td><input type="checkbox" name="a[]" value="dob" />DOB</td> <td><input type="checkbox" name="a[]" … | |
Re: Just use mysql query for the same [CODE] $query=mysql_query("SELECT max(".$total.") from tpembeli"; [/CODE] This will suffice your requirement. | |
Re: To mark thread as solved ...click [URL="http://www.daniweb.com/forums/solved.php?t=369857"]Here[/URL] Another way to mark thread as solved is by clicking on mark this thread as solved at the end of the thread page. | |
Re: Just check if instead of using treeView.inc ,rename it to treeView.php and also rename where you are calling it....Check if it works... and for line 56...i suppose it must be EOHTML; | |
Re: see you are getting error in line 3828 and that too parse error so it seems that you missed semicolon on the previous line or the curly bracket .Just check the curly bracket and semi-colon.although it is hard to find in a code of 3000 lines....you can use netbeans editor … | |
Re: instead of this :- [CODE]$q="SELECT user_id FROM users WHERE (username=".$uname." AND pass==SHA1(".$p.")))"; [/CODE] try this:- [CODE]$q="SELECT user_id FROM users WHERE (username='".$uname."' AND pass=SHA1(".$p."))"; [/CODE] If still it is not workng then go to mysql and check what is the output when you are running this query.... | |
Re: I just tried to explain what i intepreted from your statement... If you have some other problem then you are expected to give complete code so that we can help you to understand it's working... [CODE]$i=0; while($row = mysql_fetch_array($query)){ $hf_id = $row["hf_id"]; $title = $row["title"]; $points = explode(",", $row["points"],$i); foreach($points … | |
Re: 2smartscheff -you are right but one more table to keep the record of players in a team is also required..... | |
Re: ardav is right...just when a user login...set a session variable for him.... And for every page include the script to check whether session variable is set or not otherwise they may try to enter in some other page without login... or just make a page to check whether session id … | |
Re: @smrati-the code you wrote is just too complex when we can write simpler codes ....using pipe in scripting is required if their are many operations to be performed... just by writing filename we can work with grep command not required [CODE] cat filename | grep word [/CODE] just write this … | |
Re: this code is for unix shell scripting....you better check if this works for WScript or not.... [CODE] set valu=3 a = 3 b = 2 c = 5 d = 1 for valu in $a $b $c $d if [ step = $valu ] then echo "the value is 3" … | |
Re: @gonidelux-your code miss the mysql connection string and the database as suggested by urtrivedi on which records are dumped.Include these lines before line 15:- [CODE] $conn=mysql_connect("localhost","root","") or die("couldnot connect"); [/CODE] | |
Re: you did a silly mistake in your code.... check your line 4,5,6 replace it with [CODE] $created = $result['created']; $looser = $result['looser']; $stolengold = $result['stolengold']; [/CODE] So the complete code will be.... [CODE] $query = "SELECT * FROM g_attack WHERE winner ='$username' ORDER BY created ASC LIMIT 10"; $row = … | |
Re: specify the columns and datatype in each table so that i can explain you the exact thing you require....otherwise my solution may not be of use.... | |
Re: Yes adkhan is write use session variables to hold the values you last selected and then when you click back....accordingly mark selected one.... For using session you must keep it in mind that don't forget to start session using [CODE] <?php session_start(); ?> [/CODE] and also it must be the … | |
I have tried a lot for JDBC using mysql but none of them work.... Can anyone help me how to get this work.... [CODE] import java.sql.Connection; import java.sql.DriverManager; public class Main { public static void main(String[] argv) throws Exception { String driver = "com.mysql.jdbc.Driver"; String connection = "jdbc:mysql://localhost:3306/abc"; String user … |
The End.