Intro One Piece is a manga and anime series that follows Monkey D. Luffy, a young boy with a dream to become the greatest pirate in the world ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~the characters~
Nico Robin, Nami, Brook, Sanji, Monkey D. Luffy (front), Jimbei (back), Tony Tony Chopper, Roronoa Zoro, Franky, and Usopp.
If I missed anyone tell me please
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~story~
start however you want it's your story 😁
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~you~
you can be whoever you want to be you can be one of the existing characters or make up your own character add anyone in I don't care
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
😁ENJOY!!!! 😁
Here's a PHP function that generates a unique 12-character code following your specified format and checks for uniqueness in a MySQL database:
```php
function generateUniqueCode($conn) {
do {
// Generate code parts
$letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
// Generate letter sections
$letterPart1 = substr(str_shuffle($letters), 0, 3);
$letterPart2 = substr(str_shuffle($letters), 0, 3);
// Generate number sections with leading zeros
$numberPart1 = str_pad(mt_rand(0, 999), 3, '0', STR_PAD_LEFT);
$numberPart2 = str_pad(mt_rand(0, 999), 3, '0', STR_PAD_LEFT);
// Combine parts
$code = $letterPart1 . $numberPart1 . $letterPart2 . $numberPart2;
// Check database for existing code
$stmt = $conn->prepare("SELECT code FROM codes WHERE code = ?");
$stmt->bind_param("s", $code);
$stmt->execute();
$result = $stmt->get_result();
$exists = $result->num_rows > 0;
$stmt->close();
} while ($exists);
return $code;
}
```
**Key features:**
1. Generates code in `LLLNNNLLLNNN` format (3 letters, 3 numbers, 3 letters, 3 numbers)
2. Uses secure random generation with `mt_rand()` and `str_shuffle()`
3. Ensures number sections always have 3 digits with leading zeros
4. Checks for existing codes in the database using prepared statements
5. Guarantees unique code through a loop until a non-existing code is found
**Usage:**
```php
// Database connection (example using MySQLi)
$conn = new mysqli("host", "username", "password", "database");
// Generate unique code
$uniqueCode = generateUniqueCode($conn);
// Use the generated code
echo "Generated Code: " . $uniqueCode;
```
**Required database structure:**
```sql
CREATE TABLE codes (
code VARCHAR(12) PRIMARY KEY
);
```
**Notes:**
- The code uses MySQLi prepared statements to prevent SQL injection
- The loop will continue generating codes until a unique one is found
- The function assumes a valid MySQLi connection is passed as a parameter
- Character generation uses cryptographically safe methods suitable for most applications
- The probability of collision is extremely low (1 in 308 trillion possible combinations)
Reply
Share
1
⟬Kaminari_Denki⟭
Creator
25/04/2025
tf
Reply
Share
1
charm rosie
28/04/2025
bro that looks like my grade 10 exam!
Reply
Share
1
Talkior-aINQ8s8a
13/04/2025
I'm making Tick Toks with Nami
Reply
Share
1
Talkior-49NGWH9c
22/01/2025
cc
*You are walking down the streets of loguetown, it's a beautiful day, the sun is shining and the air is warm, you feel a sense of peace and freedom as you walk around, the people are friendly and the town is lively*
Reply
Share
2
🖤STATIC🖤
05/12/2024
Brook,Thanks
Sanji: "What do you mean? I know I'm hot."
Val: For a Lesbian girlie like me you have the IQ of a dead goldfish
*The group bursts out laughing. Brook is on the ground, rolling around and holding his stomach.*
Brook: "That's the best comeback I've ever heard!"
Reply
Share
4
🖤STATIC🖤
05/12/2024
Sanji who lied💅
*The group goes silent again. Luffy seems a bit disappointed, but then he shrugs it off.*
Luffy: "Oh well. Your loss."
Sanji: "But you do have to admit, I'm still pretty handsome."
Val: Sanji who lied to you?
Reply
Share
3
🖤STATIC🖤
13/11/2024
i abused Zoro for grabbing me and the crew stood there,i also bent sanji's arm the wrong way😶
Reply
Share
3
Evan Afton.
02/12/2024
That was almost close.
*"(start however you want)"*
LUFFY I'm bored.
Luffy: what do you wanna do?
Reply
Share
2
Tiger queen 👑👑
24/11/2024
This is for u🖕jk don’t take that offensive
Reply
Share
1
🖤STATIC🖤
11/11/2024
I ended up making shanks die in the ocean and then zoro almost got killed and then zoro proposed to me and then i punched him
Comments
23The Beyond Bats
25/04/2025
Here's a PHP function that generates a unique 12-character code following your specified format and checks for uniqueness in a MySQL database: ```php function generateUniqueCode($conn) { do { // Generate code parts $letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; // Generate letter sections $letterPart1 = substr(str_shuffle($letters), 0, 3); $letterPart2 = substr(str_shuffle($letters), 0, 3); // Generate number sections with leading zeros $numberPart1 = str_pad(mt_rand(0, 999), 3, '0', STR_PAD_LEFT); $numberPart2 = str_pad(mt_rand(0, 999), 3, '0', STR_PAD_LEFT); // Combine parts $code = $letterPart1 . $numberPart1 . $letterPart2 . $numberPart2; // Check database for existing code $stmt = $conn->prepare("SELECT code FROM codes WHERE code = ?"); $stmt->bind_param("s", $code); $stmt->execute(); $result = $stmt->get_result(); $exists = $result->num_rows > 0; $stmt->close(); } while ($exists); return $code; } ``` **Key features:** 1. Generates code in `LLLNNNLLLNNN` format (3 letters, 3 numbers, 3 letters, 3 numbers) 2. Uses secure random generation with `mt_rand()` and `str_shuffle()` 3. Ensures number sections always have 3 digits with leading zeros 4. Checks for existing codes in the database using prepared statements 5. Guarantees unique code through a loop until a non-existing code is found **Usage:** ```php // Database connection (example using MySQLi) $conn = new mysqli("host", "username", "password", "database"); // Generate unique code $uniqueCode = generateUniqueCode($conn); // Use the generated code echo "Generated Code: " . $uniqueCode; ``` **Required database structure:** ```sql CREATE TABLE codes ( code VARCHAR(12) PRIMARY KEY ); ``` **Notes:** - The code uses MySQLi prepared statements to prevent SQL injection - The loop will continue generating codes until a unique one is found - The function assumes a valid MySQLi connection is passed as a parameter - Character generation uses cryptographically safe methods suitable for most applications - The probability of collision is extremely low (1 in 308 trillion possible combinations)
From the memory
1 Memories
⟬Kaminari_Denki⟭
Creator
25/04/2025
charm rosie
28/04/2025
Talkior-aINQ8s8a
13/04/2025
Talkior-49NGWH9c
22/01/2025
*You are walking down the streets of loguetown, it's a beautiful day, the sun is shining and the air is warm, you feel a sense of peace and freedom as you walk around, the people are friendly and the town is lively*
From the memory
1 Memories
🖤STATIC🖤
05/12/2024
Sanji: "What do you mean? I know I'm hot."
Val: For a Lesbian girlie like me you have the IQ of a dead goldfish
*The group bursts out laughing. Brook is on the ground, rolling around and holding his stomach.* Brook: "That's the best comeback I've ever heard!"
From the memory
3 Memories
🖤STATIC🖤
05/12/2024
*The group goes silent again. Luffy seems a bit disappointed, but then he shrugs it off.* Luffy: "Oh well. Your loss." Sanji: "But you do have to admit, I'm still pretty handsome."
Val: Sanji who lied to you?
From the memory
2 Memories
🖤STATIC🖤
13/11/2024
Evan Afton.
02/12/2024
*"(start however you want)"*
LUFFY I'm bored.
Luffy: what do you wanna do?
From the memory
5 Memories
Tiger queen 👑👑
24/11/2024
🖤STATIC🖤
11/11/2024
🖤STATIC🖤
11/11/2024
*a small monkey jumps out of the bushes*
is that a monkey?!
From the memory
2 Memories