note 57404 added to language.control-structures
| From: | faganel at siol dot net | Date: | Mon, 03 Oct 2005 10:18:34 +0000 |
| Subject: | note 57404 added to language.control-structures | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96282@lists.php.net to get a copy of this message | ||
I would like to open a certain page if the condition is not fulfilled. What is a command to open a
certein link.
I writte a code like this, but is not working:
if($geslo != $geslo2)
{
link(reg2.html);
}
mysql_connect("localhost", "root", "") or die ("Povezave z zbirko
ni mogoce ustvariti!");
.
.
.
I would like to do that, if condition above is not fulfilled opens a reg2.html, without conection to
mySQL db.
many thanks in advance,
M
----
Manual Page -- http://www.php.net/manual/en/language.control-structures.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57404
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57404&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57404&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57404&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57404&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57404&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57404&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57404&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57404&report=yes
Search -- http://master.php.net/manage/user-notes.php