*Hello** This has been a question for a long time / Request for help for a PHP script. A year ago I created a homepage for a friend (online tutoring website) and installed a finished script for an occupancy calendar and did not consider / knew that the server will soon be switching to PHP 7.2. I could already test and adjust the rest of the homepage, but unfortunately I am with my Latin at the end and of course the calendar does not work. The problem is of course the database connection .... mysq under PHP 7.2, which I …

Member Avatar
Member Avatar
+0 forum 1

I have a Dell Inspiron E1705. For some odd reason, my computer will freeze sometime while my wireless radio is on, while I'm at my apartment. I have already ruled out a power, memory, or overheating issue. I reformatted and reinstalled XP, yet it still did it. If I disable the radio, my computer doesn't freeze. Also, it doesn't automatically freeze up as soon as I turn on the radio or connect to my network. Sometimes, it may last for awhile, while other times it may only take a minute or two. Just FYI, I am on the wireless network …

Member Avatar
Member Avatar
+0 forum 32

Hello people, I've been working on a registration form project that needs to contain a captcha code that will be validated. Even if the captcha string inserted in the text box is correct, it displays the error "Captcha string is incorrect". Also, even if the captcha part did not exist, the form doesn't seem to save the data to my sql database. Can anyone please try to help me out or check if you can notice any obivous errors with my code? The following code is the PHP and HTML code used for the registration form <?php session_start(); $_SESSION['captcha'] = …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to create a multicolor table (composed by buttons) where every X seconds a thread change the color of its button. The first thing I did was manage the threads with a semaphore, but then I realized that maybe it wasn't necessary since I want that each button changes its color independently from the others. This is my code: public class Thread_ES2 extends Application implements Runnable { private Button[] btn = new Button[4]; private Semaphore sem = new Semaphore(1); public void run() { //while (true) { try { //sem.acquire(); if (Thread.currentThread().getId() % 4 == 0) { btn[0].setStyle("-fx-background-color: #FF7F50"); Thread.sleep(2000); …

Member Avatar
Member Avatar
+0 forum 1

**hey guys, im trying to get this program done for class. this is the assignment:** For this assignment, you will write a program that uses a method called displayMenu to display a menu like the following: Enter 1 to convert a string to uppercase Enter 2 to convert a string to lowercase Enter 3 to count the number of words in a string Enter 4 to count the number of vowels in a string Enter 5 to exit After the user enters their choice, ask them to enter the string. Call the variable user_string, and use the len() method to …

Member Avatar
Member Avatar
+0 forum 1

In Microsoft c# Visual Studio I am using XPathNavigator to read and manipulate an XML data set.  The exception that is thrown is very descriptive in pinpointing the problem with the XML file that is read.  There is one text field that exceeds the limit of what is allowed for a string length.  And so, I want to know what that limit is.  Also, I am open to suggestions on how I can programmatically parse out the xml file before hand or during the process.Here is the call stack, in case there is any doubt:       at System.Xml.XmlTextReaderImpl.Throw(Exception e)       at System.Xml.XmlTextReaderImpl.Throw(String …

Member Avatar
Member Avatar
+0 forum 1

$string="City" $consonants=array("B","b","C","c","D","d","F","f","G","g","H","h","J","j","K","k","L","l","M","m","N","n", "P","p","Q","q","R","r","S","s","T","t","V","v","W","w","X","x","Y","y","Z","z"); foreach($consonants as $chk2) { if(strpos($string,$chk2)!= false) { $ans2[]=$chk2; } } if(isset($ans2)) { $comment2="Consonants in this string: ".join(" ",$ans2); } else { $comment2="Consonants in this string: None"; } echo "".$comment2."<br/>"; so the error is that the displayed consonants does not include the first letter. what could be wrong?

Member Avatar
Member Avatar
+0 forum 3

