LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 99 of 106
0 votes
1 ans
3 views
How can I find all the tables in MySQL with specific column names in them?

I have 2-3 different column names that I want to look up in the entire database and list out all tables which have those columns. Is there any easy script?

database Solved
JO
asked 1 month ago by Jobi Joy
0 votes
1 ans
3 views
How do I specify unique constraint for multiple columns in MySQL?

I have a table: table votes ( id, user, email, address, primary key(id), ); How can I make the columns **user, e...

database Solved
NI
asked 1 month ago by Niyaz
0 votes
1 ans
3 views
How do you set a default value for a MySQL Datetime column?

How do you set a default value for a MySQL Datetime column? In SQL Server it's `getdate()`. What is the equivalant for MySQL? I'm using MySQL 5.x if...

database Solved
BR
asked 1 month ago by Brian Boatright
0 votes
1 ans
3 views
mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc... expects parameter 1 to be resource

I am trying to select data from a MySQL table, but I get one of the following error messages: > mysql_fetch_array() expects parameter 1 to be resource, bo...

database Solved
IA
asked 1 month ago by iamjonesy
0 votes
1 ans
3 views
TINYTEXT, TEXT, MEDIUMTEXT, and LONGTEXT maximum storage sizes

Per [the MySQL docs][1], there are four TEXT types: 1. TINYTEXT 2. TEXT 3. MEDIUMTEXT 4. LONGTEXT What is the maximum length that I can store in a...

general-dev Solved
LA
asked 1 month ago by Lalith B
0 votes
1 ans
3 views
"INSERT IGNORE" vs "INSERT ... ON DUPLICATE KEY UPDATE"

While executing an `INSERT` statement with many rows, I want to skip duplicate entries that would otherwise cause failure. After some research, my options appea...

general-dev Solved
TH
asked 1 month ago by Thomas G Henry LLC
0 votes
1 ans
3 views
Finding duplicate values in MySQL

I have a table with a varchar column, and I would like to find all the records that have duplicate values in this column. What is the best query I can use to fi...

database Solved
JO
asked 1 month ago by Jon Tackabury
0 votes
1 ans
3 views
MySQL: Large VARCHAR vs. TEXT?

I've got a messages table in MySQL which records messages between users. Apart from the typical ids and message types (all integer types) I need to save the...

database Solved
TO
asked 1 month ago by Tom
0 votes
1 ans
3 views
How can I SELECT rows with MAX(Column value), PARTITION by another column in MYSQL?

I have a table of player performance: ``` CREATE TABLE TopTen ( id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, home INT UNSIGNED NOT NULL, `datetime`D...

database Solved
KA
asked 1 month ago by Kaptah
0 votes
1 ans
3 views
Getting information from the Moodle API as a student

I'm currently a student at a University and I'm using Moodle everyday. I would like to access some information that is available to me (For example, in...

moodle-core Solved
RO
asked 1 month ago by RonH
0 votes
1 ans
3 views
How to insert a dynamic form as an activity or resource in between the sections on the moodle course?

We have tried to insert form elements via quiz actvity in moodle but when it is much complicated to handle when we display on the front end. Please refer th...

moodle-core Solved
JA
asked 1 month ago by jaya
0 votes
1 ans
3 views
I want to retrieve the instance of a course module

tl;dr; trying to get a course module instance via a course module through mysql or the official moodle api. My solution in the end seems rather scrappy though,...

moodle-core Solved
DE
asked 1 month ago by DenLilleMand
0 votes
1 ans
3 views
How to POST a request on Moodle using POSTMAN api tool

I want to create an API request in Postman that creates a category in Moodle. The following are the steps which I did in Moodle : 1. Enabled Web service 2...

moodle-core Solved
SA
asked 1 month ago by Sarath
0 votes
1 ans
3 views
Moodle - Site Adminstrator Block is missing

I am using moodle 3.4 Version. My moodle is not showing Site administrator in "Add a Block".Due to which i am not able to add "Site administrato...

moodle-core Solved
CH
asked 1 month ago by Chetan
0 votes
1 ans
3 views
Moodle plugin creation

I am a beginner in Moodle and I wrote an algorithm in python to learn users profiles. The aim is to create a plugin that provides adaptive functionalities in th...

moodle-core Solved
EC
asked 1 month ago by echtouka
0 votes
1 ans
3 views
get user role by user id in moodle

I want to get user role from user id. I am using loop in my code where i want to show all user except admin. i used below code but its not working. $co...

moodle-core Solved
PR
asked 1 month ago by Pritesh Mahajan
0 votes
1 ans
3 views
Moodle: using mysql joins in $table = set_sql(); method

I want to know how joins are applied for **$table= set_sql();** method. I'm trying to render a table without using the conventional **html_ta...

moodle-core Solved
KC
asked 1 month ago by kcay King
0 votes
1 ans
3 views
Moodle SSO Using asp.net web app

Hi there i'm beginner in using **moodle** i want my custom website which is on ASP.net can anyone guide me that how can i add **SSO** feature for my website...

moodle-core Solved
M.
asked 1 month ago by M.Nabeel
0 votes
1 ans
3 views
Access Moodle API from .Net Console Application

For one of my projects I need to manage some of the attributes of our Moodle, including (but probably not limited to) Creating/Updating users and managing enrol...

moodle-core Solved
SI
asked 1 month ago by Si Blight
0 votes
1 ans
3 views
PHP create User in moodle via Webservice

I want so connect an external website with a moodle-system. I've already set up the webService and created a token to get access. I've followed http:...

moodle-core Solved
JA
asked 1 month ago by Jan Raufelder