Re: Am I missing something?

From: Date: Sun, 28 Jan 2007 03:16:16 +0000
Subject: Re: Am I missing something?
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-43000@lists.php.net to get a copy of this message
They should have data. here's the form code: function write_form() {
        echo "<form method='post' action='{$_SERVER['PHP_SELF']}'>";
        echo "<p>Enter url of large picture: <input type='text' name='picture' />";
        echo "<p>Enter url of thumbnail: <input type='text' name='thumbnail' />";
        echo "<p><input type='submit' value='Add to Database' />";
        echo "</form>";
} I've done everything excatly how my PHP book says to /* i now officially hate all code examples in books, they never work */ ----- Original Message ----- From: "Niel Archer" <niel@catweasel.org> To: <php-db@lists.php.net> Sent: Saturday, January 27, 2007 9:07 PM Subject: Re: [PHP-DB] Am I missing something?
Hi
Alright, I did that. I now get : INSERT INTO domains ( picture, thumbnail ) values( '', '') and no data entered.
Then for some reason your variables are empty. Make sure they have data on entry to the function. If they don't keep backtracking until you find where it's lost. Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#43000) next »