Member Avatar

Hi all. I am having one chat script which I used for my site. It was working fine with mysql database. Then after updated PHP 7 with mysqli then suddenly stopped for working. I need to make the code work with PHP 7 + mysqli. Please help me it was very important. Thank you <?php define ('DBPATH','localhost'); define ('DBUSER','root'); define ('DBPASS','password'); define ('DBNAME','chat'); session_start(); global $dbh; $dbh = mysql_connect(DBPATH,DBUSER,DBPASS); mysql_selectdb(DBNAME,$dbh); if ($_GET['action'] == "chatheartbeat") { chatHeartbeat(); } if ($_GET['action'] == "sendchat") { sendChat(); } if ($_GET['action'] == "closechat") { closeChat(); } if ($_GET['action'] == "startchatsession") { startChatSession(); } if (!isset($_SESSION['chatHistory'])) …

Member Avatar
0
206
Member Avatar

Here's the screen grab: ![50yearsAgoOnDaniweb.PNG](https://static.daniweb.com/attachments/1/9fb4572ed18ebec0e88c9822adaa0152.PNG) Here's the link to the 50 years ago reply: https://www.daniweb.com/posts/jump/ (doesn't work) Here's the link to the discussion: https://www.daniweb.com/programming/software-development/threads/523223/im-having-a-difficulty-in-a-program-in-c-net-framework Something happened. Don't know but interesting bug there.

Member Avatar
0
48
Member Avatar

https://www.daniweb.com/members/1186328/lacy-3 shows 0 contributions but you click through and they have made some posts.

Member Avatar
0
47
Member Avatar

https://www.daniweb.com/articles/latest shows me this a duplicate of my recent post. Ouch. The ability to share images looks broken too!

Member Avatar
0
62
Member Avatar

Just now when I crafted an answer then clicked Post Reply the button dimmed and it's just sitting there. Gave it a few minutes but there it sits. While I've found I can copy out what I wrote, tap F5 then try again it's not something others may bother with. How can I help narrow down what this annoying doesn't happen often is? The reply was to https://www.daniweb.com/programming/threads/523158/mastermind-game-in-java but I doubt it has to do with that thread. My only thought here is it's almost always when I've just opened the browser (Opera, Firefox and Chrome) to https://www.daniweb.com/articles/latest , clicked …

Member Avatar
0
39
Member Avatar

I started my previous question with the title "Filter by" . I typed my question, clicked go to the next step. After that I clicked "Free" and only after that I got turned back to my question indicating that the title was too short. Shouldn't it say that before continuing to the next step?

Member Avatar
0
303
Member Avatar

I just updated my professional networking profile. The skills and interests textbox was prefilled with php, mysql, javascript, web-design and asp.net presumably from my post history. I've updated this to c#, .net and sql. This is visible in my profile page. When I go back to edit my professional networking profile, then the skills and interests textbox is again prefilled with php, mysql, javascript, web-design and asp.net.

Member Avatar
0
371
Member Avatar

Write an algorithm and draw a flowchart that determine whether a student has passed or failed. Add the student CA,mid semester test and exam score. addition of score should not be more than 100.the pass mark should be 60

Member Avatar
0
231
Member Avatar

I think MS is getting a bit shifty in how it coerces you to have an MS account. It's finding more and more ways to get you on the inside. One example of many...Diagnostics collected about your device and how you use it. By default,this diagnostics collecting is turned on. When you discover this, information has already been collected about you. You opt to turn off this collecting. MS tells you that you can view the collected data by turning on the Diagnostics Data Viewer. When you click on this option, you are told you will need a new app …

Member Avatar
0
165
Member Avatar

I am being over-notified. I started a new thread to tell the community that "Active State Komodo IDE Now Free". I got four emails telling me I had started a new thread. ![2020-01-28_195028.jpg](/attachments/large/3/6fdb5bf030ef90f384ae5e5dd5e221df.jpg) pritaeas endorsed me in - web development - hardware and software - computer science I received 5, 4, and 4 emails respectively telling me this. ![2020-01-28_195016.jpg](/attachments/large/3/100aec95daf06c88f561b1cc9520d1e4.jpg)

