get combined textbox text into a new one in sorted checkedbox order

558fe5180e0e8fc922d31c23ef84d240

Hi, I have a question, how can I achieve this, like I have declared 3 variable as string, each checkbox has a variable that will be created if clicked also when checked it will put the corresponding textbox.text into it. Now the problem is I need to make sure that the first one that will be selected will be the first one that will be paste thanks to the variable, the seond checked and third checked same thing. This is the code

 Private Sub CheckBox2_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox2.CheckedChanged
        Dim fntext As String
        Dim artext As String
        Dim dltext As String
        If CheckBox3.Checked = True Then
            fntext = TextBox1.Text
        ElseIf CheckBox4.Checked Then
            artext = TextBox4.Text
        ElseIf CheckBox5.Checked Then
            dltext = TextBox6.Text
        End If
    End Sub
    TextBox7.Text += fntext & vbCrLf & artext & vbCrLf & dltext
End Class

vb net reload filterbox from list saved from settings

558fe5180e0e8fc922d31c23ef84d240

Hi, I have a issues, I have to load again the listbox, after filtering trought a textbox if a string is the same. I tried this code, but doesn't work at the is null or empthy, how can I reload it by a cicle for?

 Private Sub TextBox3_TextChanged(sender As Object, e As EventArgs) Handles TextBox3.TextChanged
        Dim items = From it In ListBox1.Items.Cast(Of Object)()
                    Where it.ToString().IndexOf(TextBox3.Text, StringComparison.CurrentCultureIgnoreCase) >= 0
        Dim matchingItemList As List(Of Object) = items.ToList()
        ListBox1.BeginUpdate()
        ListBox1.Items.Clear()
        For Each item In matchingItemList
            ListBox1.Items.Add(item)
        Next
        If String.IsNullOrEmpty(TextBox3.Text) Then
            ListBox1.Items.AddRange(My.Settings.userlist.ToString)
        End If
        ListBox1.EndUpdate()
    End Sub

Uncaught Error: Call to undefined function mysql_query()

558fe5180e0e8fc922d31c23ef84d240

Hi I have this PHP Code -

<?php
require_once ("../include/initialize.php");
     if (!isset($_SESSION['ACCOUNT_ID'])){
      redirect(web_root."index.php");
     }

$action = (isset($_GET['action']) && $_GET['action'] != '') ? $_GET['action'] : '';

