39,320 Topics

Member Avatar for
Member Avatar for subham1982

Hi guys, I am a PHP prgrammer. This is my first Therd in this site. I want a seaching code like google's search. ex. if i type hotel then it display all the hotels. but if i type" hotel in USA " then it display all the hotels which is …

Member Avatar for ithelp
0
38
Member Avatar for joker40

Hi , i am working on vb forums and every thing was fine , but when i put the .htaccess file this errors comes : [B][COLOR="Red"]The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email address removed] and inform …

Member Avatar for joker40
0
179
Member Avatar for dele454

I have a question to ask, please see attached images: [URL="http://www.killerinstinct.co.za/stats.gif"]stats1[/URL] [URL="http://www.killerinstinct.co.za/stats2.gif"]stats2[/URL] In the CMS, I have a stats page as seen (IMAGE 1), it captures all the necessary stats regarding the website and its entities. This stats page should be generated every month on the fly. Since all these …

Member Avatar for dele454
0
74
Member Avatar for gptArun

Hello, I'm using below PDO connection class but didn't shows any result , [B]Pls reply if u found any bugs[/B]..- [code=PHP]//name connect.class.php class Connection { private $connection; private $username; private $password; private $dsn; /** * To connect to another database, change the "mysql" in the dsn attribute to * the …

Member Avatar for darkagn
0
203
Member Avatar for yara1

hi every one i find this code and i read this descreption about it : code to call function after u click on it [CODE]<a href="<?php $_SERVER['PHP_SELF']?>?type=del"> <img src="del.png"/> </a>[/CODE] my qidtion : can i know any information about image when i call function using this code i mean can …

Member Avatar for nav33n
0
72
Member Avatar for haii

I want an email application using php. The code is like this. [code=PHP]<?php $to = "example@mail.com"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: [email]abc@rediff.com[/email]" . "\r\n" . "CC: [email]abc@rediff.com[/email]"; mail($to,$subject,$txt,$headers); ?>[/code] but an error has occured Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" …

Member Avatar for haii
0
77
Member Avatar for iiskandar

Hi, i am a new in this forum can yo help me, how to save string data like 10,000,000.00 tobe 10000000 with php or javascript i use mySql database thank's, if can help me

Member Avatar for buddylee17
0
45
Member Avatar for rgviza

In reading and posting on this forum, I see a lot of code here that doesn't consider sql injection. SQL injection is an attack where the attacker terminates or modifies an sql query with input data. Here are some samples: [url]http://en.wikipedia.org/wiki/SQL_injection[/url] [url]http://www.unixwiz.net/techtips/sql-injection.html[/url] [url]http://www.securiteam.com/securityreviews/5DP0N1P76E.html[/url] In Michael Howard's blog, he wrote up …

Member Avatar for NicoMS
1
89
Member Avatar for queenc

hi i want to hide my URL ..i.e when the user uses my application i dont want to show my url but i want to store another url please do tell how to do tat

Member Avatar for sDJh
0
136
Member Avatar for conandor

anyone know how can i convert bmp to jpg using php? ve play wif gf function but seem got work out

Member Avatar for helraizer
0
864
Member Avatar for conandor

i have a (process) php code which run background which listening to incoming. and i wanna have another (admin) php code for admin use which i can start and stop the 1st (process) php code. starting the (process) php code is easy with exec(/usr/php5/bin/php my_process_code.php); but how can i stop/kill …

Member Avatar for helraizer
0
129
Member Avatar for servis

