39,326 Topics
| |
i have stored some value into DB table and want to get them displayed on my form with a restriction that the column title in DB and the Value of the previous feild are same and only the cloumn rows are shown inthe following feild in the form....!!!! Cant Figure … | |
SO friends... i had a fight with this code.. please help :( <? ob_start(); ?> <?php // Make sure an ID was passed if(isset($_GET['id'])) { // Get the ID $id = intval($_GET['id']); // Make sure the ID is in fact a valid ID if($id <= 0) { die('The ID is … | |
Hi I have two button in my page One is 'search' and another is 'print' But i could not re direct and passing date to another page. code is working fine for search. But print I am blur of this. Pls help me how i can redirect the page by … | |
hi I tried to generate ageing reports in php. But I could not get result and even error. it is my code. Pls help me connection.inc.php try { $hostname = "server"; //host $dbname = "database"; //db name $username = "user"; // username like 'sa' $pw = "password"; // password for … | |
I accesed php info from cPanel .. php.ini said to be /etc/php5/php.ini but in the "etc" folder is nothing :( help... :( | |
hi can any one share some possible way to print an invoice when some thing is registered in a form using PHP and redirects it to html page for printing my form is ok and stores data.... redirects to the disered page as well now i have html lay out … | |
Hi every one i am getting this error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING on this statement i tried so many time but no help is there anyone who can fix it $sql="INSERT INTO donors(donor_id, name, gender, dob, weight, height, conid, statid, cityid, bloodid, … | |
I have an array that looks like this: `Array ( [0] => Array ( [id] => 2 [name] => test product1 [description] => test [quantity] => 1 [price] => 188 [status] => Brand New [category] => Computer Software [subcategory] => Music Software [postdate] => 2013-05-19 [prodimage] => [user] => admin … | |
Hi everyone I am facing a little issue please help me in this regards I have created a form with validation all the validation fields are working fine but in the end i am facing that after validating all the fields should be insert into database but for the test … | |
Hello Guys, I have tried to find an ultimate solution to my problem but I had no luck. Basically I am asking if someone would kindly do a .htaccess file for me that Rewrites like this: 1) If the url has www. remove it. 2) When the user access any … | |
| I would like to create a table based on exploded content of a text file. My text file contains information about users stored like this: u0001:Omi Wan Kenomi:123456-12-1234:female:engaged:private sector:ddsfsfsdfsd:603-78860409:6015-2343444:omi.beckett@gmail.com:omiwan:dingo u0002:Jason:334323-32-2323:male:married:private sector:dfsdfsdfsdf:603-42342342:6015-2321312:jason@gmail.com:jasonlim:dingo1234 u0003:Jina:443342-34-4434:female:engaged:government sector:BLAH BLAH BLAH:603-34334353:6012-7564938:jinadesus@yahoo.com:jina1234:dingo1234 u0004:Gail:432424-34-3242:male:single:private sector:Hell's Kitchen:603-32423423:6015-2432423:gail@gmail.com:gail1234:dingo1234 u0005:Deana Zafir:434435-35-3564:female:single:student:Melbourne Uni:603-44442345:6015-5356343:deanazafir@hotmail.com:Deana1234:dingo1234 To create a table within echo in php, I … |
| Hey guys, Just thought I'd throw this question out there out of curiousity. I've been through a few IDEs, to be honest I was rolling with notepad for the longest part, now I'm a hardcore sublime fan. I don't think I've ever used anything so streamlined. It just blows all … |
Hallo, i ve made a script that uploads an image in a web site and then show that image (admin site). when i upload the file i rename it with a specific name. The user may delete the image he uploaded. Everything works fine. If he tries to upload another … | |
Hi every one i want to validate postal address I require the text field should contains Alphabets in Upper and lower case, numbers, hyphen, fullstops forward and back slash and commas and spaces in it currently i am using this fucntion but its not getting me the same thing which … | |
How to change the following code for javascript to php code plz help me. <form> <select onChange="updatecalendar(this.options)"> <script type="text/javascript"> var themonths=['January','February','March','April','May','June', 'July','August','September','October','November','December'] var todaydate=new Date() var curmonth=todaydate.getMonth()+1 //get current month (1-12) var curyear=todaydate.getFullYear() //get current year function updatecalendar(theselection){ var themonth=parseInt(theselection[theselection.selectedIndex].value)+1 var calendarstr=buildCal(themonth, curyear, "main", "month", "daysofweek", "days", 0) if (document.getElementById) … | |
My software is using the following function to build the input field for in this case... input field name is Title: <label for="Title"</label> <?php ItemForm::title_input();?> I do not know where it come from among the hundreds of files. All I want is to target this fields to set a maxlength. … | |
Hello, there is a function which saves and sends post request: save_car: function(e) { if (e.keyCode != 13) return; if (!this.brand.val()) return; Cars.create({brand: this.brand.val(), color: this.color.val(), max_speed: this.max_speed.val() }); this.brand.val(''); this.color.val(''); this.max_speed.val(''); }, Request URL:http://localhost/backbone/car_list/backend/index.php/welcome/index Request Method:POST Status Code:200 OK Request Headersview source Accept:application/json, text/javascript, */*; q=0.01 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en,lt;q=0.8,en-US;q=0.6,ru;q=0.4,pl;q=0.2 … | |
I am new to web developing but do code in c++ I wanna develop scenario as: I have a database server that has its own query instruction sets and reply mechanism.. So I want php to connect to this server and execute the queries and get the results out of … | |
Hi, I'm creating a mentionInput, a textarea where i can identify people writing "@NAME" (like facebook) I have a this js file where i tell the info of the names i can identify: $(function () { $('textarea.mention').mentionsInput({ onDataRequest:function (mode, query, callback) { var data = [ { id:1, name:'Kenneth Auchenberg', … | |
Good Morning, I'v been combing through the net including many links on this site, trying to get the necessary information to make a video play on my webpage. No Luck I've tried multiple pieces of code to embed the video, but in each case I am faced with either a … | |
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 … |
The End.