The following code is erroring on the connection string line 5 it used to work but then i had to move the sql server to another box and now it fails have i forgotten to do something on the sql server or is there error in my code my error is Fatal error: Uncaught PDOException: SQLSTATE[08001]: [Microsoft][ODBC Driver 11 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. in C:\xampp\htdocs\dailysales\includes\CPeriodOrdersJson.php:5 Stack trace: #0 C:\xampp\htdocs\dailysales\includes\CPeriodOrdersJson.php(5): ->('sqlsrv:Server=F...', 'LocalAdmin', 'CrispyCrackers') #1 {main} thrown in C:\xampp\htdocs\dailysales\includes\CPeriodOrdersJson.php on line 5 <?php include("sqlcalendar.php"); $db = new PDO("sqlsrv:Server=FFP-X3DB\X3;Database=FFP_WebServices", "LocalAdmin", "CrispyCrackers"); $row=$db->prepare("FFP_WebServices.dbo.WEBSERV_PERIOD_ANNUAL_FIGURES_CUMMULATIVE_SELECT"); $row->execute();//execute …

Member Avatar
+0 forum 0

I need help that how to make these assignment by html,javascript?? i have made admin and user login ..need codes for further more.. **description of assignment:** Salemanagementsystem have two panels.Admin login with specific id and Admin have rights to update product lists add, delete and update. Employees can create new account and login with register email. Employees can search and sale over products via sale button sales products can store in an array which display sales pages. Sales page can see admin and employees but only admin have a rights to restore or delete sales products. Use local storage to …

Member Avatar
+0 forum 0

No matter what the visitor types www.example.net or http://www.example.net or http://example.net i want all of the requests to be redirected to https://example.net currently i have managed to redirected requests that are coming from www.example.net and https://www.example.net to https://example.net but i can't find a solution for http://example.net to https://example.net Current config of nginx default is this: server { server_name www.example.net; return 301 example.net$request_uri; } server { listen 80; listen [::]:80; server_name example.net; location / { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $http_host; proxy_pass localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } Application is in NodeJs, server is from AWS …

Member Avatar
+0 forum 0

Good Day All i have a ListView that is defined in a Xamarin Form. i want this ListView to be updated with the Data from the DB every 5 seconds. In a Non Mobile environment , we have a Windows Service , which is a long running Service. but now i search i came across a Service. but now i see this is implemented differently on each platform. Most examples i get are examples where one is binding the Control in Android Project. WhatUp if my Data binding is done in Xamarin Form (Standard Class) . 1) Can i kindly …

Member Avatar
+0 forum 0

I've seen the following code for binding the Escape Key to a Tkinter GUI: import Tkinter as tk def exit(): root.destroy() root = tk.Tk() root.bind("<Escape>", exit) root.mainloop() However, when I add this to my GUI program, I don't get a response when Esc key is pressed. It does nothing. Any suggestions?

Member Avatar
+0 forum 0

Hello! I have a problem with a MySQL database that I haven’t been able to solve no matter how much I tried, either with internet guides or with free tools. I really don’t want to pay hundreds of dollars to a company so please, if anyone knows of a solution, help me because I’m desperate. I was running XAMPP 7.1.22 where I had said database and I decided to install XAMPP 7.2.10 without backing up the database. After that, the site wasn’t working so I figured the problem was the database. And indeed PHPMyAdmin wouldn’t recognize it. I reinstalled the …

Member Avatar
+0 forum 0

I have a couple of SQL databases that i am trying to link results from. My first database is calendar that i need to return the details for today so current date and targets for sales and orders that works my second data base is for orders which i can sum the total orders for today and add that to a column on the select statement (code below) but the trouble started when i want to add another column with total orders for the period so far using periodstartdate and currentdate from database 1. any help would be great USE …

Member Avatar
+0 forum 0

Hi Everyone, I am new to using cURL I have a client website I am working on... They have a password script that automatically creates a new password - what they would like to do now is automatically log the user in - using the automatic password and the users email address. The password script is working perfectly and I have the email & password variables available - $moefEmail & $moefPassword I just need help with editing the two cURL scripts to automatically log the user in I have found the following two articles that detail the process, But I …