SELECT SUM([BTL].dbo.OrderTable.Quantity) AS 'Totalquentity',Count(BTL.dbo.OrderTable.OrderID) as TotalOrder FROM [BTL].dbo.OrderTable JOIN [BTL].dbo.Products ON [BTL].dbo.OrderTable.ProductID=[BTL].dbo.Products.ProductID Left JOIN [BTL].dbo.Brand ON [BTL].dbo.Products.BrandID=[BTL].dbo.Brand.BrandID WHERE [BTL].dbo.OrderTable.EmployeeID='1' Group by [BTL].dbo.Brand.BrandName,[BTL].dbo.Brand.BrandID" I Want to get avg

Member Avatar
Member Avatar
+0 forum 2

Hello All, I have an issue with Windows 7: sometime the copy paste doesn't work and when this issue appear => the only way to remove it is by rebooting my pc. The copy paste doesn't work (wether using using [Ctrl]+[C], [Ctrl]+[V] or by context menu (right-click menu)) for all the applications (notepad, word, eclipse, outlook, skype). And also I'm unable to copy folders and files from one location to another ! I have tried everything but none of the below solutions solved my problem: 1. sfc /scannow 2. msconfig : Go to Startup, disable everything but windows services 3. …

Member Avatar
Member Avatar
+0 forum 1

Hi! My name is Jung and I'm new to VBNET I have already tried many ways to write codes for "btnSearch" but seems like nothing works.. I really need help for this as the deadline is around the corner :'( Below are my codes for Search button.. ![btnsearch.PNG](/attachments/large/4/76be068c625e23d9a57e969a97509bee.PNG "align-center")

Member Avatar
Member Avatar
+0 forum 2

hello sir how can I get my system short date format in a label in vb. net. I try this code : Label1.Text = System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern() but show wrong data. all time show "M/d/yyyy" format. I change it(to "dd/MM/yyyy") manually and by coding result is same("M/d/yyyy") please help me..... For Change the Format: Microsoft.Win32.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\International", "sShortDate", "dd/MM/yyyy")

Member Avatar
Member Avatar
+1 forum 3

Take a closer look at some common misconceptions that prevent hiring managers from even considering a DevOps consultant. Great Article "https://medium.com/prodopsio/devops-consultant-vs-devops-employee-69fd011455fe" --> https://medium.com/prodopsio/devops-consultant-vs-devops-employee-69fd011455fe

Member Avatar
Member Avatar
+0 forum 1

Hello, all. I am trying to calculate entropy, and I cannot get the calculations correct, or match the results with the assigned if-statements. I get a number that differentiates a bit from the answer that I want. So far, this is my code: #include <iostream> using namespace std; float Entropy(float z, float z1, float e1, float z0, float e0){ float e; e= e0 + (e1-e0)*((z-z0)/(z1-z0)); return e; } int main() { float z,e,z1,e1,z0,e0; cout << "Enter temp between 150 - 500: "; cin >> z; if(z==150){ e=7.2810; } else if(z==200){ e=7.5081; } else if(z==250){ e=7.7710; } else if(z==300){ e=7.8941; } …

Member Avatar
Member Avatar
+0 forum 4

<body class="bg-dark"> <div class="container"> <div class="card card-login mx-auto mt-5"> <div class="card-header">Change Password</div> <div class="card-body"> <form method="post" action="change-password.php"> <div class="form-group"> <label for="username">Username</label> <input class="form-control" id="username" type="text" name="username" aria-describedby="nameHelp" placeholder="Enter username" required> </div> <div class="form-group"> <label for="New Password">New Password</label> <input class="form-control" id="newpass" type="text" name="newpass" placeholder="Enter new password" required> </div> <div class="form-group"> <label for="Confirm Password">Confirm Password</label> <input class="form-control" id="confpass" type="text" name="confpass" placeholder="Enter confirm password" required> </div> <div class="form-group"> <div class="form-check"> <label class="form-check-label"> <input class="form-check-input" type="checkbox"> Remember Password</label> </div> </div> <div class="form-group"> <button type="submit" name="submit" class="btn">Submit</button> <br> </div> </form> <div class="text-center"> <a class="d-block small mt-3" href="login.php">Login</a> </div> </div> </div> </div> <?php $con=mysqli_connect("localhost","root","","goods_management_system") or die(mysqli_error()); …

Member Avatar
Member Avatar
+0 forum 4

Hi all, I'm trying to make a Facebook login for a website, which also stores users' data who log in. In order to do this, I do have an index.php <script> // This is called with the results from from FB.getLoginStatus(). function statusChangeCallback(response) { console.log('statusChangeCallback'); console.log(response); // The response object is returned with a status field that lets the // app know the current login status of the person. // Full docs on the response object can be found in the documentation // for FB.getLoginStatus(). if (response.status === 'connected') { var accessToken = response.authResponse.accessToken; // Logged into your app and …

Member Avatar
Member Avatar
+0 forum 2

Hi, I have a question and this is the scenario: 1) Singapore has 192.168.0.X 2) China has 192.168.0.X 3) We need to map Singapore's network drive from China. Can I please have some alternatives?

