39,323 Topics

Member Avatar for
Member Avatar for peck3277

Hey guys, seriously going mad here, any help is appreciated. I have a directory of .txt files. What I want is this. I want to go through this directory and display it like something like this: A All files beginning with A B All files beginning with B etc. The …

Member Avatar for peck3277
0
66
Member Avatar for Stefano Mtangoo

How can I protect a folder with some files from being accessed by htaccess? I'm newbie so take it with grain of salt.

Member Avatar for Atli
0
119
Member Avatar for sethm

I have recently had some help from a very knowledgeable person here on the forums about uploading an image and inputting the path into a DB. I have even been able to tweak this code to update the rest of the fields on the website, when I need to edit …

0
104
Member Avatar for abdullah_359

H, i am very happy to discover new friends , and would you like help me recently i have got domain and hosting i want to add the best game script with data bse , any body can help , plese design . Thank you . . . . . …

Member Avatar for abdullah_359
-1
95
Member Avatar for techgossips

I’m going to demonstrate a very short and simple method of avoiding SQL Injection at the SQL query level. You’ll need MySQLi support, on Debian you can apt-get install php5-mysql will contain everything that you need, and would be installed by default with your LAMP Installation. Calling: [url]http://www.mynonexistentdomain.com/test.php?user_id=10&record_number=1[/url] Ignoring any …

Member Avatar for jomanlk
0
316
Member Avatar for Gearspro

Hi guys, really need your help on this one. Because i have been searching the web all day today and i cannot find out how to it. The only possibility i found was to pay a professionally do it for me, but sadly i don't have the money to afford …

Member Avatar for Gearspro
0
154
Member Avatar for whiteyoh

Hi all, I have a pdo connection script to mysql, which works fine. What im a little stuck on is that when i "include" the file, its connected, but how do i call the table to which my query is related to? The first snippet is the connection, and the …

Member Avatar for whiteyoh
0
119
Member Avatar for Andy_nexus

Hey all, need some advice. which would you say was more efficient i've checked the execution times of both scripts and they average out about the same tbh, just wondered if one way was a 'better' way of doing it. Code 1 [CODE=php] <?php $url_home = 'url'; $top_10 = "SELECT …

Member Avatar for jomanlk
0
150
Member Avatar for akkkk

Hello, can somebody tell me why I get a parse error in this file? The error message is on line 20 according to the error log, the last line. [CODE]<?php // errormsg.php function error($msg) { ?> <html> <head> <script language="JavaScript"> <!-- alert("<?=$msg?>"); history.back(); //--> </script> </head> <body> </body> </html> <? …

Member Avatar for akkkk
0
245
Member Avatar for peck3277

Hi all, I've tried searching both here and google for help on this one. I'm not quite sure what to call it basically I have a directory with different files all .txt. I want to display only the ones beginning with letter A. How do I modify my below code …

Member Avatar for ShawnCplus
0
121
Member Avatar for j_limboo

Lately I have learnt many things from Daniweb specially on PHP and mysql. I am building a HR application where I was looking for visitor to leave a message and which should redirect to admin or who ever is responsible Any suggestions is greatly appreciated

Member Avatar for j_limboo
0
86
Member Avatar for shishtawitch

how can i fix use of undefined constant in php.ini so that [B]constant[/B] and [B]"constant"[/B] should not gives me any error

Member Avatar for Atli
0
155
Member Avatar for Facte

Hi there everyone. Does anyone have any idea how to stop my xml feed displaying # instead of £ and companys instead of company's. I've tried everything I can think of. In UTF-8 it won't show hardly anything in ASCII it works but still spits out the errors above. [CODE] …

Member Avatar for network18
0
97
Member Avatar for shishtawitch

guys i am trying to host a site on my own home server but when i make virtual host in httpd.conf like following NameVirtualHost *:80 [code=xml] <VirtualHost *:80> ServerName [url]www.mydomain.com[/url] DocumentRoot c:/wamp/www </VirtualHost>[/code] it gives me the following error [B]Forbidden[/B] You don't have permission to access / on this server. …

Member Avatar for network18
0
49
Member Avatar for PetrQ

Hello, I use html2ps/pdf - as upgrade of FPDF - for conversion html/php pages to pdf. It works great but I cannot solve the problem - how can I convert only part of the page without other CSS style. FPDF offers class CLIPPING. However official html2ps/pdf forum doesn´t work properly …

0
61
Member Avatar for DemonGal711

I've been working on this code to get data from a website and bring it back to my page so that I can use it. I've got that and I have another script to create an image from the line I got from the site so I'm good so far. …

Member Avatar for DemonGal711
0
86
Member Avatar for maheshks230

