[PHP-DB] $_POST And $_REQUEST

2002-10-05 Thread Shoulder to Shoulder Farm

Hi all,
What is the difference between the $_POST and $_REQUEST functions (I 
can't find it in the docs)?
Thanks, Taj


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Selecting one random column from MySQL

2002-09-17 Thread Shoulder to Shoulder Farm

Hi all,
How can I select one random column from a MySQL table?
Thanks, Taj


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Re: What's wrong with this code?

2002-09-02 Thread Shoulder to Shoulder Farm

Sorry all, my mail program has been sending messages to the sender.
Sorry...Taj

Jean-Christian Imbeault wrote:

 Shoulder To Shoulder Farm wrote:


 mysql_query(INSERT INTO prod VALUES ( 'Name', 'ShortDesc', 
 'LongDesc', 'PriceOZ', 'PriceLB', 'URLOZ', 'URLLB', 'IMG') VALUES 
 ('$_POST[Name]', '$_POST[ShortDesc]', '$_POST[LongDesc], 
 '$POST[PriceOZ', '$_POST[PriceLB]', '$_POST[URLOZ]', '$_POST[URLLB], 
 '$_POST[IMG]');)


 Maybe it's a typo but all you $_POST vars are wrong. They should be 
 $_POST[var] not $_POST[var] as you have them.

 Jc





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] What's wrong with this code?

2002-09-01 Thread Shoulder to Shoulder Farm

Hi all, I'm running PHP4. What's wrong with this code:

?

$db = mysql_connect(localhost, Taj, wyethia);

mysql_select_db(s2s,$db);

mysql_query(INSERT INTO prod VALUES ( 'Name', 'ShortDesc', 'LongDesc', 
'PriceOZ', 'PriceLB', 'URLOZ', 'URLLB', 'IMG') VALUES ('$_POST[Name]', 
'$_POST[ShortDesc]', '$_POST[LongDesc], '$POST[PriceOZ', 
'$_POST[PriceLB]', '$_POST[URLOZ]', '$_POST[URLLB], '$_POST[IMG]');)

?

This will wrap, but, it should work.

TIA, Taj


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] What's wrong with this code?

2002-09-01 Thread Shoulder to Shoulder Farm

Hi all, I'm running PHP4. What's wrong with this code:

?

$db = mysql_connect(localhost, Taj, passwordhere);

mysql_select_db(s2s,$db);

mysql_query(INSERT INTO prod VALUES ( 'Name', 'ShortDesc', 'LongDesc', 
'PriceOZ', 'PriceLB', 'URLOZ', 'URLLB', 'IMG') VALUES ('$_POST[Name]', 
'$_POST[ShortDesc]', '$_POST[LongDesc], '$POST[PriceOZ', 
'$_POST[PriceLB]', '$_POST[URLOZ]', '$_POST[URLLB], '$_POST[IMG]');)

?

This will wrap, but, it should work.

TIA, Taj


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] PHP File for adding to database

2002-08-15 Thread Shoulder to Shoulder Farm

Hi all,
How can I make a PHP4 page that will add information to a MySQL database
when the person (me) clicks the Submit button. The following fields to
be added are:

SKU
Name
About
PriceOZ
PriceLB

Thanks all, Taj


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Tutorials

2002-08-09 Thread Shoulder to Shoulder Farm

Hi all,
Does anyone know where I can get beginner tutorials on PHP and MySQL?
Thanks, Taj


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php