switch ($action) {
    case 'add' :
    doInsert();
    break;

    case 'edit' :
    doEdit();
    break; 

    case 'delete' :
    doDelete();
    break;

    case 'photos' :
    doupdateimage();
    break;

    case 'checkid' :
    Check_StudentID();
    break;

    }

    function doInsert(){
        if(isset($_POST['save'])){


        if ($_POST['StudentID'] == "" OR $_POST['Firstname'] == "" OR $_POST['Lastname'] == ""
            OR $_POST['Middlename'] == "" OR $_POST['CourseID'] == "none"  OR $_POST['Address'] == "" 
            OR $_POST['ContactNo'] == "") {
            $messageStats = false;
            message("All fields are required!","error");
            redirect('index.php?view=add');
        }else{  

            $birthdate =  $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];

            $age = date_diff(date_create($birthdate),date_create('today'))->y;

            if ($age < 15){
            message("Invalid age. 15 years old and above is allowed.", "error");
            redirect("index.php?view=add");

            }else{
                // error message 
                // duplicate student id
                 // date_format(date_create($_POST['BirthDate']),'Y-m-d'); 

                $sql = "SELECT * FROM tblstudent WHERE StudentID='" .$_POST['StudentID']. "'";
                $res = mysql_query($sql) or die(mysql_error());
                $maxrow = mysql_num_rows($res);
                if ($maxrow > 0) { 
                    # code... 
                    message("Student ID already in use!", "error");
                    redirect("index.php?view=add");
                }else{
                    $stud = New Student(); 
                    $stud->StudentID        = $_POST['StudentID'];
                    $stud->Firstname        = $_POST['Firstname']; 
                    $stud->Lastname         = $_POST['Lastname'];
                    $stud->Middlename       = $_POST['Middlename'];
                    $stud->CourseID         = $_POST['CourseID']; 
                    $stud->Address          = $_POST['Address']; 
                    $stud->BirthDate        = $birthdate;
                    $stud->Age              = $age;
                    $stud->Gender           = $_POST['optionsRadios']; 
                    $stud->ContactNo        = $_POST['ContactNo'];
                    $stud->YearLevel        = $_POST['YearLevel'];
                    $stud->create();

                                // $autonum = New Autonumber();  `SUBJ_ID`, `SUBJ_CODE`, `SUBJ_DESCRIPTION`, `UNIT`, `PRE_REQUISITE`, `COURSE_ID`, `AY`, `SEMESTER`
                                // $autonum->auto_update(2);

                    message("New student created successfully!", "success");
                    redirect("index.php");

                }

            }
         }
        }

    }

    function doEdit(){
    if(isset($_POST['save'])){

        if ($_POST['StudentID'] == "" OR $_POST['Firstname'] == "" OR $_POST['Lastname'] == ""
        OR $_POST['Middlename'] == "" OR $_POST['CourseID'] == "none"  OR $_POST['Address'] == "" 
        OR $_POST['ContactNo'] == "") {
            $messageStats = false;
            message("All fields are required!","error");
            redirect('index.php?view=add');
        }else{  

            $birthdate =  $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];

            $age = date_diff(date_create($birthdate),date_create('today'))->y;
            if ($age < 15){
               message("Invalid age. 15 years old and above is allowed.", "error");
               redirect("index.php?view=view&id=".$_POST['StudentID']);

            }else{

          // echo  $_POST['optionsRadios']; 
                $stud = New Student(); 
                $stud->StudentID        = $_POST['IDNO'];
                $stud->Firstname        = $_POST['Firstname']; 
                $stud->Lastname         = $_POST['Lastname'];
                $stud->Middlename       = $_POST['Middlename'];
                $stud->CourseID         = $_POST['CourseID']; 
                $stud->Address          = $_POST['Address']; 
                // $stud->BirthDate     = date_format(date_create($_POST['BirthDate']),'Y-m-d');  
                $stud->BirthDate        = $birthdate;
                $stud->Age              = $age;
                $stud->Gender           = $_POST['optionsRadios']; 
                $stud->ContactNo        = $_POST['ContactNo'];
                $stud->YearLevel        = $_POST['YearLevel'];

                $stud->studupdate($_POST['StudentID']);



                message("Student has been updated!", "success");
                redirect("index.php?view=view&id=".$_POST['StudentID']);
            }


        }


    }

} 

    function doDelete(){

        if (isset($_POST['selector'])==''){
        message("Select the records first before you delete!","error");
        redirect('index.php');
        }else{

        $id = $_POST['selector'];
        $key = count($id);

        for($i=0;$i<$key;$i++){

            $subj = New Student();
            $subj->delete($id[$i]);


                // $id =    $_GET['id'];

                // $subj = New Student();
            //      $subj->delete($id);


        }
            message("Student(s) already Deleted!","success");
            redirect('index.php');
        }


    }
    function doupdateimage(){

            $errofile = $_FILES['photo']['error'];
            $type = $_FILES['photo']['type'];
            $temp = $_FILES['photo']['tmp_name'];
            $myfile =$_FILES['photo']['name'];
            $location="photo/".$myfile;


        if ( $errofile > 0) {
                message("No Image Selected!", "error");
                redirect("index.php?view=view&id=". $_GET['id']);
        }else{

                @$file=$_FILES['photo']['tmp_name'];
                @$image= addslashes(file_get_contents($_FILES['photo']['tmp_name']));
                @$image_name= addslashes($_FILES['photo']['name']); 
                @$image_size= getimagesize($_FILES['photo']['tmp_name']);

            if ($image_size==FALSE ) {
                message("Uploaded file is not an image!", "error");
                redirect("index.php?view=view&id=". $_GET['id']);
            }else{
                    //uploading the file
                    move_uploaded_file($temp,"photo/" . $myfile);



                        $stud = New Student();
                        $stud->StudPhoto    = $location;
                        $stud->studupdate($_POST['StudentID']);
                        redirect("index.php?view=view&id=". $_POST['StudentID']);


                    }
            }

        }

    function Check_StudentID(){


        // $stud = New Student();  
        // $res = $stud->single_student($_POST['IDNO']);

        $sql = "SELECT * FROM tblstudent WHERE StudentID='" .$_POST['IDNO']. "'";
        $res = mysql_query($sql) or die(mysql_error());
        $maxrow = mysql_num_rows($res);
        if ($maxrow > 0) { 
            # code...
            echo "Student ID already in use!"; 
        }


    }

?>

