39,323 Topics
| |
Hello, mysq_query($query) returns a valid result set. However, [CODE] function query($query) { return mysql_query($query); } [/CODE] returns a 1. Why does this happen? Is there a way around it? Thanks in advance. | |
Hi everyone I have a website, running for years without any problem, and all of a sudden, today, it does not display any pages. All is blank! The website in question is a Xoops installation. I accessed my directory and files via cpanel, and first went to see if I … | |
Hi Friends, I want build a website in hindi. so please help | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 | |
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 … | |
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 | |
| anyone know how can i convert bmp to jpg using php? ve play wif gf function but seem got work out |
| 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 … |
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 … | |
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] | |
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. | |
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. | |
| 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, … |
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. | |
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"); … | |
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. | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
[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 … | |
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 … |
The End.