Member Avatar
+0 forum 0

Hi! My name is Steven and I am a computer science student. I've been working on a project recently (just for fun, practice, and because I was bored lol). I need some testers. It is a game engine for developing text based games in python (3). As of now, it is in very early stages. I need some people to try to develop with it, find bugs, or just suggest features. It is available to download from github [here](https://github.com/tman540/T.A.R.B.S.-Engine). There is also documentation for the most recent version [here](https://tautonico-enterprises.gitbook.io/tarbs/). Thanks! Note: I haven't been programming python for too long, so …

Member Avatar
+0 forum 0

I have a very standard code where I use a CRUD interface on my Database. The issue is that every attempt I made to redraw/update the table with the new data [ $('.table').DataTable().draw(); ] has failed miserably. Here is my targeted code: function manageData(key) { var name = $("#countryName"); var shortDesc = $("#shortDesc"); var longDesc = $("#longDesc"); var editRowID = $("#editRowID"); if (isNotEmpty(name) && isNotEmpty(shortDesc) && isNotEmpty(longDesc)) { $.ajax({ url: 'ajax.php', method: 'POST', dataType: 'text', data: { key: key, name: name.val(), shortDesc: shortDesc.val(), longDesc: longDesc.val(), rowID: editRowID.val() }, success: function (response) { if (response != "success") alert(response); else { $("#country_"+editRowID.val()).html(name.val()); …

Member Avatar
+0 forum 0

Hi, I haven't been on this community forum for quite a while. I have been getting an annoying problem with my file uploads (i.e. pdf documents), to my remote server. The upload_file form was working great for a long time, but just recently it stopped working. The problem there, was, once I clicked on the 'submit' button to send the file to the 'remote uploads folder' nothing happened, not even an error message. I then logged into the website cPanel Admin Page , then opened file manager to access the 'uploads' folder in 'backend' section, and proceeded to upload a …

Member Avatar
+0 forum 0

Hey guys, I'm searching for free sports data api or sports data widgets for a website that is gonna be starter level. I did my research and found some options but I need more alternatives. Some providers like Opta or Sportradar offers a lot as sports widgets but they give no clue about pricing options. I cant calculate a budget and they all look like they are designed for big companies. I've managed to find only one provider with clear prices and a free trial option; www.broadage.com They have lots of widgets like livescore or matchcenter, the widgets look fine …

Member Avatar
+0 forum 0

![Untitled_spreadsheet_Google_Sheets.png](/attachments/small/2/57c66e06439c72d5acbb2b9623cf737a.png "align-left") I have column A and Column B. I need to create new column C by iterating through Column A and B and if value in Column A is same then merge value in Column B.

Member Avatar
+0 forum 0

Hi guys I was having issues with reading 3 files and merging them into an array, I tried fgetc, which then let me to have issues with sorting them so I tried to change my array and allocate a counter variable to get the size of it but not sure which method would be best to read and insert into an arrat I tried a few ways which I commented below, however I get errors for both. I'm a bit lost when it comes to arrays and pointers. any help is appriciated. :) #include <stdio.h> #include <stdlib.h> #include <string.h> int …

Member Avatar
+0 forum 0

Hi All, I want to select specific drop down option to a selected post, for example the post is on Honda Fit, the the Drop Down should select Honda Fit automatically. The below code works fine but shows all posts instead of selecting specific to a post, e.g. select guid from wp_posts where guid='$_GET['guid'] and post_type='product' , I know it in a query logic but when i implement the query, the metabox just keeps loading and does nothing. Code responsible for fetching the drop down list: automotive_admin_help_message(__("This setting allows you to associate a WooCommerce product with a listing and show …

Member Avatar
+0 forum 0

1) What I'm trying to do: Uploading a file with aws s3 and then taking the filename and filetype and placing it at the end of the url to save it in sql so that every time the person logs in, it will pull the picture up by user image url 2) Problem: Not uploading and not recognizing file in filename or filetype. Coming up with undefined for filetype and filename in URL and signedURL 3) fileUploadService.js USED IN NODEJS (below) Can anyone let me know what I'm doing wrong or anything missing? const aws = require('aws-sdk'); aws.config.region = 'us-west-2'; …

Member Avatar
+0 forum 0

why was error Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration' ? you see attach file http://www.mediafire.com/file/jimpgxd88zzfnab/BookShopOnline.rar/file and see file pictures http://www.mediafire.com/view/67di18r0ea4dadg/errorwebconfig.jpg/file

Member Avatar
+0 forum 0

I current have this .cgi which is used to display to a user the products they've selected for purchase.   I am wondering what is the best and most efficient way to obtain this scenerio:   Right now if someone purchases the first motor it is $18 and that displays in the table below but any additional motor is $12 which is where I'm looking for some guidance.   I know the item is a motor based on it's description obtained from fields[2]   Also - individuals have the ability to enter in a quantity obtained from fields[3] so if …

Member Avatar
+0 forum 0

By upgrading rails from 4.2.1 to 5.1.0 getting deprecation warning on using as status_changed? DEPRECATION WARNING: The behavior of attribute_changed? inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after save returned (e.g. the opposite of what it returns now). To maintain the current behavior, use saved_change_to_attribute? instead. I don't want to replace on in my project . I think should override method. Anybody knows how to do it. Please help

Member Avatar
+0 forum 0

I send payments to my users regularly. But sometimes the user enter a PayPal email address that cannot receive money from other PayPal users. They just can receive money from their website. How can I check for this and show an error to the user? Do I need to use PayPal IPN, or API? And how?

Member Avatar
+0 forum 0

Hello everyone, I am having trouble in displaying the multiple images on jsp. I am using servlet to pull the image from the database. Following code, will always display single image multiple times on my jsp page. Can anyone please help me in rectifying the error in the code. I am new to jsp and servlet programming! Thanks for your anticipation. Fyi, `Inline Code Example Here` Table A: fieldname: personid(datatype: int, primary key) fieldname: person_name(datatype: varchar(20) Table B: fieldname: person_pic(datatype: BLOB) fieldname: personid(foreign key references Table A(id)) fieldname: picid(datatype: int, primary key) Below is the jsp code: <% //uid will …

Member Avatar
+0 forum 0

Hi here is code snippet used temprarily on button to debug. This works but i wish to use the 2nd snippet. 1st snippet Dim connString As New SqlConnection connString.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("sql2008r2_857000_dmcsqlConnectionString").ConnectionString Dim cmd As New SqlCommand("select TOP 1 no from members ORDER BY no DESC", connString) Dim reader As SqlDataReader Dim lastNumber As String Using (connString) connString.Open() reader = cmd.ExecuteReader() While reader.Read lastNumber = reader.Item("no") End While End Using Response.Write(lastNumber) 2nd snippet Dim connString As New SqlConnection connString.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("sql2008r2_857000_dmcsqlConnectionString").ConnectionString Dim cmd As New SqlCommand("select max(no) from members ", connString) Dim reader As SqlDataReader Dim lastNumber As String Using (connString) …

Member Avatar
+0 forum 0

I have show example merge cell the datagridView but actually deleting the duplicate line (demo: https://stackoverflow.com/questions/16774966/how-to-merge-datagridview-cell-in-winforms), I want after merge cell the text in the middle of the cell as the image file attached to the code write how ? http://www.mediafire.com/view/h005tuc3aawaray/1.PNG/file

Member Avatar
+0 forum 0

Hi there, I want to display images from internal storage into grid view. I have tried this code but i think its for external storage. File file= new File(android.os.Environment.getExternalStorageDirectory(),"image"); Kindly help me I don't have that much experience. Thank you.

Member Avatar
+0 forum 0

Hi guys! I have a problem with login into the system. Everything seem to be fine but it passes an error when i click the login button. Pls help Thank you in advance ////////login.php////// <? /* *********************************************************** **********# Name : Shambhu Prasad Patnaik #***** **********# Company : Aynsoft #********** **********# Copyright (c) www.aynsoft.com 2004 #********** *********************************************************** */ include_once("include_files.php"); include_once("general_functions/password_funcs.php"); include_once(PATH_TO_MAIN_PHYSICAL_LANGUAGE.$language.'/'.FILENAME_JOBSEEKER_LOGIN); include_once(FILENAME_BODY); $jscript_file=PATH_TO_LANGUAGE.$language."/jscript/".'jobseeker_login.js'; $template->set_filenames(array('jobseeker_login' => 'jobseeker_login.htm')); //// Jobseeker auto login starts //////[[Click Here](http://talentwiz.net/jobseeker_login.php)](null) $checked1=false; $encoded_login1=$_COOKIE["autologin1"]; //echo $encoded_login1; if(tep_not_null($encoded_login1)) { $checked1=true; $explode_array=explode("|",decode_string($encoded_login1)); $TREF_email_address1=$explode_array[0]; $TR_password1=$explode_array[1]; } else { $TREF_email_address1=""; $TR_password1=''; } //// Jobseeker auto login ends ////// $action = (isset($_POST['action']) ? $_POST['action'] : …

Member Avatar
+1 forum 0

This the code in products <?php require_once("inc/header.php"); require_once("inc/navbar.php"); /* if user is logged in then only allow the user to view the page */ if (!isset($_SESSION['id'])){ echo "<h1 class='text-center text-upper text-bs-primary'>please login to view your cart <a class='text-black' href='login.php'>Login</a></h1>"; exit(); } else{ $user_id = $_SESSION['id']; } $carts = $db->FetchAll("*","cart","user_id='$user_id' AND active='y'","`id` DESC"); if (empty($carts)) { echo "<h1 class='text-center text-bs-primary text-25 text-upper'>your cart is empty <a class='text-black' href='products.php'>Go Shop</a></h1>"; exit(); } ?> <div class="container padding-10"> <div id="cart-container-main"> <div class="text-center text-20 text-bold" id="cart-message"></div> <table class="table"> <th>Product image</th> <th>Product detail</th> <th>Price</th> <th>Tax</th> <th>Subtotal</th> <th>Remove</th> <tr> <?php $cod= 0; $main_subtotal = 0; $main_shipping_charge = …

Member Avatar
+0 forum 0

Hi, I am working on parsing pdf layers from a pdf file into separate images. It was really hard to find an library that does this and now I am digging into iTextSharp which seems like it's handling layers. public static void CreatePDF( string fileName, string destinationFolder ) { PdfReader reader = new PdfReader( fileName ); PdfDictionary ocProps = reader.Catalog.GetAsDict( PdfName.OCPROPERTIES ); PdfDictionary occd = ocProps.GetAsDict( PdfName.D ); PdfArray order = occd.GetAsArray( PdfName.ORDER ); List<PdfObject> layers = new List<PdfObject>(); for( int i = 0; i < order.Size; i++ ) { layers.Add( order[ i ] ); } for( int i = …

Member Avatar
+0 forum 0

Hi, I am not a mobile app developer but recently studying Cordova/PhoneGap for fun. I just studied FireBase and it was really awesome because it can do lots things without running my own server such as user auth/management, DB, file storage etc. But I am just wondering about the right structure in regards of security. Because we only can use html/javascript/css in Cordova, I am not sure about the right structure to implement. Hackers can always change js codes so hiding contents is not possible. For example, if a user has to purchase coins to watch a video. How can …

Member Avatar
+0 forum 0

I am trying to take a user input from an entry input and display it back to the user in a simpl text widget. I have implementing a label but apparently that's a bad idea for what I desire. Ultimatley, I'd like my gui to look like this: User: Hey Bot: Oh hey there, User: How are you My gui and response code is as follows: #Creating the GUI myText = tk.StringVar() window.resizable(False, False) window.title("Ashley-UDOL Chatbot") window.geometry('400x400') User_Input = tk.Entry(window, textvariable=myText, width=50).place(x=20, y=350) subButton = tk.Button(window, text="Send", command=Response).place(x =350, y=350) displayText = Text(window, height=20, width=40).pack() scroll = Scrollbar(window, command=displayText).pack(side=RIGHT) window.mainloop() …

Member Avatar
+0 forum 0

I'm trying to make SSO like [Yandex](http://yandex.ru/) do. How achive authentication without redirect if user has been already authenticated at another service provider? I am working on SAML, but I could not achieve implementation without a redirect.

Member Avatar
+0 forum 0

The End.