545 Posted Topics

Member Avatar for atfOnly

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]

Member Avatar for atfOnly
0
172
Member Avatar for Xufyan

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...

Member Avatar for MooGeek
0
136
Member Avatar for 7kemZmani

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???

Member Avatar for IIM
0
124
Member Avatar for aru211285

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...

Member Avatar for aru211285
0
154
Member Avatar for Siberian

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....

Member Avatar for MooGeek
0
193
Member Avatar for feedz87

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]

Member Avatar for mgt
0
2K
Member Avatar for Joe34

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]

Member Avatar for karthik_ppts
0
224
Member Avatar for Xufyan

[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)

Member Avatar for Stefano Mtangoo
0
361
Member Avatar for extemer

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....

Member Avatar for krabz01
0
117
Member Avatar for IIM

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 …

Member Avatar for IIM
0
241
Member Avatar for boituron
Member Avatar for diafol
0
305
Member Avatar for programmer12

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]

Member Avatar for programmer12
0
118
Member Avatar for RazorRamon

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]

Member Avatar for IIM
0
634
Member Avatar for bishaw

I think your SMTP server is not configured.....configure it then only you can send mail...

Member Avatar for IIM
0
171
Member Avatar for vamshidhar66

You may use date picker...just google and type day date picker...you can use that....

Member Avatar for vamshidhar66
0
59
Member Avatar for Dorar

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]

Member Avatar for twiss
0
2K
Member Avatar for uselessninja

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...

Member Avatar for uselessninja
0
77
Member Avatar for dmelgray
Member Avatar for heshanm

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 …

Member Avatar for ko ko
0
115
Member Avatar for knitex

[CODE]$sql = mysql_query("select * from new_file where name like '%$term%'");[/CODE] Just try this code... [CODE]$sql = mysql_query("select * from new_file where name like '%$term%' and country like '%$term%' "); [/CODE]

Member Avatar for karthik_ppts
0
152
Member Avatar for jacob21

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]

Member Avatar for karthik_ppts
0
1K
Member Avatar for RazorRamon

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....

Member Avatar for IIM
0
101
Member Avatar for MooGeek
Member Avatar for diafol
0
136
Member Avatar for Yemen Coder
Member Avatar for ko ko
0
149
Member Avatar for vasuv

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]

Member Avatar for IIM
0
156
Member Avatar for jacob21
Member Avatar for abhi10kumar

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]

Member Avatar for ko ko
0
64
Member Avatar for Chicken80

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: …

Member Avatar for jon.kiparsky
0
353
Member Avatar for phoenx
Member Avatar for IIM
0
268
Member Avatar for jacob21

[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[]" …

Member Avatar for karthik_ppts
0
144
Member Avatar for weeon

Just use mysql query for the same [CODE] $query=mysql_query("SELECT max(".$total.") from tpembeli"; [/CODE] This will suffice your requirement.

Member Avatar for twiss
0
112
Member Avatar for svcghost

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.

Member Avatar for IIM
0
222
Member Avatar for peterpa

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;

Member Avatar for peterpa
0
247
Member Avatar for MDanz

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 …

Member Avatar for almostbob
0
204
Member Avatar for dhruv_arora

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....

Member Avatar for dhruv_arora
0
138
Member Avatar for joban.ali

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 …

Member Avatar for joban.ali
0
99
Member Avatar for Fulladder

2smartscheff -you are right but one more table to keep the record of players in a team is also required.....

Member Avatar for smantscheff
0
388
Member Avatar for vizz

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 …

Member Avatar for IIM
0
101
Member Avatar for Shruti4444

@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 …

Member Avatar for IIM
1
134
Member Avatar for happy8899

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" …

Member Avatar for IIM
0
161
Member Avatar for gonidelux

@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]

Member Avatar for IIM
0
540
Member Avatar for Sorcher

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 = …

Member Avatar for Sorcher
0
63
Member Avatar for mahmudfaisal

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....

Member Avatar for vibhaJ
0
145
Member Avatar for branding4you

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 …

Member Avatar for IIM
0
139
Member Avatar for IIM

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 …

Member Avatar for IIM
0
124

The End.