Member Avatar
Member Avatar
+0 forum 1

So I was roaming around my computer, trying to merge my D and C drive since C drive is the main drive and D drive isn't, the D drive had 8 times as much space as the C drive so I wanted to merge them I went into disk settings and wiped the disk without knowing what it did Now I can't recover it because it doesn't show up in explorer or disk manager Please help

Member Avatar
Member Avatar
+0 forum 3

Why Everytime After Few Days Google Hindi Input Setup Currupt Or Not Work In Hindi Fonts. I Facing This Issue Again & Again Same Day. Please Any Idea For Reinstall Google Input because I M Install again not install successfully. generate errors already installed.

Member Avatar
Member Avatar
+0 forum 2

Hi, I have one doubt. I did creat a new software from vb 6.0. Database management system. I am using MS access database. that is saved and connectivity in my C drive. And I did out put the exe file. What i need na, i did install this software one of my computer and another one computer ( 2 systems). But when i am use that software from 2nd computer then the data need to save first computer(But i am using Access database connection path is my first computer). how can i solve this. pls help

Member Avatar
Member Avatar
+0 forum 3

The Code was made in notepad++ and made intoa .batch file. I want to add more questions but find it difficult. can some help @echo off title game :menu echo 1) start echo 2) intro echo 3) exit set /p menu= if %menu% == 1 goto game if %menu% == 2 goto help if %menu% == 3 exit :help cls echo hit the correct answer and press enter. pause :game echo what is your name? set /p name= echo hello %name%! pause cls echo who was the first president of the USA? echo 1) George Washington echo 2) Pierre Desperau …

Member Avatar
Member Avatar
+0 forum 1

Hey, I'm new to this forum so please be considerate if I did not pay attention to anything. I'm writing a program for my dad. The program should store maintenance contracts in a database and be controllable via a GUI. I have the GUI ready and the database is created. Now I'm trying to show the entries of the database in a JTextArea - but I fail miserably. Have already found out that I probably need a "SwingWorker", but even after video tutorials I have not the slightest idea how it works. I have 3 classes: Gui, Window and DBConnect …

Member Avatar
Member Avatar
-1 forum 2

Hi! I have encountered a small issue when attempting to create getters and setters in C#. I've been following along a course in unity and tried to replicate what the tutor had written in his C# scripts. As far as I can tell, everything is spot on and I can't seem to find what's causing the error -- Visual Studio suggests adding semi-colons after the 'get' and 'set' keywords, but I don't think that's correct course of action. Here is a snippet of the code that causes the error. Perhaps someone could explain to me what I'm doing wrong and …

Member Avatar
Member Avatar
+0 forum 3

thank u for helping

Member Avatar
Member Avatar
+0 forum 1

Hey how do you install pyHook with pip? pip installs everything for me but pyHook, when trying to install pyHook it says: Could not find a version that satisfies the requirement pyhook (from versions: ) No matching distribution found for pyhook How can i fix this? i have got windows 10 and a 64 bit pc with python 3.6.3 and this pyHook: pyHook-1.5.1-cp36-cp36m-win_amd64 Thanks for helping

Member Avatar
Member Avatar
+0 forum 1

