39,320 Topics
| |
Hi there, How can I ignore case sensitivity when people type in letters and get redirected through this script: <?php if($_GET['username'] == "BBY"){ header("Location: http://www.x.ca"); } elseif($_GET['username'] == "RS"){ header("Location: http://www.x2.ca"); } elseif($_GET['username'] == "WM"){ header("Location: http://www.x3"); } elseif($_GET['username'] == "RP"){ header("Location: http://www.x4.ca"); } elseif($_GET['username'] == "SM"){ header("Location: http://www.x5.ca"); } … | |
Hi. i was wondering if somebody could help me. Im looking for a php function to check a get and post methods for any type of hack or injection i.e. xss php java html mysql injection. the function needs to check the get or post methods prior to using it … | |
Hi there, I am totally new in javascript and i need a help because i dont know how to create script that confirm the user's choice and submit it to the parent page before the parent page make a process. like this. i have a page that shows the details … | |
hi all i'm wroking on a music website. and now i'm doing a sort of contact form, where people can send the name of a band, the description of the band and the image wich can be from the user's computer or from the internet (inserting th image url). Can … | |
Hi, I'm trying to link a thumbnail to the link I assign it to in wordpress when I first uploaded the image. I know it's originally set to the image itself but I would like to change this. At the moment the thumbnail doesn't link anywhere. The code I have … | |
Hi, I got a problem with class. I've created 3 classes: * identifiantsClass.php * connectInfosClass.php * sqlClass.php In my third class, i always have the message: "error to connect" even if my database's name is good. Please help me... * identifiantsClass.php class Identifiants{ protected $serveur=null; protected $host=null; protected $mdp=null; protected … | |
Hello! I have few problems. I hope you will understand me and can help me :) 1st - I have large input form, so if i press sumbit button then it makes large query thats slows down my page and database is overload, in form is somewhere about 180 colums. … | |
Hi guys, I'm doing a leave management system using PHP. in there a function called leave request,when the employee request a leave, system should be sent a notification to his/her reporting manager reminding he has to approve a leave request and also when the reporting manager accept/reject leave request it … | |
Hi there guys, not sure if anyone can help me here. I am creating a basic members site with small gallery and I wish to lockdown the URL somehow. e.g. http://domainname.com/memberFiles/8/gallery/gallery_config.php At the moment all of the other pages are locked down via a session id variable, but I need … | |
My code does not work in certain versions of IE and I want to include a conditional comment that includes a different navigation file so that links to pure html5 content wont be there. is there a way to remove the include of the menu.php and then i can just … | |
My original path in php code is redirect('abc.php?satisfaction=5&surname=trfhtrd&given_name=tryhtr'); It can show normally in url bar on firefox and chrome. I cam get all information But on IE url bar It shows abc.php?satisfaction=5®_surname=trfhtrd®_given_name=tryhtr So I cannot get information Why? What happen I facing? | |
I am trying to modifying a website made in html to php.All php pages are working fine individualyy but not loading in frames.PLz help..... | |
I have wrote this class in php from scratch there is no copy paste or anything like that I tried to create a base class for my projects and know I don't know if this is good Here is my code and I don't know how to use it I … | |
Hi all,.. Need help for my script, i want to make update form for my database so i make script as follows update.php <form id="form1" name="Update" method="post" action="add.php"> <table border="0" cellspacing="10"> <tr> <td>Asm Manual Id:</td> <td><input type="text" name="id"></td> </tr> <tr> <td>Asm Manual name:</td> <td><input type="text" name="sheetname"></td> </tr> <tr> <td>Image URL(Link):</td> … | |
Hi I have the following prepared statement for an UPDATE query: However I'm getting the following error message: Fatal error: Call to a member function bind_param() on a non-object in /home/dreamsin/public_html/DEV/edit_condo_review.php on line 467 All my columns are correct and match up and exist and I've used this prepared statement … | |
I make newsletter with my own developed newsletter sending system. Testing in gmail, yahoo, hotmail some images doesn`t display due of img src rewrite of gmail, yahoo or hotmail. It looks like that there are spaces inserted in img src address because viewing image source there are "+" (plus) sign. … | |
Dear friends, This is my table: CREATE TABLE IF NOT EXISTS `exam_student` ( `exam_roll_no` int(10) unsigned NOT NULL AUTO_INCREMENT, `enrol_id` int(10) unsigned NOT NULL, `exam_id` int(10) unsigned NOT NULL, PRIMARY KEY (`enrol_id`,`exam_id`), KEY `exam_roll_no` (`exam_roll_no`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; I am trying to get the field **exam_roll_no reset … | |
Hi all, i have 2 shared host server(www.nextsoftech.com(ip:64.202.123.78) and www.simpletelecomltd.co.uk (ip:208.91.198.107)). i want to access nextsoftech.com 's database from simpletelecomltd.co.uk 's script. that's means i stor all script simpletelecomltd.co.uk this server. Would any one help me how can configure and what is the connect code in php? thanks you sumain | |
I need some help. I'm loading a .php file using jquery. the php is a mysql query that pulls all the cities from Alaska. The problem is that I wrote my query a certain way and it seems jquery changes it when it loads it. state_alaska.php include 'config.php'; include 'opendb.php'; … | |
Hi guys sorry to bother you i just wanted to ask a quick question using dreamweaver along with PHP in dreamweaver i have managed to populate a list menu with data from a database. i wanted to know if it is posible to display text from another field within that … | |
How do I sort this loop? I can't sort it because I just began learning PHP, so I don't know as much as most of you users... Can anyone help me? <?php $red = array(); $x=0; $min=500; $max=2000; echo "<table border=\"1\">"; for($row=1;$row<=20; $row++){ echo "<tr>\n"; //Need table ONE to have … | |
Hi all, I'd like to know if it is possible to create a php script that would take the names of image files with its extension of say 10,000 images from out of a folder and place them into a database table in separate rows to use as sample data? … | |
Hi I have two Mysql tables, one with the information in and another with payment information in. I want to echo the results that have paid first and then the rest of the results. If information has no payment associated with it it does not appear in the payment table. … | |
In my web application I'm using the Lightbox v2 by Lokesh Dhakar. Now i want to refresh image in lightbox every second. Note: Lightbox is trigered by: `<a href="screenshot.jpg" rel="lightbox"><img src="images/Screenshot.png" alt="" /></a>`. | |
l have a php script writing to TCP socket. This connection needs to be always one as it can receive data anytime from the server. Now **problem** is only the first instance of socket_write works. i need to keep reading and writing data to the socket Just to clarify l … | |
I have two files, ApplicationRegister.php and UserRegister.php In ApplicationRegister.php the user fill the details and submit the form to database, it redirects to UserRegistration.php. In UserRegistration.php, User fills up the form and save the data to the lastest inserted id. I have used mysql_insert_id() to get the last inserted id, … | |
I am using Hindi Font and storing into database. While inserting I use mysql_real_escape_string() function; its working fine on local but not on server. **showing on server** Its adding extra slashes; but in local its showing correct INSERT INTO `tbl` (`num`, `address`, `name`, `father`, `state`, `city`, `gender`, `mobile`, `namdan_date`, `file`, … | |
I'm trying to develop an interactive website using php and i want to display image(retrived from mysql database) and some text on the home pag. but the image retrived from my database fills the whole page. how can i display both text and image on the same page? | |
Hi evrybody, i created fileuploader,user upload photos,the photos arranded in random size. i need display photos three random size first image automatically getin width:140,second:190,thrid:240. more than 10 images user uplaod. next image getin size 1; all the images display overlap. This is my fileuplaod code. public function executeUpload(sfWebRequest $request) { … | |
A way to measure internet speed through javascript is given here ... [Click Here](http://jsfiddle.net/yahavbr/tEFpC/2/) for it, it uses a big image to download and then divides the time taken by the size of the image ....! Is it possible to measure the speed using a video streaming website like Youtube … |
The End.