| version 1.23, 2002/10/30 11:49:56 |
version 1.24, 2002/11/02 13:24:28 |
|
|
| * http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.22 2002/10/29 16:54:47 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.23 2002/10/30 11:49:56 nepto Exp $ */ |
| |
|
| /* phpMyEdit intro {{{ */ |
/* phpMyEdit intro {{{ */ |
| /* |
/* |
| Line 2664 echo '<h5>'.mysql_affected_rows ().' '.$ |
|
| Line 2664 echo '<h5>'.mysql_affected_rows ().' '.$ |
|
| { |
{ |
| if (!isset($this->db)) { |
if (!isset($this->db)) { |
| echo '<h1>phpMyEdit: no database defined</h1>'."\n"; |
echo '<h1>phpMyEdit: no database defined</h1>'."\n"; |
| return; |
return false; |
| } |
} |
| if (!isset ($this->tb)) { |
if (!isset ($this->tb)) { |
| echo '<h1>phpMyEdit: no table defined</h1>'."\n"; |
echo '<h1>phpMyEdit: no table defined</h1>'."\n"; |
| return; |
return false; |
| } |
} |
| |
|
| if ($dbl = @mysql_pconnect($this->hn, $this->un, $this->pw)) ; |
if ($dbl = @mysql_pconnect($this->hn, $this->un, $this->pw)) ; |
| else { |
else { |
| echo '<h1>phpMyEdit: could not connect to MySQL</h1>'."\n"; |
echo '<h1>phpMyEdit: could not connect to MySQL</h1>'."\n"; |
| return; |
return false; |
| } |
} |
| |
|
| |
return true; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| /* |
/* |
| Line 2697 echo '<h5>'.mysql_affected_rows ().' '.$ |
|
| Line 2699 echo '<h5>'.mysql_affected_rows ().' '.$ |
|
| echo "</pre>\n"; |
echo "</pre>\n"; |
| */ |
*/ |
| |
|
| /* Database connection*/ |
/* Database connection */ |
| $this->connect(); |
if ($this->connect() == false) |
| |
return false; |
| |
|
| /* |
/* |
| * ====================================================================== |
* ====================================================================== |