php3-list | 199903
Date: 03/14/99
- Next message: Rasmus Lerdorf: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Previous message: Alan Wicks: "[PHP3] filling form dropdown lists from db"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Reply: Rasmus Lerdorf: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Reply: Alan Wicks: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Maybe reply: Richard Lynch: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greetings,
I have created a db and table (mSQL) and am absolutely sure
that they are there. They were both created above this step
in the same program and I polled the table to return the
variable names. It acts as though the data is not being
inserted into the db. This is for mSQL. Any ideas? Code
is below. Thanks, Alan S. Wicks.
--------------
// enter data into the fields: fields var1 char(5), var2
char(10), var3 int.
msql($dbname, "INSERT INTO $table1 VALUES ('HERE', 'THERE',
'100')");
msql($dbname, "INSERT INTO $table1 VALUES ('NOW', 'THEN',
'200')");
echo "POST_INSERT<BR>"; //this shows up.
/*
Gets here. I have tested for validity
of names $dbname and $table1.
*/
$selstr = "SELECT * FROM $table1";
$result = msql($dbname, $selstr);
echo "RESULT = $result<BR>"; //this value comes back as 5
$result_count = msql_NumRows($result); //this value comes
back as zero (0).
echo "RESULT COUNT = $result_count<BR>";
echo "NUMBER OF ROWS = " . msql_NumRows($result); // this is
zero
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Rasmus Lerdorf: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Previous message: Alan Wicks: "[PHP3] filling form dropdown lists from db"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Reply: Rasmus Lerdorf: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Reply: Alan Wicks: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Maybe reply: Richard Lynch: "Re: [PHP3] data doesn't seem to be INSERT INTOing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

