xampp

Error in inserting data into xammp mysql table

你离开我真会死。 提交于 2019-12-04 20:51:37
I have created a form in bootstrap modal. I have to enter data into mysql database. i have installed xammp server. I have created a table name table1. My code is as follows function adddata() { $("#areadetail").submit(function(e){ e.preventDefault(); var year = $("#year-input").val(); var area = $("#area-input").val(); var plntd = $("#planted-input").val(); var ttl = $("#total-input").val(); var dataForm = 'Year=' + year + '&area=' + area + '&planted=' + plntd + '&total=' + ttl; $.ajax({ type: 'POST', url: 'insert.php', data: dataForm, success: function(html){ if(html == "success"){ $('#table1

how to expand a category list imported from MySQL

假装没事ソ 提交于 2019-12-04 20:29:56
I have imported a set of different values from two different tables in phpMyAdmin, one from Category table (where cat_id is a PK) and another from Item table; where (cat_id is a FK). <?php require ('config.php'); $que = "SELECT * FROM category"; $run = mysql_query($que); $j = 0; while($row = mysql_fetch_array($run)) { $cat_idd[$j] = $row['cat_id']; $cat_namee[$j] = $row['cat_name']; $j++; } for($i = 0; $i < count($cat_idd); $i++) { $que2 = "SELECT * FROM item WHERE cat_id = '$cat_idd[$i]' "; $result = mysql_query($que2); $run = mysql_num_rows($result); echo "<a href=''>".$cat_namee[$i]."(".

laravel executable application

久未见 提交于 2019-12-04 19:54:53
I have worked in one project which is built up with laravel , XAMPP Server which is replicate of desktop application created in .net I need help regarding , how can I convert whole thing including my laravel PHP projects, xampp server and all required files into .exe file which is stand alone for Windows application. Can anyone help me if there is anyway to make .exe file. I think it is not possible because in laravel we can make only web based applications and whereas in .net we can make both web and desktop based applications. see PHPDESKTOP at https://github.com/cztomczak/phpdesktop you can

Sending email with PHP mail()

这一生的挚爱 提交于 2019-12-04 19:52:15
I'm trying to send automated emails with mail(). It sends some emails but not all, around 50%. To test I'm using the same email address for all emails, and still only some get delivered. I'm using localhost XAMPP. Here's the code: if ($_POST['sendEmail'] == "SEND Email") { ob_start(); $buffer = str_repeat(" ", 4096); $buffer. = "\r\n some HTML \r\n"; set_time_limit(0); $noEmails = $last - $first + 1; echo "Emails sent (of $noEmails):"; for ($index = $first; $index <= $last; $index++) { $to = $email["$index"]; $subject = "Hey {$firstName[" $index "]}!"; $message = "$emailMessage"; $headers =

How to enable SSL only on specified XAMPP directories

痞子三分冷 提交于 2019-12-04 19:45:41
I've been able to use makecert to make a self signed cert which currently enables HTTPS on all directories in C://XAMPP/htdocs I have two directories which I want to be different, c:/XAMPP/htdocs/PLACEHOLDER1 c:/XAMPP/htdocs/PLACEHOLDER2 I was wondering if it'd be possible have the SSL scope limited to one directory, say in this case 'placeholder1'. It's my first time using SSL so sorry for any confusions. Da Gopherboy http://robsnotebook.com/xampp-ssl-encrypt-passwords has some good information on how to make folders accessible by SSL encryption only. It specifically covers these two items,

XAMPP Mercurial installation on Windows Apache --> HgWebDir.cgi Script Error

 ̄綄美尐妖づ 提交于 2019-12-04 19:39:10
I try to publish multiple existing mercurial repository-locations though XAMPP Apache via CGI Python script hgwebdir.cgi ... as in this tutorial https://www.mercurial-scm.org/wiki/HgWebDirStepByStep I get the following error from the apache error logs, when I try to access the repository path with a browser: Premature end of script headers: hgwebdir.cgi [Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] Premature end of script headers: hgwebdir.cgi [Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] File "C:/hostdir/xampp/cgi-bin/hg/hgwebdir.cgi", line 39\r [Tue Apr 20 16:00:50 2010

Object not found in xampp

假装没事ソ 提交于 2019-12-04 19:18:20
I have got a problem using xampp. I hope u guys are able to solve it. When i type in the address "localhost" it just shows "It works". But when i type "localhost/xampp" then it takes me to the welcome page of xampp. Why is that when everybody gets that just typing "localhost"? I created a simple php hello world program to test under the folder htdocs and named it test.php. Then when i type in "localhost/xampp/test.php" it shows the message shown below- Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If

how to configure xampp in windows if project files are not in root directory

孤街醉人 提交于 2019-12-04 19:18:12
i am using windows .my xampp is install in drive C ,firstly i worked here in my files C->xampp->htdocs->SVN data->php_clients->trunks->myproject but than for SVN i copy paste my all files here now SVN Is configured here D->SVN data->php_clients->trunks->myproject i am testing my project locally i mean in localhost,firstly it was in C->xampp->htdocs->SVN data->php_clients->trunks->myproject so i was able to work ,test,update now i am suppose to work in files which is located here D->SVN data->php_clients->trunks->myproject but problem is of xampp what is the nice and easy way so that i work

Why is xdebug not showing up in phpinfo()

耗尽温柔 提交于 2019-12-04 19:13:42
问题 I am trying to get the following to setup work: Windows 7 - 64-bit XAMPP 1.7.4 XDebug [php_xdebug-2.1.0-5.3-vc9-x86_64.dll] When I run phpinfo() from Xampps homepage, XDebug it is not listed anywhere. I checked the Apache error logs and there are no errors, so it seems to load the module without problem? I haven't used PHP in years so I have no clue why this isn't working. [PHP.ini] [XDebug] zend_extension_ts = "C:\xampp\php\ext\php_xdebug-2.1.0-5.3-vc9-x86_64.dll" xdebug.remote_enable = 1

Xampp; Apache Port 80 Busy

女生的网名这么多〃 提交于 2019-12-04 18:55:34
I am having Port Problem. Whenever I start Apache then it give me this error: Busy - Apache Started [port 80] And When i start Mysql then Folowing Error Appears: Busy - ERROR: Mysql service not started [-1] Please Anyone tell me that how to resolve this problem. Waiting for Replies. Thanks in Advance Open cports.exe ( http://www.nirsoft.net/utils/cports.html ), find in the column Local Port the port 80. Thus, you will know which program uses this port and you will be able to kill it. For most people, port 80 is occupied by Skype by default. Simply uninstall Skype and port 80 will be freed.