39,393 Topics

Member Avatar for
Member Avatar for nizam27391

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. ?? …

Member Avatar for LastMitch
0
153
Member Avatar for arunpawar

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 …

Member Avatar for arunpawar
0
218
Member Avatar for shilu2

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 …

Member Avatar for broj1
0
208
Member Avatar for mjsmitten

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"?

Member Avatar for paulkd
0
174
Member Avatar for amkaos

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.. …

Member Avatar for minitauros
0
562
Member Avatar for mjsmitten

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: …

Member Avatar for diafol
0
393
Member Avatar for php.coder

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 …

Member Avatar for LastMitch
0
134
Member Avatar for php.coder

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> …

Member Avatar for php.coder
0
316
Member Avatar for michael123

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 …

Member Avatar for minitauros
0
210
Member Avatar for bradly.spicer

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 …

Member Avatar for bradly.spicer
0
129
Member Avatar for davidjennings

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']) . …

Member Avatar for davidjennings
0
215
Member Avatar for wplay

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 …

Member Avatar for LastMitch
0
1K
Member Avatar for Fiorentino01^

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 …

Member Avatar for diafol
0
569
Member Avatar for jLamp

when include file to dreamweaver i cant edit anything in design view. <?php require('header.php');?> What should i do?

Member Avatar for minitauros
0
114
Member Avatar for riahc3

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

Member Avatar for riahc3
0
643
Member Avatar for weeraa

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 …

Member Avatar for minitauros
0
2K
Member Avatar for xianamersu

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 …

Member Avatar for diafol
0
579
Member Avatar for rolanduk

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 …

Member Avatar for cigoL..:)
0
409
Member Avatar for BuckOneArm

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.

Member Avatar for wiselisle
0
98
Member Avatar for sthakre624

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

Member Avatar for LastMitch
0
43
Member Avatar for mohammed.ismail

What does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?

Member Avatar for cigoL..:)
0
241
Member Avatar for mark2326l

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 …

Member Avatar for cigoL..:)
0
230
Member Avatar for aithabuddy

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 …

Member Avatar for diafol
0
163
Member Avatar for xianamersu

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"; }

Member Avatar for diafol
0
344
Member Avatar for lloyd.farrell.7

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> …

Member Avatar for minitauros
0
386
Member Avatar for 4fridi

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 …

Member Avatar for 4fridi
0
294
Member Avatar for Borzoi

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 …

Member Avatar for Borzoi
0
221
Member Avatar for mpc123

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 …

Member Avatar for mpc123
0
144
Member Avatar for wplay

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 …

Member Avatar for pritaeas
0
274
Member Avatar for rolanduk

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 …

Member Avatar for rolanduk
0
321

The End.