V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
dw2693734d
V2EX  ›  React

在 React / Next.js 中使用 PHP

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