10,932 Topics

Member Avatar for
Member Avatar for gogs85

Hi I have problem to get data when insert with ajax. I have ajax.js file and here is this code: $('#text-content').keypress(function(e){ if(e.which == 13) { if($('input#enter-click').prop('checked', true)) { $('#live-send').click(); e.preventDefault(); } } }); $('#live-send').click(function(){ var message = $.trim( $('#text-content').val() ); if($('#text-content').val()!="") { $.ajax({ type: 'POST', dataType: "json", url: './includes/conversation.php', data: …

Member Avatar for diafol
0
434
Member Avatar for shashigowda

if once i click on the Accept button it should change its state to Accepted and that button should be disabled for the future.it should stay in disabled state even after refreshing a page,help me as soon as possible...Urgent

Member Avatar for Taywin
0
121
Member Avatar for Riteman

I have to create a unique code to every user registering. The thing is that the unique code needs to be generated based on which city the user is from. So the tables I have are: CREATE TABLE `microreg`.`users` ( `user_id` INT NOT NULL AUTO_INCREMENT , `user_code` CHAR(10) NOT NULL …

Member Avatar for Taywin
0
204
Member Avatar for shashigowda

Hii..this is mysql query $querry="SELECT CONCAT(`insert_id`, `type`) AS 'order_id' FROM orders WHERE email='$email'"; $order_id=mysql_query($querry); echo $order_id; i need to convert this into ** mysqli**. Any Help??

Member Avatar for shashigowda
0
369
Member Avatar for UK-1991

Hello, I have created a form using ajax and php but when I click on submit the values in the textarea remains as it not disappears so I found a way to make form reset once I click on submit here is my code and please let me know how …

Member Avatar for UK-1991
0
243
Member Avatar for lennardrehder

I am to attempting to recover data from a schema that had both MyISAM and InnoDB tables. I can recover the MyISAM tables without any problem, however I am running into difficulty trying to get the InnoDB tables back. Steps taken: I have backup of the schema folder in the …

Member Avatar for pascalwinkler
0
520
Member Avatar for shany0786

I am always short of logic when every things works fine then i come up with new problem? **PROBLEM** There are generally 6 user type accounts.Everyone has their own "edit profile page".Now i want to know how can i handle this.user login then directed to home page then in navbar …

Member Avatar for shany0786
0
272
Member Avatar for spluskhan

What im missing, LIMIT & Next page are not working. it showing nothing. <?php include ('ini.php'); $query = $_GET['query']; $min_length = 3; $max_length = 15; if(strlen($query) >= $min_length) { $query = htmlspecialchars($query); $query = mysql_real_escape_string($query); echo "<table border='0' width='' align='left' cellpadding='1' cellspacing='1'>"; echo "<tr><h3>You have searched for $query... Please find …

Member Avatar for diafol
0
211
Member Avatar for biddut.hossain.75

i want to import my backup database(.sql file) into mysql using php script. i have given the following code where **case 1** section works. but i need to execute **case 0** section. what the problem in my code please help me anyone. <?php //ENTER THE RELEVANT INFO BELOW $mysqlDatabaseName ='online_admission_form'; …

Member Avatar for diafol
0
4K
Member Avatar for Yves11
Member Avatar for diafol
0
263
Member Avatar for Sophia_1

Hi everyone, am trying to display current date/today's date in php but the output is as below. Please advise. Thanks. <?php $Currentdate2 = date('d-m-y'); echo $Currentdate2; ?> Output: Current date: 2027-10-15

Member Avatar for diafol
0
369
Member Avatar for SirMahlon

i have been able to pass value from form to ajax and to php to insert into my database. Now there is a value which determines whether to redirect to page 1 or page 2 after inserting. As well i alert that the form was successful. So i wanna know …

Member Avatar for diafol
0
318
Member Avatar for jdm

I'm working on a personal movie database project to help keep track of my movie collection, but I'm having issues and I was wondering if it was even possible and if so how to go about doing this in the first place. I want a way to get an overall …

Member Avatar for JOSheaIV
0
1K
Member Avatar for Nadera

Hello, I have three tables in MySQL database which they are: employee, expenses and details. The details table is composite table between the expenses and employee. In the HTML form there is a table that will enter multiple data into details that will referenced with one expenses id. I could …

Member Avatar for diafol
0
643
Member Avatar for sashtha

> DB_name: test > Tablename:option > attribute:name char(5); index.php <html> <head> <title>OPTION</title> </head> <body> <form method="post" action="index.php" > Name : <select name="nameoption"> <option value="name1">name1</option> <option value="name2">name2</option> <option value="name3">name3</option> <option value="name4">name4</option> </select><br> <input type="submit" name="submit"> </form> </body> </html> <?php include("database/db_conection.php"); if(isset($_POST['submit'])) { $name1=$_POST['nameoption']; $insert_data=("insert into option ('name') VALUE ('$name1')"); if(mysqli_query($dbcon,$insert_data)) { …

Member Avatar for diafol
0
268
Member Avatar for shany0786

I am trying to fetch data from multiple table but i am getting this error `The used SELECT statements have a different number of columns` 4 tables will have different number of columns i am doing this because i have common edit profile page number filds may vary.So how can …

Member Avatar for shany0786
0
18K
Member Avatar for AntonyRayan

Hi, I am not familiar in google map. I want like this, My map page reloads after every 10 seconds. when I load map page it will just show the map with the given static latitude and longitude. after 10 seconds, it will plot the available vehicles from mysql table. …

Member Avatar for Taywin
0
104
Member Avatar for UK-1991

Hello I have created an add to cart function but when I click on add to cart it replace the previously added products Here is my code Header Area details.php <?php require_once("includes/functions.php"); if(isset($_POST["addtocart"])) { $pid = $_POST["pid"]; $prod_name = $_POST["productname"]; $prod_price = $_POST["productprice"]; $category = $_POST["cat_name"]; if(isset($_POST['command']) == 'add' && …

Member Avatar for Taywin
0
486
Member Avatar for Anoopgupta

I am trying to build a web application that can also run on mobile phones. Is the html code generated by imgmap_desktop can be run on both web and mobile? or rather web responsive type?

0
137
Member Avatar for shany0786

There is no problem in my code it's running fine but i want some suggestion.I have edit profile page for user when user is login he can click on edit profile button to edit his profile but i have what i we generally see is when user click on edit …

Member Avatar for shany0786
0
2K
Member Avatar for slrobinson1983

hello all. i have the following code... SELECT * FROM data WHERE no_2 = no_1 + 1 AND no_3 = no_2 + 1 AND no_4 = no_3 + 1 AND no_5 > no_4 + 1 UNION SELECT * FROM data WHERE no_2 > no_1 + 1 AND no_3 = no_2 …

Member Avatar for invisal
0
252
Member Avatar for best4earn

I have a software which demands this extensions on server , i tried by using xampp but failed. In the beginning it demands zend Guard Loader . I have tried to install on xampp but it can't be installed. I have already read this topic and follow and many topics …

Member Avatar for diafol
0
238
Member Avatar for shashigowda

Hiiii,Good Evening I have a code that search for data in the database but I can search for only 1 keyword in a time,which is working fine for single keyword. if I type 2 keywords separated by a space or comma's which return blank page. I would like to modify …

Member Avatar for pritaeas
0
2K
Member Avatar for Deva Kaur

Hello all.. I m currently having confusion on applying barcode scanner to scan tools in asp.net.. can anyone help me out with the codings? and kindly tell me the way to use scanner in asp.net (vb) thanku u :)

Member Avatar for pritaeas
0
335
Member Avatar for Testt

Hi all, I was trying to create a kill switch for hours but with no success i wasnt able i have tried css killswitch and ajax killswitch, this is the tutorial http://menacingcloud.com/?c=ajaxKillSwitch2 i tried but wasnt able to make it work i also researched and found csskillswitch.com but also that …

Member Avatar for gentlemedia
0
562
Member Avatar for phoenix254

Hi, I Have this php code: <?php //require('dbconnection.php'); $conn = mysqli_connect('localhost','root','','user_registration'); if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); }else{} ; function getUsers() { //return require('online-users.txt'); $getAllUsers = mysqli_query($conn,"SELECT * FROM login"); if($getAllUsers === FALSE) { die(mysqli_error()); // TODO: better error handling } while($rows=mysqli_fetch_array($getAllUsers)){ echo $rows["firstname"]; } …

Member Avatar for cereal
0
12K
Member Avatar for laguardian

Hello guys. I'm creating a web application on Netbeans. Under Source Packages, I've created: - DAO Factories for Customer, Inquiries, and Employee; -DB Connection to establish connectivity with a database I've created; -Entities which include Customer, Inquiries, and Employee; -Servlets containing Login, Reservations, EmployeeRegistration. I'm just wondering if my understanding …

Member Avatar for JamesCherrill
0
186
Member Avatar for Edmund_1

Hello All, I very new to Java, JSP, MySQL and Google Charts [about 45 days experience]. I've been using the Netbeans IDE to create JSP's for interaction with a MySQL data base as part of a Linux based LAMP server that I've constructed. I've got a database that records event …

Member Avatar for Edmund_1
0
416
Member Avatar for Kenneth_4

Dear All May you kindly help me. I have a windows login form in VB.net. I have a users table in MySQL. How can i use the users table in to login changes made to any table in MySql database. I only have 1 mysql databse user that i use …

Member Avatar for rproffitt
0
573
Member Avatar for Amaina

I'm trying to output/write mysql SELECT results to a text file. The SELECT statement results are three records but when i use fwrite to write these results to a textfile, only one record is written. What can i be possibly be doing wrong? Here is the code snippet <?php include …

Member Avatar for Amaina
0
3K

The End.