0
votes
1answer
55 views

Returning AJAX Value to Javasscript variable

I have spent hours looking for help with returning to Javascript the AJAX call to a php script. What I am trying to do, is insert a value into a table, then return the id for that inserted row, ...
-1
votes
1answer
35 views

Form will not submit, but instead loads a blank page

I'm trying to create a simple form, to add users to a MySQL Database. I'm currently loading the pages into the main content box using AJAX, whenever I load the form into the main content box, It will ...
-2
votes
1answer
19 views

Auto page refresh after taking value from database [on hold]

(click)approve link or after check and submit approve overtime.... i will take data from database and update searching result portion automatically without clicking button.My plan is to click search ...
0
votes
3answers
50 views

open javascript function in php

I work on MySQL PHP while($row = mysqli_fetch_array($result)) { echo "<a href=javascript:click('$row[Name]')>".$row['Name']."</a>"; echo "<br><br><br>"; } But in ...
-1
votes
6answers
41 views

perform a query on database after closing browser(php)

i need to perform a MySQL query on database when a user closes his browser.i am developing a application where when a user logs in a database field lo-gin_status is set to 1 and when a user logs out ...
0
votes
1answer
29 views

Code to add subcategories to dropdown not working

I have a form for adding products to a site. The form contains 2 dropdown boxes, one for categories and one for subcategories. When you choose a category in the first the second should be populated ...
0
votes
2answers
42 views

Hacking Prevention

I have a javascript variable saved on page load which i will use later. Is it possible for a user to change this variable. I'm trying to figure out a way to, when a user inputs something, make an ajax ...
0
votes
2answers
37 views

Posting JSON to php script server side fails

This is my jquery code: var jsObj = {"user_id":5, "login":"hsm"}; var str_json = JSON.stringify(jsObj); $.post("json_handler.php", str_json) .done(function(){ alert('data sent ...
0
votes
1answer
55 views

Saving javascript object into database with php script

I have a javascript object (with stringify, i can make it in json format), like that: var jsObject ={'elem1':'val1', 'elem2': {'elem21':'val1', 'elem22': 'val2'}}; I want to save it in my already ...
-1
votes
2answers
59 views

How to refresh a page after the form response comes back

I have searched about my problem in several websites, but I could not get it. What I am looking for is how to refresh a page after response comes back with successful message of deletion of row. My ...
0
votes
2answers
99 views
+50

design structure of json, ajax, php and mySQL

I have a new project coming up, and I would like to use ajax to get the mysql result (in json format) so that I can use jQuery ajax to display it properly. Since I'm really new to json, ajax, jquery ...
3
votes
2answers
141 views

php mysql based on user input form

I am new to PHP and AJAX so bare with me on this, I am having trouble using a checkbox to select one or multiple fields of data for PHP/AJAX to process and display. I have the PHP/AJAX working great ...
0
votes
3answers
57 views

ajax validation not working

Jquery file $(document).ready(function() { $('input.textinput3').each(function() { $(this).rules("add", { required: true, ...
0
votes
1answer
39 views

mysql select js variable

Hey I wanna know if something like this is possible? $result = mysql_query("SELECT * FROM posted_events WHERE Month_ = ".echo"monthS";." ); Obviously the syntax is wrong (because it doesn't work), ...
0
votes
0answers
66 views

Get Random values from mySQL

I have a table with columns subjects,questions,exam,question id, from this table I want to get random values to display. For every every question I have used: $singleSQL = mysql_query("SELECT * FROM ...

1 2 3 4 5 144
15 30 50 per page