Création de table dans laragon

Résolu
Bonjour,

En faite, le code pour créer une table est le suivant, mais je ne sais pas comment la créer dans heidisql, dans laragon.

Mon code:

CREATE TABLE tchat (
id int(255) NOT NULL,
id_pseudo int(255) NOT NULL,
message text COLLATE utf8mb4_unicode_ci NOT NULL,
date_message datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


un autre...
CREATE TABLE user (
id int(255) NOT NULL,
pseudo varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
sex int(1) NOT NULL,
birthday date NOT NULL,
mail varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
password text COLLATE utf8mb4_unicode_ci NOT NULL,
register datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


Merci!
Jwandle

7 réponses

  1. Salut!Merci beaucoup pour la réponse!
    C'est bon, j'ai fait ce que tu m'as proposé!

    voici les erreurs:
    http://localhost/login-user.php
    voilà l'erreur:
    Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\laragon\www\controllerUserData.php on line 81

    http://localhost/signup-user.php
    l'autre erreur sur le fichier signup-user.php
    Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\laragon\www\controllerUserData.php on line
    Et J'ai lu le truc des balise entre <code php> Merci!

    1
    1. Modérateur
      Si tu ne nous montres pas ton code modifié... Difficile de te répondre...
      0