I have this code that post ajax form to database1.php and i now want it to post also to another page database2.php
how can i achieve that
function sendData(url, data) {
$.ajax({
Type: Posts; User: mutago; Keyword(s):
I have this code that post ajax form to database1.php and i now want it to post also to another page database2.php
how can i achieve that
function sendData(url, data) {
$.ajax({
this code above inserts the same content upto 70 times(ie into 70 rows) in a database instead of just once.
please what could be the problem
<script src="jquery.min.js"...
This Javascript below prints json values for some variables while it print undefined for others. can someone help me fixed that
Hey, your code is vulnerable to sql injection attack. Try escape your variable using Mysqli_real_escape_string()
Your problem is from query statement, you have to include
insurance, mot, tax in the select statement as follow
Array Inserts null Values in Database
I have the following Arrays, but it keeps inserting null values into database whenever the script is run
stdClass Object
(
[id] => 3341234
I want to upload, recreate and resize image to the widths and height
$x35MaxWidth = 35; //35x35 width
$x35MaxHeight = 35; //35x35 Height
using code below. can someone help me
I am rewriting this mysql deprecated code to PDO but before then, I need to sort out one issue.
This code was used for login authentication by passing a username and password via a form inputs.Now...
The code below was used to send sms but i need to be able to return values for every action
for instance if sms is ok return value successful, if value is 2904 return SMS sending failed etc.
Any...
I have to codes below that works seperately.
The first was used to upload image to a server and database via pdo connection.
The second was used to watermark a stationary image.
My problem is...
This code below works by sliding the content of DIV but what i want is
If user is on the firstpage and click on the links, it will slide him to secondpage in full and vice versa.
Any help will be...
<script>
var serviceURL = "http://localhost/db/";
var employees;
var uname;
$('#employeeListPage').bind('pageinit', function(event) {
getEmployeeList();
});
This script ensures that if the character length is not equal to 6. it will returns error message.
<script type="text/javascript">
function validate(){
x=document.myForm
...
my first question has been resolved. One more thing, I want to replace the dropdown select option with input type eg.. <input type=text> so that users can ignore dropdown database destination...
Am building a Google maps which gets information from database via JSON and php. Everything works fine. Now,
I want to replace Google red Marker icon with my own icon image in a database. how can...
i have tried implementing what you said but i cannot get it to work.
below is my ajax code so far
display.html
<script type="text/javascript">
$(document).ready(function() {
i have added it but not working
i created an ajax form page in jquery mobile but when a click on a link that will take me to the ajax page, it does not link well. it seems that jquery mobile uses the "#" sign to name pages.
...
am trying to output images from database via json. the code below displays the image name eg mutago.jpg.
chat_div.innerHTML += response.messages.message[i].user_image + '<br />';
i want...
i have a div values that i want to hide and then pass its value into form
I tried this below. any help
<div id="records" type="hidden">
<input type="text" name="records" value="records">...
Am testing login via json php using mysql deprecated.
This code works excellent when all is runing on the sever side.
now i have seperated the client side from the server side.
The server side...
i want to embed a clickable anchor links in the code below.
eg.
'<a href="users.html?id=' + user.id + '"></a>'
how do i achieve this in the line of code below
+"<td>"+user.id+"</td>"
.i want to display mysql database rows via ajax and json.but values is displaying "UNDEFINED". i know the problem is from ajax.html. any help please.
ajax.html
<script>...
Below is what am trying achieve, when a user login, on the successful page, it alerts eg welcome user, how will i print the welcome user on the body of the html as opposed to alerting it on the head...
i want to create a web storage session login and print a successful page (welcome.html) with the
loggin session username and password.
Login form works but those not display the welcome user on...