Member Avatar
1
1,037
Member Avatar

Long Title: "Here are some top topics recommended just for you" email recommends a thread deleted two months ago. "what are the feature of window 10" was in my email and that looks to have been removed two months ago. As a moderator I can get to it but is the code behind this in need of a little update to not recommend content that was removed? What about folk that don't have this superpower? I'll forward this email back to you via email with comment. In short: 1. Received email from DW on 11/20/2019. 2. Thought I'd read an …

Member Avatar
2
1,192
Member Avatar

Is anyone still encountering the problem of posts not going through?

Member Avatar
1
2,045
Member Avatar

When clicking on commenting icon thats attached to post with quotation of other post, new window pops up letting us comment on tthe quoted post, not the post thats an answer to quoted post. Shouldnt be like this.

Member Avatar
1
1,125
Member Avatar

i am Ayomide Onabajo, i am a php web developer, with knack for building web and application software.. my languages are : laravel, codeigniter, bootstap , javascript and the basic UI design etc i am happy to join the community of developers .

Member Avatar
0
187
Member Avatar

The Forgot Password process sends an email with a link to click. The email purports that the link resets the password to one specified in the email. The link logs me in, and takes me to the User Settings page. I can enter a new password no problem. I put the password from the email in the current password box. Something appears to be broken here. -Mike

Member Avatar
0
438
Member Avatar

# python 3.7 # Hey im very new to programming and just made my first program. My goal is to have a program that checks user name and pass with a few other tricks as you should see in the program. unfortunatly the feature after login is having some trouble. It is supposed to check the input and see if its in the range and give some feedback but it just isnt working right. i would appresheat it if yall could take a look. P.S. i apolagize for my spelling never been one of my strong suits.

Member Avatar
0
1,114
Member Avatar

I have it set to Daily Digest yet I get near instant alerts on posts I am watching. Maybe broke, or it's just me.

Member Avatar
0
2,264
Member Avatar

Recently I realized that I not receive any email notification from DaniWeb. When I check on the User Settings, I saw this alert message > We have been having problems emailing you. Has your email address changed? Please update your email address to begin receiving email from us again. After I re-write my email, this message changed to > An email to verify your account has been sent to xxx@hotmail.com. Please click the link in the email to confirm your email address. But when I check my mail, I don't receive any email from DaniWeb.

Member Avatar
1
3,565
Member Avatar

//With this method, I input a string and return an array that contains a sorted list of characters as per the frequency. Eg: If i input "apple", the out put should be p,a,l,e, How do I do this? public static ArrayList<Character> characterFreqDist(String statement) { char[] Array = statement.toCharArray(); int length = Array.length; int most_frequent_count = 0; char most_freq_character = '\0'; char[] Final_Array = new char[length]; ArrayList<Character> Sorted_Array = new ArrayList<Character>(); for(int loop = 0 ; loop<length ; loop++) { most_freq_character = '\0'; most_frequent_count = 0; for(int i = 0; i<length ; i++) { char single_character = Array[i] ; int counter …

Member Avatar
0
2,828
Member Avatar

/** This code is supposed to take the user input of the length and breadth of the room in one class, get the user input of the material and cost from the other class and calculate the total cost.*/ import java.util.Scanner; //My first class class RoomFlooring { private String FloorMaterial; private double material_cost = 0; public void setFloorMaterial(String FloorMaterial) { System.out.print('\u000C'); // Choosing the floor material Scanner Floor = new Scanner(System.in); System.out.println("Choose your floor material: FancyTile or NormalTile: "); FloorMaterial = Floor.nextLine(); } public String getFloorMaterial() { return FloorMaterial; } // determining the cost according to the floor materials public …

Member Avatar
0
680
Member Avatar