The following login script is not working, i am unable to trace the problem, please anybody help me... [ICODE] <?php include ("template/login.tpl.htm"); session_start(); if (isset($_POST['userid']) && isset($_POST['userpassword'])) { include 'library/config.php'; include 'library/opendb.php'; $userId = $_POST['userid']; $password = $_POST['userpassword']; // check if the user id and password combination exist in database …

Member Avatar for nav33n
0
131
Member Avatar for kevin wood

is this possible to do? [CODE]if ($sent_mail <= 200 ($limit)) { // construct mailing list array $merc_list = explode(",",$merc_mailingList); // deploy the emails for($i=0; $i<count($merc_list); $i++){ // email body inside here } // END for $sent_mail = $sent_mail + $i; } // END if condition else{ include("limit.php"); } [/CODE]

Member Avatar for kevin wood
0
638
Member Avatar for chitra1

Hi, I am uploading images in a form. But it only sends the images in a folder 'upload' and send only the file name to the database. How do I send the image to the database and retrieve it for display.

Member Avatar for iFuseDan
0
148
Member Avatar for ryy705

Hello, I noticed that on some forms the password is not echoed after the user submits the form and the page reloads(this could because of errors or any other reasons). Why is this? Is there a valid security reason? Or is it just overkill? Thanks in advance.

Member Avatar for ryy705
0
71
Member Avatar for djMot

I cannot get my locally installed Apache 2.2 to execute a .php if simply passed the folder. For instance, if I tell my browser, "http://localhost/dev/wordpress/wp-admin/" it simply gives me a directory listing of the folder. There is an index.php file there, and if I click it, it executes normally. Or, …

Member Avatar for djMot
0
146
Member Avatar for bigpig

I can echo the variables from my require_once file outside of a function, but inside a function they are empty (i.e. it's as if they were never parsed by require_once at all). Even adding a seperate require_once in the function will still echo empty variables.

Member Avatar for bigpig
0
136
Member Avatar for yara1

hi i design websit to view images i want when admin click on the image image will be deleted how i do that ?? this my code [code] <head> <script type="text/javascript" > function vvvv($id,$im) { [COLOR="Red"]if(confirm("are you sure want delet this imagej?")); $b=true if($b) { <?php mysql_connect ('localhost', 'root'); mysql_select_db("pickapic"); …

Member Avatar for yara1
0
86
Member Avatar for ryy705

Hello, Is it okay to save credit card data in the database. I know it will be password protected but still, it will be a disaster if someone ever hacks in. How do real world companies(mine is school project) save their customer's credit card information? Thank you in advance.

Member Avatar for djnzak
0
478
Member Avatar for shadiadiph

Hi I have a fetch all row data from my prices table so it displays all the records on one page using php. I want to insert all the row data into a new table but in one row. for example in my 1st table I have PriceID ProductCode Productame …

Member Avatar for shadiadiph
0
114
Member Avatar for chitra1

hi, I creating an application whereby I am generating a password and then mailing it to the user. I have been trying the mailto function but the mail is not sent to the recipient. Here's my code: [CODE] $to="chitra@yahoo.com"; $subject = "New Password"; $email = $_REQUEST['mail'] ; $message = "Your …

Member Avatar for Kavitha Butchi
0
162
Member Avatar for cro_php

Thank you for taking some time to understand this problem. Let me set it up by defining the arrays involved and then the code I am trying to pull off. I have this array >> $query_array = array('keywords'=>5, 'title'=>4, 'summary'=>3, 'content'=>2); I also have an array for each of the …

Member Avatar for cro_php
0
115
Member Avatar for yara1

hii again sorry i ask much but i need help and i learn this my error massage:: Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\admin\logink.php:9) in C:\xampp\htdocs\admin\logink.php on line 24 <html> <head> <?php extract($_POST); if (isset($_POST['userName']) && isset($_POST['password'])) { $userId = $_POST['userName']; $password = …

Member Avatar for Ole Raptor
0
93
Member Avatar for assgar

Hi I was using PHP sessions to create a sticky form but a button was needed to reload the page. I am new to Java and I have decided to do away with the button. Using onChange="javascript:OnChange(this) to cause the page to reload once a selection is made from a …

Member Avatar for assgar
0
135
Member Avatar for napper_1337

Hi, my name is Florian Larsson. I changed one thing in my index.PHP and that was the "logga in" sign to "log on" (logga in = Log on. in swedish) anyway check out for yourselves what it resulted in [url]www.concode-gaming.com[/url] I don't know how to fix it or anything and …

Member Avatar for shadiadiph
0
63
Member Avatar for muthu raj

[B]error follows:[/B] [code]The email was sent. Warning: fopen(C://Program Files/xampp/htdocs/samplemuthu) [function.fopen]: failed to open stream: Permission denied in C:\Program Files\xampp\htdocs\samplemuthu\mail2.php on line 58 Warning: fread(): supplied argument is not a valid stream resource in C:\Program Files\xampp\htdocs\samplemuthu\mail2.php on line 59 Warning: fclose(): supplied argument is not a valid stream resource in C:\Program …

Member Avatar for muhammadfj
0
210
Member Avatar for assgar

Hi I would like to put a list of ids in an array and loop to select data from a table using "IN" in the where clause. I am not having any success getting this to work. Any suggestions? Note:I am using Mysql database, apache, linux/Windows <? //array with list …

Member Avatar for assgar
0
118
Member Avatar for ajayajayajay

hi, I want to reset an MD5 encrypted password. I have changed the hash string by another one in the table but am nt able to access thru the new password as well. i have access to the database as well as all the files, can somebody guide as to …

Member Avatar for darkagn
0
62
Member Avatar for Kavitha Butchi

Hello All, Is there a way how we can pass a PHP variable whose value has been retrieved from MySQL database to the next page? Initially I tried this which didnt help me anyway. [code=PHP] // if user login information is CORRECT then redirecting them to the user home page …

Member Avatar for Kavitha Butchi
0
220
Member Avatar for conandor

how to turn transparent png image to white background jpg? everytime i create a jpg from png seem the background is black 1. [CODE]$thumbnail = @imagecreatetruecolor ($size, size); imagealphablending($thumbnail, true); imagesavealpha($thumbnail, true); $trans_color = imagecolorallocatealpha($thumbnail, 0, 0, 0, 127); $red = imagecolorallocate($thumbnail, 255, 0, 0); imagefill($thumbnail, 0, 0, $trans_color); imagejpeg($thumbnail, …

Member Avatar for conandor
0
67

The End.