39,393 Topics
![]() | |
I'm working on a College Application project. I want to ask on how to download the files that previously uploaded by user. Here's the clear view : 1. User will upload the files. 2. Controller will handle the request and save the name of the files into database. 3. ?? … ![]() | |
Hi, I am trying to create a simple form submission using php and mysql. I am stuck at very basic level of mysql and php code. Here is what i am trying to do. 1. index page where name and email data is shown. 2. add-data.php page where i am … | |
If I have dropdownlist as below <select onChange="this.value;"> <option value="Volvo" id="volvo">Volvo</option> <option value="Saab" id="saab">Saab</option> <option value="VW" id="vw">VW</option> <option id="audi" value="Audi" selected>Audi</option> </select> I want to display discription of item selectd so I have below code <div id="boxpopup" class="box"> <a onClick="closeOffersDialog('boxpopup');" class="boxclose"></a> <div id="content"> This is popupbox of Audi </div><!--end of … | |
If I have a array: $myarray = array("10"=>"apple", "20"=>"banana", etc..) up to 15 values. and I use $_GET['category'] to get my value from url for instance "10" How do I echo $myarray to be "apple"? | |
Hi: i have contact form that i thought the validation (.js + php) worked fine because i received emails that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then found out that empty fields were being submitted to database -- but not email.. … | |
My url's are similar like this: website/search/category,Room/region,Oregon/ website/search/category,Room/ website/search/category,Room/city,Palm Bay/ website/search/city,Palm Bay/ website/search/region,Florida/ It always contains single or combination of CATEGORY CITY REGION I want to echo in an if statement, for example: if url contains "category,xxx" then echo "category is xxx". (xxx can be anything) I found this code: … ![]() | |
how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to … ![]() | |
My forgot password is not updating the token table nor is it updating the password when changes it keeps echoing the error message below is the form code: Forgot Password</strong></h3> <form name="forgot" method="POST" id="forgot" action="includes/reset.php"> <div align="center"> <table width="372" border="0"> <tr> <td width="181"><p> </p> <p><strong>Password</strong></p></td> <td width="181"><span id="sprytextfield1"><br /> <label for="label"></label> … | |
I have a question about php mail() function. This function allows multiple recipients that separated by comma, for example: $mailto="a@test.com,b@test.com,c@test.com"; mail($mailto,$subject,$message,$headers); If all recipients address are correct, no problem, mail can be sent properly. However if one address is no longer valid (for instance he leave company), this mail function … | |
hey guys, I've been working on that moodle database link and I have it somewhat working! I have it logging in and echoing the username. This is the login section: $query = "SELECT * FROM moodle_user WHERE username = '{$_POST['username']}' AND password = '$password'"; $result = mysqli_query($con,$query) or die(mysqli_error($con)); //setup … | |
Hi All I am trying to format the sql ouput reg_date into a date format current details echoed out 2013 - 03 - 08 12:12:11 I just require the date only echo stripslashes($row['reg_date']) $result = $mysqli->query($query) or die ($mysqli->error.__LINE__); if($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo stripslashes($row['reg_date']) . … | |
Hi all, I have been getting ImagickException with imagick on my server but cannot reproduce it on my computer(localhost). This is when I try to call thumbnailImage(with, height, true) for a JPG exception 'ImagickException' with message 'Memory allocation failed `/tmp/funYYmdPl[0]' @ cache.c/AcquireCacheNexusPixels/416' This is when I call writeImages(path, true) for … ![]() | |
Hi, I am working on an hotel booking system for a small hotel.I finally found a nice tutorial on HTML.it.It is in Italian but that's not a problem for me as Italian is my mother tongue.The site consists of the usual tables like clients, reservations, etc.I ran all the scripts … ![]() | |
when include file to dreamweaver i cant edit anything in design view. <?php require('header.php');?> What should i do? | |
I currently have $tableName="thenameofthetable"; $someid=$_GET["someidthruget"]; $result = mysql_query("SELECT name,age FROM ". $tableName. " WHERE idp=". $someid); Which looks really insecure. How can I do it using a stored procedure which I think will make it a lot more secure? Thanks | |
I want to pass a combo box value from url in php. I have no idea how to do it. I just try like this. This my combo box html code. <select id="ID1" name="place" > <option value="Colombo" selected="selected">Colombo</option> <option value="Matara">Matara</option> <option value="Galle">Galle</option> </select> //What i want is pass selected value … | |
Why does this code snippet keep getting Undefined offset: 2, Undefined offset: 7, Undefined offset: 11, respectively? I'm not sure where I'm going wrong, for($i = 0; $i < $user_length; $i++) // CHECKS IF THE USERNAME, FIRST NAME, IC NUMBER AND CONTACT NUMBER IS ALREADY BEEN REGISTERED AS A MEMBER … ![]() | |
Hy All I have another problem. When somebody going to my download link [Click Here](http://www.filemonster.org/download.php?id=11) a window pop up to download the file called get.php. I dont want that to appear. Because its not the file which is under the "regulr downlod button" . The get.php its the file which … | |
Hi, I was wondering if there is a possibiity that you can put a PHP form into a Jquery Accordion. SO when you slide it open and close a new form appears? If there is can sombody point me in the direction of a tutorial or article explaining this. | |
Please tell me what is the use of datafeed in price comparision script.and how can i use it.is data feed compolsury in price comparision script ![]() | |
What does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means? | |
I have a MySQL DB with 2 Tables in particular, "Properties" and "Tenants". Each Table has a unique address Field "propAddress" & "TenAddress". I have a PHP page with a repeating reigon that lists all properties in the DB. What I'm trying to do is list all the tenants info … | |
Hi I have an array of format Array ( [1] => Array ( [1] => Array ( [27] => C1 [28] => Y1 ) [2] => Array ( [31] => C2 [32] => Y2 ) [3] => Array ( [34] => C3 [35] => Y3 ) ) [2] => Array … ![]() | |
How to I check for existing username without using mysql in php? I tried something like this but it isnt working. Please help. Thanks. Strictly no SQL... $name=$nme; $name = file("datatext/users.txt"); $ic=file("datatext/users.txt"); if (this.$nme== $name) { echo "this user exits, please log in"; } ![]() | |
Hi everyone, got really strange issue with a template I have started to build. I am continually getting the follwing error message Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent Even though the only code I have on my page is <?php session_start(); ?> <!DOCTYPE html> … | |
I have script which has search engine to find mp3 songs, i need that if someone search the site with free mp3 songs or mp3 free songs both keywords has free keyword. i have redirected with header(); function through my coding in php but what about previously indexed urls with … | |
Hi everyone. It's been a while since I've needed help with a PHP problem. Hopefully someone here knows what I'm doing wrong because I can't see it. I am trying to use rename() to rename an image file which is in a subdirectory of a subdirectory the script is running … | |
Hi I am trying to get to download images into a file from database field urls onto my server as there is lots of them. I think im on the right track. I currently have an error Parse error: syntax error, unexpected T_STRING in getimages.php on line 11 Hope someone … | |
Hi all, I'm currently using imagemagick to resize gifs for my site. But the compression doesn't seem really good. I've already tried optimizing it the best way I could, but it isn't satisfactory. Does anyone have recommendations for a better option? Tumblr's gif compression seems to be the best I've … | |
Hy All Im here again to ask for you help. I still in the begining to launch the site, and i found a major error. The theory is the following. I planning to start a Pay per download site, which mean the members upload a file and when somebody want … |
The End.