Re: I am facing problem!
| From: | Gabor Hojtsy | Date: | Sat, 23 Nov 2002 10:49:17 +0000 |
| Subject: | Re: I am facing problem! | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-13819@lists.php.net to get a copy of this message | ||
The Internet Joke DatabaseSorry, but this email address is not the appropriate forum for asking
support questions. For a list of more appropriate places to
ask for help using PHP, please visit http://php.net/support
Thank you for your interest in PHP.
Goba [one webmaster@php.net]
----- Original Message -----
From: Noman Hashmi
To: webmaster@php.net
Sent: Thursday, November 21, 2002 10:46 PM
Subject: I am facing problem!
Hi!
I have installed php 4.2.3 on win 2000 server having
mysql latest release and IIS 5.0 which I configured
for php. The problem I am facing is that when I
connect database through php code, it retrieve data
from table and displays but donot update, insert or
delete data from table????
file is attached!
what is solution. please help.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
------------------------------------------------------------------------------
Type your joke here:
Your joke has been added.
"); } else { echo("
Error adding submitted joke: " ... mysql_error() . "
"); } } // If a joke has been deleted, // remove it from the database. if
(isset($deletejoke)) { $sql = "DELETE FROM Jokes WHERE ID=$deletejoke"; if
(@mysql_query($sql)) { echo("
The joke has been deleted.
"); } else { echo("
Error deleting joke: " . mysql_error() . "
"); } } echo("
Here are all the jokes in our database:
"); // Request the ID and text of all the jokes $result = @mysql_query("SELECT ID,
JokeText FROM Jokes"); if (!$result) { echo("
Error performing query: " . mysql_error() ... "
"); exit(); } // Display the text of each joke in a paragraph // with a "Delete this
Joke" link next to each. while ( $row = mysql_fetch_array($result) ) { $jokeid =
$row["ID"]; $joketext = $row["JokeText"]; echo("
$joketext " . "" ... "Delete this Joke
"); } // When clicked, this link will load this page // with the joke submission form
displayed. echo("
Add a Joke!
"); endif; ?>