256 Kilobytes

Web Development Answers > Programming

Type AnswersAsk and answer questions, if that is something that you want to do. Category Web DevelopmentContent about developing websites, web applications, and other similar projects. Tag Programming

Profile Photo - Some Guy

How do I solve "Cannot use object of type stdclass as array"?

Answers in Server-Side | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:40:02 -0800

Profile Photo - Univa

Last Reply When we use json_decode();, we get an object of type stdClass as return type.  1. Cast the object to array. This can be achieved as follows.... Univa,

When we use json_decode()...

Wed, 08 May 2019 08:38:04 -0700 6 months ago
🗨
1
🐏
0
👁
245
Profile Photo - Some Guy

How to fix "Every derived table must have its own alias"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:40:15 -0800

Profile Photo - Univa

Last Reply Imagine a table called purchases that records purchases made by customers at stores, i.e., it's a many to many, and the software needs to know which c... Univa,

Imagine a table called pu...

Sun, 05 May 2019 03:27:34 -0700 6 months ago
🗨
1
🐏
0
👁
232
Profile Photo - Some Guy

How to fix "Operand should contain 1 column(s)"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:41:02 -0800

Profile Photo - Univa

Last Reply This error can occur if you accidentally use commas instead of AND in the ON clause of a JOIN. FOR EXAMPLE: JOIN joined_table ON (joined_table.c... Univa,

This error can occur if y...

Thu, 18 Apr 2019 07:57:10 -0700 6 months ago
🗨
1
🐏
0
👁
197
Profile Photo - Some Guy

What do I do "Access denied for user 'root'@'localhost'"? Help needed

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:43:10 -0800

Profile Photo - Univa

Last Reply Try out the following steps to overcome this issue: Find mysql related entries from system sudo find / -name mysql Remove all mysql related en... Univa,

Try out the following ste...

Fri, 12 Apr 2019 11:34:06 -0700 7 months ago
🗨
1
🐏
0
👁
236
Profile Photo - Some Guy

Taberror: inconsistent use of tabs and spaces in indentation?

Answers in Web Development | By Some Guy

Published 9 months agoWed, 06 Feb 2019 14:15:21 -0800

Profile Photo - roxblade

Last Reply Simply replace all tabs with 4 spaces. Use the Find and Replace feature. Use a better text editor if yours doesn't support Find and Replace. Do not us... roxblade,

Simply replace all tabs w...

Sat, 23 Feb 2019 11:21:54 -0800 8 months ago
🗨
1
🐏
0
👁
184
Profile Photo - Some Guy

Choosing Bloc vs Thinkful?

Answers in Web Development | By Some Guy

Published 9 months agoWed, 06 Feb 2019 14:10:40 -0800

Profile Photo - roxblade

Last Reply I was really relieved to know that they had a full dissertation type report on CourseReport on this very topic when I had to know which one was better... roxblade,

I was really relieved to...

Thu, 21 Feb 2019 04:37:13 -0800 8 months ago
🗨
1
🐏
0
👁
152
Profile Photo - Some Guy

How to set Notepad++ to be the default text editor?

Answers in Web Development | By Some Guy

Published 9 months agoWed, 06 Feb 2019 15:47:29 -0800

Profile Photo - roxblade

Last Reply Right-click any text file and choose Open with... Now click on the little checkbox in the bottom that says "Always use this to open ... files" and cho... roxblade,

Right-click any text file...

Sat, 16 Feb 2019 11:12:40 -0800 9 months ago
🗨
1
🐏
0
👁
193
Profile Photo - Some Guy

Solve "trying to get property of non-object"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:43:24 -0800

Profile Photo - Hash Brown

Last Reply You're probably trying to get the value from an array with object syntax. Most database data is handled in arrays, not objects. If you are d... Hash Brown,

You're probably tryin...

Sun, 20 Jan 2019 18:29:51 -0800 9 months ago
🗨
1
🐏
0
👁
227
Profile Photo - Some Guy

How to fix "Currently unable to handle this request HTTP error 500"?

Answers in Server-Side | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:39:12 -0800

Profile Photo - Hash Brown

Last Reply HTTP 500 errors are nortorious for being a bitch to fix. The code signals a server error where it couldn't be more specific in what went wron... Hash Brown,

HTTP 500 errors are norto...

Mon, 14 Jan 2019 16:10:07 -0800 10 months ago
🗨
1
🐏
0
👁
200
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply If you are getting this error while connected to a remote terminal via SSH (such as to a web host), there may be a non-root account that you are meant... August R. Garcia,

If you are getting this e...

Sat, 22 Dec 2018 08:22:52 -0800 10 months ago
🗨
1
🐏
0
👁
164
Profile Photo - Some Guy

Solve "Column count doesn't match value count at row 1"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:40:57 -0800

Profile Photo - August R. Garcia

Last Reply This error can occur if you are missing If your insert statement does not specify the number of columns correct. Example of incorrect statement:... August R. Garcia,

This error can occur if y...

Thu, 20 Dec 2018 01:18:24 -0800 10 months ago
🗨
1
🐏
0
👁
167
Profile Photo - Some Guy

How do I fix "Invalid argument supplied for foreach()"?

Answers in Server-Side | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:29:36 -0800 | Last update 10 months agoWed, 19 Dec 2018 08:43:16 -0800

Profile Photo - Hash Brown

Last Reply Hello, You need to use count() and is_array() to make sure your data is actually an array and it's not empty. The submit value is causing th... Hash Brown,

Hello,

Wed, 19 Dec 2018 08:46:44 -0800 10 months ago
🗨
1
🐏
0
👁
138
Profile Photo - Some Guy

ORA-00979: not a group by expression - solutions?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:28:35 -0800

Profile Photo - Hash Brown

Last Reply Hello, ORA-009779 is a fairly straight forward error. You have not included any code so I'll have to explain what it's likely to be... I... Hash Brown,

Hello,

Wed, 19 Dec 2018 08:36:33 -0800 10 months ago
🗨
1
🐏
0
👁
168
Profile Photo - Some Guy

How to fix "unknown 'column name' in 'field list'"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:27:33 -0800 | Last update 10 months agoWed, 19 Dec 2018 08:22:09 -0800

Profile Photo - Hash Brown

Last Reply Hello, This is really easy, the column name you have refferenced (rabbit_name) does not exist. Check the spelling, or add the column to the tabl... Hash Brown,

Hello,

Wed, 19 Dec 2018 08:22:55 -0800 10 months ago
🗨
1
🐏
0
👁
156
Profile Photo - Some Guy

What is "mysqli_fetch_assoc"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:26:40 -0800

Profile Photo - Hash Brown

Last Reply Hello, Firstly and most importantly, mysqli is dead. It's very easy to mess up and ship code with security issues. You should look at PDO (PHP... Hash Brown,

Hello,

Wed, 19 Dec 2018 08:19:40 -0800 10 months ago
🗨
1
🐏
0
👁
159
Profile Photo - Some Guy

Differences between primary keys and unique keys?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:43:12 -0800

Profile Photo - Some Guy

For my new job, I need to use SQL but I&...

MoreFor my new job, I need to use SQL but I'm not that familiar with it. Could someone please explain the differences between primary keys and unique...
🗨
0
🐏
0
👁
132
Profile Photo - Some Guy

How do I solve "Fatal Error: call to undefined function mysql_connect()"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:39:54 -0800

Profile Photo - Some Guy

I'm getting tossed an error that sa...

MoreI'm getting tossed an error that says "Fatal Error: call to undefined function mysql_connect()". Can somebody tell me how to solve this...
🗨
0
🐏
0
👁
152
Profile Photo - Some Guy

What is "mysqli_real_escape_string" in PHP?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:38:14 -0800

Profile Photo - Some Guy

I'm writing a program for a class p...

MoreI'm writing a program for a class project. I'm writing PHP for the program and I can figure out a code. I don't know what "mysqli_...
🗨
0
🐏
0
👁
136
Profile Photo - Some Guy

Fix "The CSRF token is invalid. Please try to resubmit the form"?

Answers in Server-Side | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:30:57 -0800

Profile Photo - Some Guy

I am using a program for my job, and I a...

MoreI am using a program for my job, and I am getting a error repeatedly saying, "The CSRF token is invalid. Please try to resubmit the form". I...
🗨
0
🐏
0
👁
172
Profile Photo - Some Guy

Getting error "Mysql server has gone away"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:29:40 -0800

Profile Photo - Some Guy

I am setting up a new server for my busi...

MoreI am setting up a new server for my business and have been doing the SQL configuration to manage the data that our web app uses. Last time I started...
🗨
0
🐏
0
👁
130
Profile Photo - Some Guy

Fix "Tuple index out of range"?

Answers in Databases | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:29:35 -0800

Profile Photo - Some Guy

I'm running a simple python program...

MoreI'm running a simple python program that will display the data from my SQL database in a tinter form and its stating the tuple index is out of ra...
🗨
0
🐏
0
👁
119