39,402 Topics

Member Avatar for
Member Avatar for xceed

Hi guys look at this. [b][url]http://1.fabriconengineers.com/index.php[/url][/b] Look at the menu [url=http://img517.imageshack.us/my.php?image=beforenv8.jpg][img]http://img517.imageshack.us/img517/8615/beforenv8.th.jpg[/img][/url] [url=http://img248.imageshack.us/my.php?image=afterur5.jpg][img]http://img248.imageshack.us/img248/460/afterur5.th.jpg[/img][/url] after i add image in the menu it says = Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/fabricon/public_html/1/menu.php on line 97 How can i solve this??? Please help. Script Download Link. [code]http://rapidshare.com/files/90603607/yourownbux_base.zip.html[/code]

Member Avatar for fenixZ
0
1K
Member Avatar for daplayer321

Can someone please alter the following code to include pagination, iv been doing this for 2 days but cant get it right. <?php session_start(); if (isset($_SESSION['username']) == false){ header("Location:login.php"); exit(); } require "connect.php"; $sortby = $_GET['var']; $query = "select * from form ORDER by $sortby"; $result = mysql_query($query, $connection) or …

Member Avatar for Yproc
0
116
Member Avatar for dami06

Hi, I'm trying to create a separate usernames with the same login page using php and MySQL. I have tried adding different things to my login code for it to work but no progress. Basically i want to create something like this: A staff would be able to have a …

Member Avatar for fenixZ
0
176
Member Avatar for lifeworks

Hi I am trying to upload an entire directory to a server, using a script i found on the net... as a noob to php I've come unstuck on what I suspect is a basic bit of code... I need to specify a directory on my local pc as the …

Member Avatar for nav33n
0
59
Member Avatar for rickarro

I'm very new to php and am looking for help getting data out of my MYSQL database. I've made all my proper connections and all is running fine so far. What i want to do is have people get a result from the database based on their input...i.e., put in …

Member Avatar for nav33n
0
146
Member Avatar for jino

Dear All,, I need ur help regarding the below matter.... I had a form having 40 fields comming from 4 tables... I want to let the user to search a record using any of these 40 fields... For that i joined these tables using the "join" statement... Now the problem …

Member Avatar for nav33n
0
142
Member Avatar for tirivamwe

i have a website and it have a flash banner. the problem is that every time i open a link the banner will have to reload again. is there any way that i can use on my links so that when the link is clicked it will include a page …

Member Avatar for carobee
0
143
Member Avatar for lordx78

I have 2 some pages in the website I'm developing. I've also an admin page. If i want to log in to the admin page, I've to key in username and password and it will be validated and redirect me to the admin's page. The problem is, if I manually …

Member Avatar for johnsquibb
0
126
Member Avatar for Morty222

I am building a search tool to allow users to search players by the following criteria: Last Name: Sport: Graduation Year: City: State: Gender: Here is my query after the post. $ln = $_POST['lastname']; $ps = $_POST['primarysport']; $yg = $_POST['yeargraduate']; $cy = $_POST['city']; $st = $_POST['state']; $gn = $_POST['gender']; include('admin/mysql.php'); …

Member Avatar for jonesc5
0
68
Member Avatar for alieya

hai... i have develop a website using templet (from free provider) but i have a problem when run it at localhost (i'm using php & mysql-xampp package) i edited that templet at dreamweaver, i have no problem when view it at dreamweaver but when i run that website at the …

Member Avatar for alieya
0
146
Member Avatar for assgar

Hi I am trying to increment the date using weekly increments. I need to determine the start and end dates and the week number of the year. If you can suggest another approache that is OK, but this is what I came up with. I am having problems getting the …

Member Avatar for assgar
0
2K
Member Avatar for xeeb

is it possible to retrieve live data (maybe an xml file) from a website to use on your own website? ,lacking in knowledge of new technology

Member Avatar for Walkere
0
143
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
306
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
93
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
45
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
147
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
100
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
90
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
231
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
67
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
119
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
59
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
69
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
150
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
106
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
286
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
88
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
115
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
83
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
59
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
104
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
75
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
155
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
71
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
79
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
131
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
63
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
189
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
82
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
123
Member Avatar for carobee

hi, i am runnning a php script where i try to decompress a file and the untar it. the file in suppose x.tar.gz. so in my php script i call system command system("gunzip /home/trial/x.tar.gz"); now to untar i use system("tar xvf /home/trial/x.tar"); now the error creeps in. i am able …

Member Avatar for DimaYasny
0
48K
Member Avatar for pancgom

Hi Guys, This is probably the most silliest of questions, i am still learning php and mysql :-| . I have this code below which brings up data from the database and displays it, what i want to do is to give the table headers a bgcolor how do i …

Member Avatar for ryan_vietnow
0
136
Member Avatar for cancer10

Hi, I am new to PHP oop. I was wondering when and why should we use the following: 1) Public 2) Protected 3) Private 4) are there any other??? An example would be appreciated. Thanx

Member Avatar for Walkere
0
116
Member Avatar for chitra1
Member Avatar for dami06

Hi, I'm trying to create a little web page but when i try to log in using the username and password i put in MySQL database it doesn't do anything at all.which is when i click login it just goes blank. I don't know why this is. Could you please …

Member Avatar for dami06
0
154
Member Avatar for Venom Rush

Hi there. I'm looking to create a site in the near future that will have a login system. What I'd like to know is: 1.) What different types of attacks are there against websites besides brute force attacks (been reading this thread on brute force attacks: [url]http://www.daniweb.com/forums/thread82966.html&highlight=login+security[/url]) 2.) Are there …

Member Avatar for Venom Rush
0
127
Member Avatar for vbjenny

I searched thru all the PHP threads I could find relating to PHP & Forms and didn't quite find anything like what I asking. I am new to PHP and was wondering if someone could let me know why I am getting error HTTP 404 (Not Found) <!DOCTYPE HTML PUBLIC …

Member Avatar for nav33n
0
191
Member Avatar for creativehacker

Hi I want to create a login screen which asks for username and passwor with change passsword facility. My idea is to store username and password in a php file and update them. Can anyone please tell me how to update a php file from another php file.. Thanx in …

Member Avatar for Walkere
0
107

The End.