This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:app_conference/pages/schedule_page.dart'; | |
import 'package:app_conference/pages/speakers_page.dart'; | |
import 'package:app_conference/pages/sponsers_page.dart'; | |
import 'package:app_conference/ui/drawer.dart'; | |
class MyTabs extends StatefulWidget { | |
@override | |
MyTabsState createState() => new MyTabsState(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Insert; | |
class InsertProduct extends Product | |
{ | |
private $user = "root"; | |
private $pass = "root"; | |
private $dsn = "mysql:dbname=formacao_php;host=localhost"; | |
public function insert(Product $inserir){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$name = $_POST["name"]; | |
$email = $_POST["email"]; | |
$user = "root"; | |
$pass = "root"; | |
$dsn = "mysql:host=localhost;dbname=formacao_php"; | |
$pdo = new PDO($dsn, $user, $pass); | |
$sql = "INSERT INTO usuarios (name, email) VALUES (:nome,:email)"; |