I use below code to backup mySQL database. I want to save sql database by save file dialog. I use this, Sub CreateBackupc() Dim mysqldumpPath As String = "C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin\mysqldump.exe" Dim host As String = "localhost" Dim user As String = "root" Dim pswd As String = "mysql" Dim dbnm As String = "mcs" Dim cmd As String = String.Format("-h{0} -u{1} -p{2} {3}", host, user, pswd, dbnm) SaveFileDialog1.Filter = "SQL Files (*.sql*)|*.sql" If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK _ Then My.Computer.FileSystem.WriteAllText _ (SaveFileDialog1.FileName, "mcs.sql", True) Dim startInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo() startInfo.FileName = mysqldumpPath startInfo.Arguments = cmd startInfo.RedirectStandardError …

Member Avatar
Member Avatar
+0 forum 6

This is my custom module: [CODE]class Player(object): def __init__(self, name, score = 0): self.name = name self.score = score def __str__(self): rep = self.name + ":\t" + str(self.score) return rep def ask_yes_no(self, question): response = None while response not in ("y", "n"): response = input(question).lower() return response def ask_number(self, question, low, high): response = None while response not in range (low, high): response = int(input(question)) return response[/CODE] The program: [CODE]import games, random print "Welcome to the world's simplest game!\n" again = None while again != "n": players = [] num = games.ask_number(question = "How many players? (2-5): ", low = …

Member Avatar
Member Avatar
+0 forum 10

Hi Friends i am trying to isert this data to mysql database. However I cannot get this done because I do not know what is happening. I would appreciate any help. This is the code <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <div id="wrapper"> <div class="box-header"> <h2>NEW USER</h2> </div> <form action="" method="post"> <legend>information</legend> <fieldset style="float: left; width: 40%"> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-user"></i> </div> <input type="text" name="name"/> </div> <div class="input-group"> </div> <input type="text" name="f_name"/> </div> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-phone"></i> </div> <input type="number" name="phone_no" class="form-control"/> </div> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-flag"></i> …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am testing a Tcp client C# windows form application I am able to send data to Tcp server Software(Hercules 3.2.8) But when i sent data from Tcp server to windows form then i am getting the following error: System.InvalidOperationException: Cross-Thread operation not valid: Control 'MessageList' accessed from a thread other than the threa it was control on. at System.Windows.Forms.ListBox.ObjectCollection.Add(Object item) at WindowsFormsAppication1.Form1.MessageCallBack(IAsyncResult ar) in From1.cs:line 55 Line 44 is at Messagelist.items.Add(response); public partial class Form1 : Form { Socket sck; EndPoint remoteEp; byte[] buffer; IPAddress ip = IPAddress.Parse("192.168.42.143"); int port = 8061; public Form1() { InitializeComponent(); } private …

Member Avatar
Member Avatar
+0 forum 1

Hello Guys, So im a student at 12 grade and im trying to build a website from scratch and i've been successfull until now, i've been stuck in this error for 2 or 3 days, i cant send the text area + other input to database at the same type and when i do it goes in separate ways example in 1st print. <textarea name="txtDesc" row = "50" cols = "50" id="txtDesc"></textarea> <?php if(isset($_POST['formSubmit'])) { $con = mysql_connect ('localhost','usename','password') or die(mysql_error()); mysql_select_db('database') or die(mysql_error()); $desc = ($_POST['txtDesc']); $sql = "INSERT INTO registo_anomalias (`desc`)"."VALUES('$desc')"; $result = mysql_query($sql) or die(mysql_error()); } ?> …

Member Avatar
Member Avatar
+0 forum 1

So, i'm working on a layout that has to be in xhtml.. i changed the extension from html > xhtml and i got this prompt.. "This page contains the following errors: error on line 15 at column 8: Opening and ending tag mismatch: link line 0 and head Below is a rendering of the page up to the first error" <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="fonts.css"> <link rel="stylesheet" href="normalize.min.css"> <link rel="stylesheet" href="main.css"> </head> <body> <section> <header> <!-- TOP SECTION OF THE LETTER --> <div id="name-address-from"> …

Member Avatar
Member Avatar
+0 forum 2

The End.