[B]Registeration[/B] hai plz validate the mandatory fields give me jqueryscript to that php code [CODE]<html> <head> <title>Registration</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.metadata.js"></script> <script type="text/javascript" src="js/jquery.validate.js"></script> <script type="text/javascript" src="js/validate.js"></script> <form action="Register.php" method="post" name="regForm" id="regForm" > <table width="778" border="0" align="center" cellpadding="0" cellspacing="1" > <tr> <td height="25" colspan="2"><span …

Member Avatar for network18
-2
174
Member Avatar for the_programmer

Hi; I'm sorry if this is a really newb level question. I have a register script and a login script. Both of my scripts work great seperatly until I include the login script with the register script. I know you aren't allowed to have two headers on one page and …

Member Avatar for network18
0
97
Member Avatar for mjenn2

A few years ago I wrote a mysql/php website, recently the host went bust and it has moved hosts but now quite a lot of the site gives errors - mostly the new server just gives me 500 - internal server errors. I've fixed a few of the problems that …

Member Avatar for network18
0
109
Member Avatar for aerliana

[code=sql]"SELECT tbl1.staff_ic, tbl1.staff_name, tbl2.dec_status,tbl4.location, tbl3.post,tbl3.grade FROM staff_detail tbl1 INNER JOIN staff_declare tbl2 ON tbl1.staff_ic = tbl2.staff_ic INNER JOIN staff_post tbl3 ON tbl1.staff_post = tbl3.num INNER JOIN staff_department tbl4 ON tbl1.staff_dep = tbl4.no ";[/code] isn`t my coding is right?? why when i execute my command just certain data are appear and …

Member Avatar for network18
0
60
Member Avatar for rich69

Hello ALL: New to the forum. I have run into a problem over the past 48 hours for which I can't seem to be able to resolve. I am running an Apache 2.0 Server, with PHP, and MySQL. All servers were working fine until 48 hours ago when all hell …

Member Avatar for omoabobade
-1
346
Member Avatar for O71v13r

Hi everyone, I have a problem with one of the problems (17) that i try to solve on the [URL="http://projecteuler.net"]Project Euler[/URL] site. The problem is as follows: If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + …

Member Avatar for somedude3488
1
196
Member Avatar for danang

Hi, are there anyone who can help me out, about making dynamic combo box in a form on drupal? scenario : there are two combo box. value on the second is depend from first combo box.... hm, it will be easier if u see my sample scripts on my attachment. …

0
46
Member Avatar for DemonGal711

Alright, I'm trying to get a script to visit a website and copy the contents. The problem is that I must fill out a form before I can get to the page I want, but that's not the issue really. The url basically does this. [url]www.mysite.com/page.php[/url] // form is submitted …

Member Avatar for DemonGal711
0
118
Member Avatar for CFROG

I'm trying to set up an app for users to put their individual photos into different albums, eg. friends, family, whatever. I would like one pic from that album to be displayed for each album along with the album name. I thought SELECT DISTINCT would do the trick for me …

Member Avatar for CFROG
0
87
Member Avatar for diafol

Hello all. This is not a php question, but I assume that you php aficionados will probably know more about this than most. I have a laptop that I use from home and work and have a different IP address when connecting from different locations. I am able to gain …

Member Avatar for diafol
0
93
Member Avatar for ultras1

I have administration part of my web site. But it will have only one user who will login in the page.My question what is more safely from attacks ? The user and password to be stored in mysql database or directly in .php file ?

Member Avatar for smartness
0
123
Member Avatar for shishtawitch

i am trying to host my own site............i have one static ip address...........and windows xp and wamp installed the site is working fine ............. but when ever i try to see the site it imediately starts to download original index.php file but when ever i try to access my site …

Member Avatar for shishtawitch
0
93
Member Avatar for bufospro

Hi, I use the code below so as to print a text: [CODE]$query_a = "SELECT * FROM table WHERE id=(SELECT MAX(id) FROM table)"; $result_a= mysql_query($query_a) or die(mysql_error()); $text_a = stripslashes(nl2br($row_a["text"])); echo "<div class='uneven post'>"; echo "<p align='justify'>".$text_a."</p>"; echo "</div>";[/CODE] In variable $text is stored text from a textarea (form). The …

Member Avatar for Atli
0
90
Member Avatar for chowdarysmk

Hai 2 all I have a small correction at password: now invalid charcters also taken in form plz modify prog if u enter ivalid charcters like~!@# tis type it show an error msg invali charcters display it one plz [B][B]HTML CODE[/B][/B] [code=php]<html> <head> <title>Registration</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" …

Member Avatar for Atli
-1
91

The End.