dw2693734d
V2EX  ›  React

在 React / Next.js 中使用 PHP

  •  
  •   dw2693734d · Nov 3, 2023 · 1251 views
    This topic created in 934 days ago, the information mentioned may be changed or developed.

    php 爱好者的福音

    Youtube Video about how this project was made

    return (
        <button
            formAction={async () => {
                'use php'
                (new PDO('mysql:host=localhost:3306;dbname=public', 'root', 'root'))
                    ->prepare("INSERT INTO Bookmarks (slug) VALUES (?)")
                    ->execute(array('new'));
                }}>
            Insert Bookmark
        </button>
    )
    

    https://github.com/bufferhead-code/nextjs-use-php

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5796 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 02:17 · PVG 10:17 · LAX 19:17 · JFK 22:17
    ♥ Do have faith in what you're doing.