39,320 Topics
| |
is it possible in php to download uploaded excel sheet by taking only its filename from the database?? if so solve my pblm..thank u..:) | |
Hello everyone I am having this simple contact form and i want to make the name , email fields to be required.Also i want to add a thank you message after someone press the sumbit button. Your help will be much appreciated. Php <? if ($_POST['name'] == '' || $_POST['subj'] … | |
I have a simple login script that I want to test if the password is in temp status or not, if it is, then I want it to take them to changepass.php instead of index.php as seen below... but it doesnt take you to changepass.php it take you right to … | |
here is my function.when i click on the readp button,it will show undefined variable,but still can show out the string in txt file. <?php if(isset($_GET['readp'])){ readinfo($fname,$lname,$phone,$email,$mname,$gender,$city,$country,$fax,$exp); } ?> <?php function readinfo($fname,$lname,$phone,$email,$mname,$gender,$city,$country,$fax,$exp){ $info=file('log.txt'); for($i=count($info)-1;$i>=0;--$i){ echo cleanOutputData($info[$i])."<br>"; } } ?> | |
Hello, I am currently working on a project which involves sending email out automatically when certain conditions are met in a MySQL dB using a php script, I have managed to build the email part and works, my question is how do you prevent an email being sent out twice … | |
The following script will easily allow you to resize images using PHP and the GD library. If you’re looking to resize uploaded images or easily generate thumbnails give it a try Usage Save the code from the ‘the code’ section below as SimpleImage.php and take a look at the following … | |
There is a big problem , when I go into my website with the url www.xxx.com the cookies go into the www.xxx.com and when I go with xxx.com the cookies place is xxx.com meaning that its diffrent from the first one , how can i set and get the cookies … | |
Hi, I am building a website and decided to try and add clean URL's using mod_rewrite. This is my first time using mod_rewrite so i decided to follow a guide which resulted in URL's such as [url]www.example.com/gallery/12[/url]. This URL would then be rewritten to index.php/gallery/12. The problem I am having … | |
Hi, when I try to use a SELECT statement in php, I get an error: > Resource id #18 <?php include("include/session.php"); $get = mysql_query("SELECT value FROM settings WHERE id=2"); echo $get; ?> The file session.php contains the database credentials .etc and it's correct. But then when I try to echo … | |
I was being really lazy and didn't want to write one up myself, couldn't find one, and ended writing one up myself anyways. Hope this helps other lazy people. | |
Some help would be great here. The following snippets work, but I am unable to figure out how to activate the error message "You did not select a name for editing". Both of the other error codes work but if I input 'given' and 'family' and forget to select the … | |
Hi There, I am quite new to simpleXML and I would like to know how I can access child nodes by index singe I do not have the node name The XML would look like this: <?xml version="1.0" encoding="UTF-8"?> <Root> <SubRoot> <Content ItemType="ItemType1"> <ItemDetails> <ItemDetail> <City Code="CPT"><![CDATA[Cape Town]]> </City> <Item … | |
Why would my html file need to be downloaded in order for it to work properly? | |
Could you please tell me why this code does not put the data in a row ? --------------- foreach ($_POST as $key => $value){ $sql = "INSERT INTO ir3 ($key) "; $sql .= "VALUES ('$value')"; if (!mysql_query($sql)) { die('Insert Row Failed!' . mysql_error()); } $sql=""; } } Thanks for any … | |
HY! i have an issue in php session. the issue is that the session work fine in index page but the username can't show in other pages. lohin.php code <?php session_start(); include './header.php'; include 'connection.php'; if(isset($_POST) && count($_POST)>0) { $user = $_POST['username']; $pass = $_POST['password']; $sSQL = "SELECT * FROM … | |
Hello, I am developing a site where I have once class file that deals with a few database tables. My question is: Is it better to have one big file (the class) and then require only this file or have a class for each table and then have more require … | |
Please help me in creating a multiple file upload and then process it in ajax so that it can view into the page before the form is submitted this is my form <form name="create_memo" method="post" ENCTYPE="multipart/form-data"> <input id = "memofile" type="file" name="img[]" onchange="uploader();" multiple /> <input type="submit"> </form> <div id="memoupload"> … | |
I'm trying a simple query to get students that signed up for each possible matching class, and I'm getting a weird result with this,when I print out. If they've signed up a student in one class, and a student in another class, I get the two students printing out fine. … | |
Hello Sir, I have a question that when i feed numerice 10 digit mobile no in the form then it does not feed same as i feed. i took phone no type int(10)and also took different differnt value but in mysql database the value is changing when i feed 10 … | |
| How would I make premium memberships for PingrGlobe with PHP and PayPal? |
Learning the best way to securely upload files to a server Can someone tell me the best way to ensure that only image is uploaded using finfo() thereby preventing hackers from uploading a malicious files.Assuming I don't want to upload files outside the roots. 1: I check if file exist … | |
I am trying to write .htaccess; but two statements are conflicting each other.. If one runs another not; vice-versa; The last statements are conflicting each other.. #Fix Rewrite Options -Multiviews RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-f #RewriteRule ^(.*)/$ hotels-in-india-list.php?url=$1 RewriteRule ^top-destination/(.*)$ package-detail.php?g=g&url=$1 RewriteRule ^hotels-list/(.*)$ hotel-city.php?g=g&url=$1 RewriteRule ^hotel-detail/(.*)$ hotel-detail.php?g=g&url=$1 RewriteRule ^(.*)/(.*)/$ hotels-in-india-list.php?id=$1&url=$2 … | |
I am developing an application in CodeIgniter with Doctrine for ORM. In my doctrine model, I have classes which are inhereted something like this One abstract SuperClass ( let's call it Super ) and two base classes BaseA and BaseB. @InheritanceType("JOINED") @DiscriminatorColumn(name="type", type="string") @DiscriminatorMap( {"a" = "DerivedA", "b" = "DeriveddB"} … | |
Hi, The home page of the website I'm creating displays an excerpt on multiple pages and below I need to display the text of the home page. The problem I'm having is when I call the title and the text, it's displaying the title and the text of the last … | |
what could be the best way to disable symlink attack 1: i use**disable_functions= symlink,ln** at php.ini 2: at .htaccess i disable it as follow with minus sign(-) Options -FollowSymLinks Options -SymLinksIfOwnerMatch is my workings okay. or they are other work round thank you | |
Hi, I have problems with INSERTing VALUES in new table, with ALTER i made columns but then when I am inserting values for example one column from one table with 4 rows and second column from other table with also 4 rows, in my new table i get 16 rows … | |
Hi I have an XML file that is storing numerous books and their details, I then have a PHP page that is to search the XML list by Author. This I can do but I was wondering how I can style the page for when the search button has been … | |
this is my sendmsg coding page. Am i right? its not working. First i got fatal error: call undefined function curl_init(). i cleared that error. now it takes time to load 10 to 15 seconds and show error in that page. coding is below... $name = $_POST['name']; $connum = $_POST['connum']; … | |
hi all, how to check same values array if it values is the high values in array associative and get it values? example 1: Array ( [value 1] => 0.8434 [value 4] => 0.8434 [value 6] => 0.8434 [value 3] => 0.3434 [value 2] => 0.3434 [value 7] => 0.2114 … | |
Hi, i have been search for an answer for this for a few hours now and i finally got frustrated... soooo... how do you create a redirect link that redirects users back to last page they were on? Lets say they are on page A and they visit my site, … |
The End.