1,741 Posted Topics

Member Avatar for jino
Member Avatar for Jaaroma

Welcome to Daniweb Jane. I guess the problem is with the harddisk. Bad sectors maybe! Cant boot from a disc ? Have you changed the boot order in the bios ? Check this [url=http://www.pcfixreview.com/blog/2007/07/12/bad-pool-caller/] link. [/url]. This might be of some help to you ! Cheers, Naveen

Member Avatar for nav33n
0
203
Member Avatar for rt7878
Member Avatar for ravipanwar4u

Sir or ma’am, I am a web developer from the Philippines do you need a website? For just $1200 you can give me, and I will make a great and nice website layout for you. You can contact me @ mailto: >snipped< or please visit my personal website, and you …

Member Avatar for ivobrett
0
116
Member Avatar for Auch
Member Avatar for Auch
0
35
Member Avatar for halifaxer

[code=php] <?php $reg = '/<div class=\"value\">(.*)<\/div>/s'; $data='<td width="55%"><div class="value"> &pound;6.99 <font size="3"> </font></div> </td>'; preg_match($reg,$data,$matches); print $matches[1]; ?> [/code] That works. Cheers, Naveen

Member Avatar for nav33n
0
104
Member Avatar for frenchi1966

Its more of a css issue. Post it [url=http://www.daniweb.com/forums/forum143.html] here[/url]. Cheers, Naveen

Member Avatar for nav33n
0
74
Member Avatar for culp

hmm.. I dont see any infinite loop ! You can debug this script by putting your custom message after few lines followed by an exit. Repeat this step until you find an infinite loop! Also check the files you are including for an infinite loop. Cheers, Naveen

Member Avatar for culp
0
154
Member Avatar for rajeevkshr

Do you want to download an uploaded word document ? or upload and download a word document ?

Member Avatar for nav33n
0
71
Member Avatar for rahimah

[code=php] <?php if(isset($_POST['submit'])){ $selectedoption=$_REQUEST['select1']; //use $selectedoption in your query. } ?> <html> <body> <form method="post" action="test.php"> <select name="select1"> <option value=1>1</option> <option value=2>2</option> <option value=3>3</option> </select><br /> <input type="submit" name="submit" value="submit"> </form> </body> </html> [/code] :) retrieving the option value and using it in a query.

Member Avatar for nav33n
0
78
Member Avatar for kitkatsavvy

[QUOTE=ipban;525884]IP Guardian is designed to be an easy to use IP filtering system to secure your ASP pages against unauthorized visitors. You simply enter the IP addresses into the program and it does the rest. Statistics will show you how many times a banned IP has attempted to visit your …

Member Avatar for huangzhi
0
248
Member Avatar for pranjali
Member Avatar for aparnesh
Member Avatar for vnimol
0
131
Member Avatar for jowsefpirate
Member Avatar for Nobias
Member Avatar for C41R0
Member Avatar for washie
Member Avatar for chaze
Member Avatar for dami06

Using menus ? If a user is valid, redirect him to the next page which has a menu to navigate to all the pages. You can use the same header function to redirect the user after successful login. [code=php] <? // Check if session is not registered , redirect back …

Member Avatar for dami06
0
189
Member Avatar for monilees
Member Avatar for ricomann
Member Avatar for kv79

As you can see, theres a difference in style and font. As far as I know, most people dont use it ! [quote] <b>Note:</b> These tags are often used to display computer/programming code. [/quote] Ref: The example in the link provided by you. Maybe they use it in code examples …

Member Avatar for nav33n
0
82
Member Avatar for drsmith

Your validation is fine. And you can use the same for all 3 files that you want to read.

Member Avatar for drsmith
0
123
Member Avatar for carobee

umm.. I am not sure about this. But shouldn't [inlinecode]system("tar xvf /home/trial/x.tar");[/inlinecode] be [inlinecode] system("tar xvf /home/trial/x.tar.gz"); [/inlinecode] ?

Member Avatar for DimaYasny
0
48K
Member Avatar for pancgom

[code=php] <?php echo "<table border=1>"; echo "<th bgcolor=\"red\">test</th>"; echo "</table>"; ?> [/code] Hope that helps.

Member Avatar for ryan_vietnow
0
136
Member Avatar for chow2rich
Member Avatar for cancer10

Take a look at [url=http://hudzilla.org/phpwiki/index.php?title=Access_control_modifiers] this [/url].

Member Avatar for Walkere
0
116
Member Avatar for vbjenny
Member Avatar for chitra1
Member Avatar for Thinka
0
75
Member Avatar for dami06

Since you are using classes in your script, its kinda difficult to make out what it does. (fetch_GET, fetch_POST, authenticator, etc. ). The best way to debug your code would be to print or echo messages to check the flow of your script. You can use print_r($_POST) in login_check.php to …

Member Avatar for dami06
0
152
Member Avatar for Venom Rush

[QUOTE=anthmaina;523481]There are a number of attacks beside sql injections,others are like cross scripting flaws,session theft.You can take a look at [URL="http://www.sklar.com/page/article/owasp-top-ten"]http://www.sklar.com/page/article/owasp-top-ten[/URL] Also a good place you can learn more about php security is [URL="http://phpsec.org"]http://phpsec.org[/URL][/QUOTE] Thats a good link ! :)

Member Avatar for Venom Rush
0
127
Member Avatar for vbjenny
Member Avatar for spyrilautte
Member Avatar for creativehacker

[quote]'m not sure if this would be the best way to do it... [/quote] Exactly. Its not the best way. Its not safe. And, btw, file_put_contents only works if your php version is >= 5. Even I suggest you to use mysql database. But, if you can't have a database, …

Member Avatar for Walkere
0
107
Member Avatar for kishou

[code=php] if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { //do whatever you want... } else { echo "The file you uploaded is not application/ocet-stream. Or the filesize is > 400000"; exit; } [/code] Cheers, Naveen

Member Avatar for nav33n
0
75
Member Avatar for sagedavis

[code=php] <? $file = isset($_POST['file']) ? $_POST['file']:"testfile.php"; $newstring = '<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="newfile.php" method="post" name="new">'; echo $file; $newstring.='<input name="file" type="text" size="30" maxlength="60" /><input name="" type="submit" value="CREATE FILE" /> </form> </body> </html>'; $newfile …

Member Avatar for sagedavis
0
119
Member Avatar for a496761
Member Avatar for creativehacker

Try this. This lists all the images in the specified folder. [code=php] <?php $jpgdir = "./uploads/jpg/"; $dh = opendir($jpgdir); echo "JPG FILES"; print("<table border=2>"); while (($file = readdir($dh)) !== false) { if($file!='.' && $file!='..') { print( "<tr><td>"); print("<form name=del method=post action=\"del.php\">"); echo "<A HREF=\"$jpgdir/$file\"><IMG src=\"$jpgdir/$file\"/ height=70 width=70></A><BR>\n"; echo "<input type=\"hidden\" …

Member Avatar for nav33n
0
83
Member Avatar for werks
Member Avatar for joshSCH
0
231
Member Avatar for AP1

Actually, its not $virtual_page="Main_Page". Its because, You have opened the double quote and you are closing it at the end. (after </html>). And you are having a php tag within a php tag ! [code=php] <?php echo " <br /> </td> </tr> <tr> <td align=\"right\" ></td> <td align=\"right\" valign=\"top\"> <table …

Member Avatar for nav33n
0
141
Member Avatar for kc8pdr

[url=http://webyog.com/en/downloads.php]mysql yog[/url] is really good !

Member Avatar for peter_budo
0
69
Member Avatar for Vai

umm.. my question is, do you really need this complicated code to generate random password ? The user is going to reset it anyway. Well, for small purposes like this one, I would rather use something like [url=http://www.laughing-buddha.net/jon/php/password/] this. [/url] This will generate random password. Send a link to the …

Member Avatar for Walkere
0
147
Member Avatar for dorcas

Have you created a user called dorcas ? Have you given the user "dorcas" all permissions ? If your answer is no, [url=http://dev.mysql.com/doc/refman/5.0/en/adding-users.html] this [/url]might help you.

Member Avatar for nav33n
0
108
Member Avatar for nishanthaMe

[code=php] <?php mysql_connect('localhost','root'); mysql_query("CREATE DATABASE IF NOT EXISTS employees"); mysql_query("USE employees"); mysql_query("DROP TABLE IF EXISTS employees"); mysql_query("CREATE TABLE employees ( SSN varchar (30) NOT NULL, firstName varchar (30) NOT NULL, lastName varchar (30) NOT NULL, birthday date NOT NULL, employeeType varchar (30) NOT NULL, departmentName varchar (30) NOT NULL, PRIMARY …

Member Avatar for nav33n
0
71
Member Avatar for Stagemgrrob

[QUOTE=Jx_Man;522107]SELECT * FROM Customers where EmailAddress like '%" @ "%'"[/QUOTE] Why do we need double quotes around @ ? ("@") PS. I tried it and it gave me an error. We can use [inlinecode]SELECT * FROM customers where emailaddresses like '%@%';[/inlinecode]

Member Avatar for Jx_Man
0
135
Member Avatar for Zadj

umm.. He wants to count the number of child entries for a particular parent. For example, for mainid=1(description John), there are 2 entries in child. He wants to calculate the entries of each parent, put it in the first column named Total child. Then the sum of Is_important in the …

Member Avatar for nav33n
0
140
Member Avatar for jenpai

You dont need phpbb for this. Save the user's messages in a table.. You can have 2 tables.. users and messages. user_id -> foreign key for messages. Whenever the user saves a message, save it in messages table which references the user_id of that user. List all the messages of …

Member Avatar for jenpai
0
205
Member Avatar for Scrawn_Dog

You are outputting something on line 11 of checkout.php . As naju has mentioned, either call header function before outputting anything or comment line 11 !

Member Avatar for nav33n
0
87
Member Avatar for anupamamk2005

Use [url=http://www.w3schools.com/jsref/jsref_onload.asp]onload[/url] event. Call a function when the body loads. In that function, [url=http://www.w3schools.com/htmldom/prop_select_disabled.asp?output=print] disable [/url] all those textboxes you want to disable.

Member Avatar for serkan sendur
0
77
Member Avatar for rajeevkshr

Check [url=http://www.javascriptkit.com/script/script2/timestamp.shtml]this[/url] or [url=http://www.javascriptkit.com/script/script2/tengcalendar.shtml] this[/url]..

Member Avatar for rajeevkshr
0
182

The End.