39,320 Topics

Member Avatar for
Member Avatar for myth3_16

Hi All, i'm new to this board. I'm having a spot of bother with the following: Here is what i'm trying to do. From the drop down list (generated from my database) a style is selected and the image is displayed in the preview box next to it. The problem …

Member Avatar for nav33n
0
294
Member Avatar for anthmaina

i'm getting a search parameter via $_GET and filtering the input data to prevent cross site scripting using the below code: $search = array ("'<script[^>]*?>.*?</script>'si", // Strip out javascript "'<[/!]*?[^<>]*?>'si", "'>'[^>]*?>.*?</script>'si", "'%0'[^>]*?>.*?</script>'si", // Strip out HTML tags "'@'[^>]*?>.*?</script>'si", "'>'[^>]*?>.*?</script>'si", "'([rn])[s]+'", // Strip out white space "'&(quot|#34);'i", // Replace HTML entities …

Member Avatar for web_lock
0
90
Member Avatar for 2mk

I create web services with php, but i need to access it using Ajax. Anyone can help me ? This my simple web services : [ICODE]<?php include('nusoap.php'); $server= new soap_server; $server->register('LoginPresenter'); //Login Presenter function LoginPresenter($user_mail, $user_password) { if(!$user_mail or !$user_password) { return new soap_fault( 'Client', '', 'Parameter anda tidak lengkap', …

0
43
Member Avatar for pukkalol

can some 1 explain to me why this takes over 24+ or even 1 week to send an email to the user with his password to be able to log onto my site. the coding is below. i need the email to be nearly instant! <?php session_start(); include_once"includes/db_connect.php"; if (isset($_SESSION['username'])){ …

Member Avatar for nav33n
0
144
Member Avatar for halifaxer

Hi all, Not even sure if this does belong in this section, but please redirect me if it doesn't. For those of us that have affiliate sites, most affiliates provide us with data feeds or specific data feed url with whcih we can link and extract information for our websites. …

Member Avatar for Walkere
0
98
Member Avatar for mark2326l

Data from MySql. I used nl2br() for line breaks, but wanted paragraph breaks. I wrote [CODE]function test($text) { $text = ereg_replace("\n", "<p> ", $text ); return $text ; } [/CODE] That worked but my editor wants indents not spaces between paragraphs. I thought [CODE]function test($text) { $text = ereg_replace("\n", "<br …

Member Avatar for mark2326l
0
86
Member Avatar for lordx78

[code=php] if(!$_POST['username'] || ['password']) { die('Error: Username / Password field was blank'); } [/code] What is the mistake in the code above. I want the syntax to check if either one of the fields are blank.

Member Avatar for nav33n
0
228
Member Avatar for halifaxer

I have recieved help over las couple of days with some regex coding. As I'm sure you're aware, with every breakthrough comes another question and I'm stuck on the following [code] $url = 'http://www.islandcosmetics.com/p/Vera-Wang-for-Men-Eau-De-Toilette-Spray-50ml.html'; $html = file_get_contents($url); preg_match('/<div class=\"padding9px\"><p?>(.+?)(\d+\.\d+)?<br \/><strong><span class=\"orange\">(.*)<\/span><\/strong><\/p><\/div>/', $html, $match); $out = $match[2];[/code] This first one is …

Member Avatar for nav33n
0
64
Member Avatar for jino

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\PHP5\www\registration-reports-result_testnet.php on line 137

Member Avatar for nav33n
0
116
Member Avatar for timhysniu

Hi there, Can someone recommend a PHP&MySql open source project management software that supports time tracking. It would be nice to be very simple and easy to use. Focus is only one project, so simplicity would be very nice. I looked at demos for dotproject and phpproject and they seem …

Member Avatar for JonathanD
0
57
Member Avatar for TaoistTotty

This is the first time I have looked at a PHP scripting (although I have done some ASP.NET) and I am looking for help with the following. Can PHP be used to update a HTML page - and if so how or where should I look? This is for a …

Member Avatar for nav33n
0
1K
Member Avatar for AbdullahKhatri

I was sticked in showing images from mysql, and another thing, if the user gives a single image , can we give a thumbnail on its own plz reply soon

Member Avatar for Nick Evan
0
67
Member Avatar for Venom Rush

Hi there I'm having a bit of a problem. As the title suggests, I'm creating $_SESSION's such as [code=php]$_SESSION[''.$row[0].''][/code] dynamically which is working perfectly, but the problem is I don't know how to call that same variable on a template page that I click through to. At the moment I …

Member Avatar for Venom Rush
0
148
Member Avatar for wizardofdigi

Hello. I have a website that is working except for one thing. The pages load fine but when a user clicks on any option, that should immediately stop what is happening on that page & take user to new the page they have selected. Right now it happens very slowly, …

Member Avatar for DangerDev
0
103
Member Avatar for ryan_vietnow

Hi guys, is there anyway to unset $_SERVER['PHP_AUTH_USER'] than to close the browser? I have tried [code=php] unset ($_SERVER['PHP_AUTH_USER'] ); [/code] or even [code=php] unset ($_SERVER); [/code] it unset but after you have refreshed it the $_SERVER['PHP_AUTH_USER'] comes back again. Hope to hear from you guys.Thanks

Member Avatar for johnsquibb
0
2K
Member Avatar for lordx78

[code=php] <?php // connection to MySQL server mysql_connect('localhost','root','root'); mysql_select_db('administration'); // *** Validate request to login to this site. //session_start(); $loginFormAction = $_SERVER['PHP_SELF']; if (isset($accesscheck)) { $GLOBALS['PrevUrl'] = $accesscheck; session_register('PrevUrl'); } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; //$MM_fldUserAuthorization = "level_usr"; $MM_redirectLoginSuccess = "validated.php"; $MM_redirectLoginFailed = "index.html"; $MM_redirecttoReferrer = true; //mysql_select_db($database_connBlog, $connBlog); mysql_select_db($database, …

Member Avatar for nav33n
0
282
Member Avatar for mbhimji

Hi, Hope someone can help. I have a form with several fields in it. One of the fields is a textarea. The user can enter data in this field, including carriage returns etc., Once the user clicks on SUBMIT I write the form contents to a text file. When I …

Member Avatar for nav33n
0
85
Member Avatar for jino

I am new in PHP. I have a form having fields from 3 different tables.. I want to search these 3 tables simultaniously for reporting the information... 1st table personal details. 2nd table services offered. 3rd table payment details. I want to search each and every fields in these tables …

Member Avatar for jino
0
110
Member Avatar for ryy705

Hello, I just used the crypt command on 'password' and 'password1' and got identical output!! What are the rules concerning the crypt function? Am I not allowed to use numbers? EXACTLY what am I allowed to use? Many thanks in advance.

Member Avatar for ryy705
0
78
Member Avatar for Reena Balu

Hi, I am new to PHP. I have a login and logout pages are in php. i have to pass the user id or the session to my jsp page. The id should not pass in the url for security purpose and also the browser back button should not work …

Member Avatar for jwenting
0
56
Member Avatar for halifaxer

I think I did post this some time ago, but can't find original thread to rehash. I have some questions regarding lifting data from a particular webpage. What makes this unusual and why I need to ask some questions is that within the tags, there is a lot of white …

Member Avatar for nav33n
0
99
Member Avatar for frenchi1966

Hi, have a look at my [URL="http://www.n33dlink.com"]directory[/URL] - on the rightside i have the Links by Pagerank. Icons should be kept on left side but numbers should be right aligned. How to do it - have checked several times but did not suceed. Would you require the script to verify? …

Member Avatar for nav33n
0
71
Member Avatar for culp

My ISP (Heart Internet) has told me on Monday that one of my pages is running a permanent server process. I have no idea what one of these is or how I have manage to start one running and their support dept is being [B][U]very [/U][/B]unhelpful. It appears my code …

Member Avatar for culp
0
150
Member Avatar for rajeevkshr

Hi all, How Can i Download a Upload Word Document in PHP.Anybody Can help me For me Doing This.

Member Avatar for nav33n
0
68
Member Avatar for rahimah

i have this problem of mine, where i don't know the script if we want to retrieve the value of option value in turn to search data. i only the script to retrieve value from input type(text). please help me on this. i only know this. this script is to …

Member Avatar for nav33n
0
74
Member Avatar for aparnesh

I have to develop a web-based application which will be deployed in a intranet. One of the requirements is formatted MIS reports, which can be generated and printed from the client. While I can use 3rd party tools like Crystal Reports if I use ASP, is there any such Reporting …

Member Avatar for vnimol
0
126
Member Avatar for danish315

when i use this code <? $cr=new com("Crystal.CRPE.Application") or die("cannot load cr com"); $rn="D:\xampp\mohan\rep\Report1.rpt"; $rap=$cr->OpenReport($rn); ?> iget this error Uncaught exception 'com_exception' with message '<b>Source:</b> cpeaut32<br/><b>Description:</b> Unable to load report.' in D:\xampp\htdocs\mohan\rep\try5.php:4 Stack trace: #0 D:\xampp\htdocs\mohan\rep\try5.php(4): com->OpenReport('D:?mpp\mohan?ep...') #1 {main} thrown in D:\xampp\htdocs\mohan\rep\try5.php on line 4 can any body solve my …

Member Avatar for vnimol
0
61
Member Avatar for dami06

Hi, Could anyone please tell me how to go about linking some folders which are already in php to the login page. For example once you have logged in successfully, the next thing you want to see is the admin homepage. How do you link the login page to the …

Member Avatar for dami06
0
188
Member Avatar for kv79

Hi i sow on WC3 school [url]http://www.w3schools.com/html/html_formatting.asp[/url] and i am confused about text , there is a lot of text format like , small , strong,computer code text, keyboard text,sample text. And i am confused about text, i see the difference but i do not know why is called computer, …

Member Avatar for nav33n
0
80
Member Avatar for drsmith

I am attempting to use a function to check for a valid email address before being read in. I am attempting to use a function as well and this is something I don't have a lot of experience in. Does the following code look correct? In addition to the test.csv …

Member Avatar for drsmith
0
120

The End.