dw2693734d
V2EX  ›  React

在 React / Next.js 中使用 PHP

  •  
  •   dw2693734d · Nov 3, 2023 · 1311 views
    This topic created in 959 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   ·   949 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 105ms · UTC 19:00 · PVG 03:00 · LAX 12:00 · JFK 15:00
    ♥ Do have faith in what you're doing.