And I am getting this error - Fatal error: Uncaught Error: Call to undefined function mysql_query() in C:\xampp\htdocs\attendancemonitoring\student\controller.php:58 Stack trace: #0 C:\xampp\htdocs\attendancemonitoring\student\controller.php(11): doInsert() #1 {main} thrown in C:\xampp\htdocs\attendancemonitoring\student\controller.php on line 58

I needed help im new .

why error: could not convert ‘{“Struktur Data”, “IF-44..

558fe5180e0e8fc922d31c23ef84d240

eror : could not converd ' {"Struktur Data...

list_matkul Matakuliah;
create_list_matkul(Matakuliah);
adr_matkul P;
list_mhs mahasiswa;
create_list_mhs(mahasiswa);
adr_mhs Q;

P = create_elm_matkul({.namaMk = "Struktur Data", .namaKelas = "IF-44-Gab1", .kuota = 3, .jumlah = 0, .jenisMk = "Reguler"});
insert_matkul(Matakuliah,P);
P = create_elm_matkul({.namaMK = "Struktur Data", .namaKelas = "IF-44-Gab2", .kuota = 3, .jumlah = 0, .jenisMk = "Reguler"});
insert_matkul(Matakuliah,P);
P = create_elm_matkul({.namaMK = "Struktur Data", .namaKelas = "IF-44-INT", .kuota = 2, .jumlah = 0, .jenisMk = "Internasional"});
insert_matkul(Matakuliah,P);

Q = create_elm_mhs({.namaMhs = "Yusuf", .nimMhs = "103101", .asalKelas = "IF-44-01", .jenisMhs= "Reguler"});
insert_mhs(mahasiswa,Q);
Q = create_elm_mhs({.namaMhs = "Sthevanie", .nimMhs = "103102", .asalKelas = "IF-44-02", .jenisMhs= "Reguler"});
insert_mhs(mahasiswa,Q);
Q = create_elm_mhs({.namaMhs = "Siska", .nimMhs = "103103", .asalKelas = "IF-44-05", .jenisMhs= "Reguler"});
insert_mhs(mahasiswa,Q);
Q = create_elm_mhs({.namaMhs = "Agus", .nimMhs = "103104", .asalKelas = "IF-44-04", .jenisMhs= "Reguler"});
insert_mhs(mahasiswa,Q);
Q = create_elm_mhs({.namaMhs = "Sharukh Khan", .nimMhs = "113101", .asalKelas = "IF-44-INT", .jenisMhs= "Internasional"});
insert_mhs(mahasiswa,Q);
Q = create_elm_mhs({.namaMhs = "Tony Stark", .nimMhs = "113102", .asalKelas = "IF-44-INT", .jenisMhs= "Internasional"});
insert_mhs(mahasiswa,Q);
Q = create_elm_mhs({.namaMhs = "Elsa", .nimMhs = "113103", .asalKelas = "IF-44-INT", .jenisMhs= "Internasional"});
insert_mhs(mahasiswa,Q);

P = search_matkul(Matakuliah,"Struktur Data", "IF-44-Gab1");
Q = search_mhs(mahasiswa,"103101");
create_Relasi(Matakuliah, P,Q);
P = search_matkul(Matakuliah,"Struktur Data", "IF-44-Gab1");
Q = search_mhs(mahasiswa,"103102");
create_Relasi(Matakuliah, P,Q);
P = search_matkul(Matakuliah,"Struktur Data", "IF-44-Gab1");
Q = search_mhs(mahasiswa,"103103");
create_Relasi(Matakuliah, P,Q);
P = search_matkul(Matakuliah,"Struktur Data", "IF-44-INT");
Q = search_mhs(mahasiswa,"113101");
create_Relasi(Matakuliah, P,Q);

return 0;

New in Golang language

558fe5180e0e8fc922d31c23ef84d240

Hello.

I want to start studying the Golang language but I can't find any IDE that I can configure well, can you tell me an IDE that is good for Go and how to configure it (explained for fools in Spanish), please? I have tried with Sublime, Visual Studio Code and Eclipse and I have not clarified with any. And, if it is not too much to ask, can you recommend a free course to start studying (if possible in Spanish)? I have found a course but I ask if anyone knows of any good and free.

I really appreciate the help.

All the best.

Controlling traffic lights

558fe5180e0e8fc922d31c23ef84d240

Hello, I have a problem in making that when the light is green it would light for 5seconds and when the lights are red-yellow or yellow it will only light up for 3seconds. Could anyone help me how to get the result?

; controlling external device with 8086 microprocessor.
; realistic test for c:\emu8086\devices\Traffic_Lights.exe

#start=Traffic_Lights.exe#

name "traffic"


mov ax, all_red
out 4, ax


mov si, offset situation


next:
mov ax, [si]
out 4, ax

; wait 5 seconds (5 million microseconds)
mov     cx, 4Ch    ;    004C4B40h = 5,000,000
mov     dx, 4B40h
mov     ah, 86h
int     15h


add si, 2 ; next situation
cmp si, sit_end
jb  next
mov si, offset situation
jmp next


;                        FEDC_BA98_7654_3210
situation        dw      0000_0011_0000_1100b
s1               dw      0000_0110_1001_1010b
s2               dw      0000_1000_0110_0001b
s3               dw      0000_1000_0110_0001b
s4               dw      0000_0100_1101_0011b
sit_end = $


all_red          equ     0000_0010_0100_1001b

How to restrict input?

558fe5180e0e8fc922d31c23ef84d240

Hello, could anyone help me how can I make so the user could only enter numbers between 0...9 and letters a...f (A...F) on input? I have a code like this already

#MAKE_EXE#

DSEG SEGMENT 'DATA'

MSG DB 'Enter double digit hex number: $'

DSEG ENDS

SSEG SEGMENT STACK 'STACK'
DW 100h DUP(?)
SSEG ENDS

CSEG SEGMENT 'CODE'

;*******************************************

START PROC FAR

PUSH DS
MOV AX, 0
PUSH AX

; set segment registers:
MOV AX, DSEG
MOV DS, AX
MOV AH,09h
MOV DX, OFFSET MSG
INT 21h
XOR AX,AX
MOV AH,1H
INT 21H
MOV DL,AL
SUB DL,30H
CMP DL,9H
JLE M1
SUB DL,7H
M1:
MOV CL,4H
SHL DL,CL
INT 21H
SUB AL,30H
CMP AL,9H
JLE M2
SUB AL,7H
M2:
ADD DL,AL
RET
START ENDP

CSEG ENDS

END START

cant solve this error (cannot convert double to float)

558fe5180e0e8fc922d31c23ef84d240

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerMovement : MonoBehaviour

public CharacterController characterController;

public float speed = 5f;

public float gravity = -9.81;

public Transform groundCheck;
public float sphereRadius = 0.3f;
public LayerMask groundMask;

bool isGrounded;
Vector3 velocity;





void Update()
{

    isGrounded = Physics.CheckSphere(groundCheck.position,sphereRadius,groundMask);

    if (isGrounded && velocity.y < 0)
    {
        velocity.y = -2f;
    }

    float x = Input.GetAxis("Horizontal");

    float z = Input.GetAxis("Vertical");

    Vector3 move = transform.right * x + transform.forward * z;

    characterController.Move(move * speed * Time.deltaTime);

    velocity.y += gravity * Time.deltaTime;

    characterController.Move(velocity * Time.deltaTime);


}

I have this error

558fe5180e0e8fc922d31c23ef84d240

Parse error: syntax error, unexpected variable "$sql" in C:\xampp\htdocs\ProjectIT12\LR\controller.php on line 38

 <?php
include_once ("connection.php");
// connection created succesfullly

session_start();
//store all erros
$errors=[];
//When sign up button clicked
if(isset($_POST['signup'])){
$fname = mysqli_real_escape_string($conn , $_POST['fname']);
$mname = mysqli_real_escape_string($conn , $_POST['mname']);
$lname = mysqli_real_escape_string($conn , $_POST['lname']);     
$street = mysqli_real_escape_string($conn , $_POST['street']);
$province = mysqli_real_escape_string($conn , $_POST['province']);
$city = mysqli_real_escape_string($conn , $_POST['city']);
$country = mysqli_real_escape_string($conn , $_POST['country']);
$bank_account = mysqli_real_escape_string($conn , $_POST['bank_account']);
$email = mysqli_real_escape_string($conn , $_POST['email']);
$contact_num = mysqli_real_escape_string($conn , $_POST['contact_num']);
$cust_username = mysqli_real_escape_string($conn , $_POST['cust_username']);

    //check password length if password is less than 8 characters
if(strlen(trim($_POST['cust_password'])) < 8){
    $errors['cust_password'] = 'Use 8 or more characters with a mix of letters, numbers & symbols';
}else{
    // if password not matched so
    if($_POST['cust_password'] != $_POST['confirmPassword']){
        $errors['cust_password'] = 'Password not matched';
    }else{
        $cust_password = md5($_POST['cust_password']);
    }
}
    //generate random code
$code = rand(999999, 111111);
    // set status
$email_status ="Not Verified";
$status = 1

$sql = "SELECT * FROM customer WHERE email='$email' ";
$res = mysqli_query($conn , $sql) or die('query failed');
if(mysqli_num_rows($res)> 0){
    $errors['email'] = 'email is already taken';
}
    //count errors
if(count($errors)===0){
    $insertQuery = 'INSERT INTO customer(fname, mname, lname, street, province, city, country, contact_num, email, bank_account,cust_username,cust_password,email_status,code, cust_account_status)
        VALUES('$fname' , '$mname', '$lname', '$street' , '$province' , '$city', '$country', '$contact_num', '$email', '$bank_account', '$cust_username','$cust_password','$email_status','$code', '$status' )';
    $insertInfo = mysqli_query($conn, $insertQuery);
    }
}
     ?>

how to upload multiple images using Longblob

558fe5180e0e8fc922d31c23ef84d240
if (count($_FILES) > 0) {

    if (is_uploaded_file($_FILES['userImage']['tmp_name'])) {

        $imgData = addslashes(file_get_contents($_FILES['userImage']['tmp_name']));
        $imageProperties = getimageSize($_FILES['userImage']['tmp_name']);

        $sql = "INSERT INTO trial (imageType ,imageData,uploaded_on, user_id,tax_payer_id)
                VALUES('{$imageProperties['mime']}', '{$imgData}',NOW(),'".$_SESSION['id']."','".$_GET['id']."')";
        $current_id =  mysqli_query($db, $sql) or die("<b>Error:</b> Problem on Image Insert<br/>" . mysqli_error($db));
        $current_id = mysqli_insert_id($db);

        if (isset($current_id)) {
           echo "Upload Succesfully";
        }else{
            echo "There is a problem";
        }
    }
}
?>  

    <form name="frmImage" enctype="multipart/form-data" action="" method="post"                         class="frmImageUpload">
        <label>Upload QrCode File:</label><br /> 
        <input type="file" class="inputFile" name="userImage" />
                <input type="hidden" name="imageID"  value="<?php if(!empty($_GET['id'])){ echo $_GET['id'];} ?>">
        <input type="submit" value="Submit" class="btnSubmit" />
    </form>

I'm trying to upload multiple images and I'm using longblob to store the images in database.

how to define variable as numeric

558fe5180e0e8fc922d31c23ef84d240

Hi, please advise how to resolve. I want to print the receiptno on a receipt and it prints
"receiptno". I don't know how to define "receiptno" to use the value in the table.
I'm working with mysqli and having trouble with this code:

$receiptno='receiptno';  

$sql = "UPDATE numbers SET receiptno = receiptno+1 WHERE id=1";  // ************ updates
if ($conn->query($sql) !== true) { echo "Failed to update receiptno"; }
else { echo " "; }
echo "receipt # is " .$receiptno . "<br>";

Error with Day Function

558fe5180e0e8fc922d31c23ef84d240

Hi all.

I have this code and it is correct.

Dim logDayName As String = WeekdayName(Weekday(LogDateTextBox.Text))
Dim logMonthName As String = MonthName(Month(LogDateTextBox.Text))

The following code is an error on the Day function.

 Dim logMonthDay As Integer = Day(LogDateTextBox.Text)

Please offer assistance. Thank you, Shane.

I tried to do codes to get e^x by using maclaurin series but it gives 0 .

558fe5180e0e8fc922d31c23ef84d240

#include <stdio.h>
#include <math.h>

int main()

float i, x;
double fact=0, sum=0;

printf("Enter value of x as the power of e: ");
scanf("%f", &x);

printf("Enter n as the number of terms:  ");
scanf("%d",&i);    

for (i = 0; i < 99999; i++)

{   
    sum = 1 + x;
    fact = fact * i;
    sum = sum + pow(x, i)/(fact);   
}
if (sum == sum)

printf("The value of e^%f is %lf",x,sum);

return 0;

Can you please tell me what these lines of code do?

558fe5180e0e8fc922d31c23ef84d240

Can you please tell me what these lines of code do?

$sub_category = 0;
            if (!empty($_POST['sub_category_id'])) {
                $is_found = $db->where('type',PT_Secure($_POST['category_id']))->where('lang_key',PT_Secure($_POST['sub_category_id']))->getValue(T_LANGS,'COUNT(*)');
                if ($is_found > 0) {
                    $sub_category = PT_Secure($_POST['sub_category_id']);
                }
            }

I look forward to any assistance