Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming

I have two tables in a database. The first table includes…

Customer Question
I have two tables...

I have two tables in a database. The first table includes customer information including the campaign they came in on. The second includes info on the campaigns. For example, it has a column called "Category" that tells me the category or the campaign - search engine, for example. They have a column for the campaign name in common.

Technician's Assistant: Is there a specific language you're coding in?

I am coding in PHP querying a mysql database. The problem I have is I want to run queries where I say, add up the sales (which is in the customer info table) based on, for example, the categories that are in the second database.

Technician's Assistant: Anything else you want the programmer to know before I connect you?

I am getting an error:Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/bloginkg/public_html/stats/join2.php on line 31

Submitted: 1 month ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Answered in 9 minutes by:
1/5/2018
Programmer: George Sibiya, Computer Hardware Engineer replied 1 month ago
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 264
Experience: PhD in Computer Science
Verified

Hi,

Welcome to JustAnswer and thank you for utilising our services

I am looking at your code and will post back shortly.

Regards,

G

Ask Your Own Programming Question
Programmer: George Sibiya, Computer Hardware Engineer replied 1 month ago

Please try with mysqli as follows in PHP7:

$db = mysqli_connect($host, $username, $pass, $database);
$query = "SELECT York-Main.TotalSales FROM ...";
$result = mysqli_query($db,$query);

while($row = mysqli_fetch_assoc($result)) {

}

Ask Your Own Programming Question
Was this answer helpful?
Ask George Sibiya Your Own Question
George Sibiya
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 264
264 Satisfied Customers
Experience: PhD in Computer Science

George Sibiya is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,131 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

800 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
Create a program (AccountTest.java) that creates two Account
Create a program (AccountTest.java) that creates two Account objects and validate the methods of the class Account. (Call the methods passing the appropriate values to make sure they produce the expec… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
I'm having an issue with understanding how to convert into
I'm having an issue with understanding how to convert into IJVM. I have an assignment due for my class but it's still not clear to me what to do. The assignment is k=L+j; if (k==4) L=16; else j=j-2 … read more
Chris Baxter
Chris Baxter
28 satisfied customers
I built a website that displays workplace safety phrases for
I built a website that displays workplace safety phrases for an employee safety game that is viewed and played through out the week. So there are 3 new phrases every week. The changing content has already been created. I need to have the safety phrase content automatically change based on the example. Example: Monday: Safety phrase #1 Tuesday: Safety phrase #1 Wednesday: Safety phrase #2 Thursday: Safety phrase #2 Friday: Safety phrase #3 Saturday: Safety phrase #3 Sunday: Safety phrase #3 … read more
Jinsmn
Jinsmn
Systems Administrator
Diplom
1,260 satisfied customers
I'm having trouble working in excel on my ipad. 2-3 years
I'm having trouble working in excel on my ipad JA: When did you last update Excel? Customer: 2-3 years ago JA: What have you tried so far with your Excel? Customer: Just open document that was sent JA… read more
Kris R
Kris R
IT Manager
Computing
3,158 satisfied customers
Keep getting the error that the sharepoint spreadsheet "The
Keep getting the error that the sharepoint spreadsheet "The file is corrupt and cannot be opened." … read more
D.Sandlin
D.Sandlin
Support Technician
6,708 satisfied customers
I need help to learn C++ Live or die. How much does it
hello JA: Hi. How can I help? Customer: i need help to learn C++ JA: What's your objective for this C++ project? Customer: live or die JA: Anything else you want the programmer to know before I connec… read more
Aitizaz
Aitizaz
Software Engineer
Bachelor\u0027s Degree
163 satisfied customers
I can't get to my dashboard bluehost the wordpress log in
i can't get to my dashboard bluehost the wordpress log in doesn't get me to my dashboard … read more
Jinsmn
Jinsmn
Systems Administrator
Diplom
1,260 satisfied customers
I need some assistance with creating some formulas in excel.
I need some assistance with creating some formulas in excel … read more
Snake756
Snake756
6 satisfied customers
I'm trying to write VBA code to capture data from a pdf
I'm trying to write VBA code to capture data from a pdf file. … read more
Chris Baxter
Chris Baxter
28 satisfied customers
I don't seem to able to change my location in my profile.
Hi. I don't seem to able to change my location in my profile … read more
Chris Baxter
Chris Baxter
28 satisfied customers
I need a pseudocode flowchart and java code. Problem
Problem Statement:A painting company has determined that for every 115 square feet of wall space, one gallon of paint and 8 hours of labor will be required. The company charges $20.00 per hour for labor. Design a modular program that asks the user to enter the number of square feet of wall space to be painted and the price of paint per gallon. The program should display the following data:The number of gallons of paint required The hours of labor required The cost of the paint The labor charges The total cost of the paint job … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,131 satisfied customers
Having issues with IIS 7.5 and PHP 5.2.6 .Net 4 in Windows
Having issues with IIS 7.5 and PHP 5.2.6 .Net 4 in Windows 2008 R2 environment: "Unable to place a FastCGI process in a JobObject. Try disabling the Application Pool CPU Limit featur … read more
Chris Baxter
Chris Baxter
28 satisfied customers
I want the answer to the programming question on this post.
Hi I want the answer to the programming question on this post … read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
I need help coding in MIPS. MIPS (assembly language) I have
i have a general layout and most of it down, if it can be finished in the next 2-3ish hours … read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
I would like help copying a website with a new theme so i
Hello again. I would like help copying a website with a new theme so i may practice with various themes.Not sure your working hours but if you reply I will try to be available or let you know when. Yo… read more
Aitizaz
Aitizaz
Software Engineer
Bachelor\u0027s Degree
163 satisfied customers
Need assitance with some SUMIFS ranking some itesm by
need assitance with some SUMIFS ranking some itesm by criteria and then findingaverage of 3,4,5 & 6,7,8 in the ranks for given criteria and displaying in a new cell. have document etc. … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I have an assignment due in 5 hours, and i don't have the
I have an assignment due in 5 hours, and i don't have the coding skills to finish it that fast. can you help? … read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
I found a dating website cookie on my husband's computer
I found a dating website cookie on my husband's computer which shows it is a unto direct cookie. He says he never visited that website. I think he has. What is the truth? … read more
Jason Jones
Jason Jones
AAS Information Technology
6,321 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x