39,323 Topics
| |
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 … | |
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 |
The End.