import java.util.Scanner; class Room_Dimension { private double length; private double width; public Room_Dimension(double length, double width) { this.length = length; this.width = width; } public void setLength(double length) { this.length = length; } public void setWidth(double width) { this.width = width; } public double getLength() { return length; } public double getWidth() { return width; } public Room_Dimension(Room_Dimension roomDimensions) { this.length = roomDimensions.getLength(); this.width = roomDimensions.getWidth(); } public double getArea() { return length * width; } } class Room_Flooring { private String floorMaterial; private Room_Dimension roomDimensions; private double cost_of_material; public Room_Flooring(Room_Dimension roomDimensions, String floorMaterial) { this.roomDimensions = roomDimensions; this.floorMaterial = …

Member Avatar
0
546
Member Avatar

Plz Help Me to Solve this Error.. I am coding this to build a Calcuator in Vb.net....i have declared "b" as a Button.. how to resolve this error.. plz help.. ![error.jpg](/attachments/large/4/bc99a90be607e68a81a81b5b7eed68b2.jpg)

Member Avatar
0
255
Member Avatar

First how this happened. The Nissan Leaf from about 2011 to mid 2015 on the SV and SL models included Telematics. Telematics in thse models let the owner use a web site or smart phone app to query battery status, start or stop charging and turn on/off the climate control as well as get performance statistics. After years of warnings from AT&T that the 2G cellular network was going to shut down, AT&T did the shutdown in January 2017. This caused a lot of troubles in the M2M and Telematics space or business. Nissan responded by offering a (discounted?) upgrade …

Member Avatar
0
1,994
Member Avatar

A couple of days ago MS 10 Photos stopped functioning correctly. The first sign of this malfunction began several weeks ago when it started taking a vey long time to open and now I cannot scroll through photos backwards and forwards: there are no longer arrow indicators either side of the photo . I have tried reinstalling Photo: no improvement. The only thing that works is to group photos together and then right click one: then the scrolling arrows reappear and I can scroll. But this is not how it was previously. Of course, I could do a system restore …

0
382
Member Avatar

Example: https://www.daniweb.com/programming/web-development/threads/518292/problem-in-php-showing-undefined-index-and-not-inserted-in-my-datasbase Click on one image and I get two tabs with the same image on both tabs. That's odd.

Member Avatar
0
2,095
Member Avatar

My geo-location was being displayed as Cambridge (I returned from there on Monday) so I told daniweb to update, which it did, except it now reported me as `Winnipeg, Manitoba - 3,897 miles away`. What am I 3,897 miles away from? Then, when I click on `Member Connect` it says (for example) that I am 46 miles away from aravindc (London, England) so I'm assuming that even though I did the update, part of daniweb still thinks I am in jolly old.

Member Avatar
1
1,657
Member Avatar

I'm at https://www.daniweb.com/articles/latest/unanswered and when I mouse over the poster's gravatar or icon, all pop up with "First Post by" and the menber name. OK, that's all well and good but then I was curious to see all the posts were "First Post by". Even one by me! This is a truly minor bug but may as well log it.

Member Avatar
0
991
Member Avatar

As title suggest, full screen edit happened in one of my replies. Could not exit with escape. Had to abandon the reply. Trying to replicate now.

Member Avatar
0
687
Member Avatar

If you visit the Member Search page, the hamburger navigation menu top left is missing. You have to go back to the home page instead. Is this intentional?

Member Avatar
0
753
Member Avatar

public class Gradesv2 { public static void main(String[ ] args) { //local variables int numTests = 0; //counts number of tests int testgGrades = 0; //individual test grade int totalPoints = 0; //total points for all test double average = 0.0; //average grade int test1 = 95; int test2 = 73; int test3 = 91; int test4 = 82; System.out.println(""); System.out.println("Test # 1 Test Grade: " + test1 + " Total Points: " + test1 + " = " + totalPoints + "Average Score: " + test1 = +); }//end of main method }//end of class

Member Avatar
0
529

The End.