dongwei4652 2016-12-04 21:14
浏览 82

如何解决cpanel服务器中的PHP错误日志导致空白屏幕php页面

Good day to everyone. I found this below php coding errors in the "error_log" which is in my cpanel server root directory, causing the php page for a schoolsystem I developed to be blank screen on browsers. I have tried, all I could but not working for me.

**`BELOW IS THE ERROR_LOG CONTENT:`**

[03-Dec-2016 10:17:36 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_pconnect() in /home/xayoutys/public_html/schoolsystem/functions/connection.php:14
Stack trace:
#0 /home/xayoutys/public_html/schoolsystem/setup.php(4): include()
#1 {main}
  thrown in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 10:19:06 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_pconnect() in /home/xayoutys/public_html/schoolsystem/functions/connection.php:14
Stack trace:
#0 /home/xayoutys/public_html/schoolsystem/setup.php(4): include()
#1 {main}
  thrown in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 10:19:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_pconnect() in /home/xayoutys/public_html/schoolsystem/functions/connection.php:14
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: style in /home/xayoutys/public_html/schoolsystem/setup.php on line 17
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: url in /home/xayoutys/public_html/schoolsystem/setup.php on line 18
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: name in /home/xayoutys/public_html/schoolsystem/setup.php on line 19
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: save in /home/xayoutys/public_html/schoolsystem/setup.php on line 20
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: stype in /home/xayoutys/public_html/schoolsystem/setup.php on line 21
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: import in /home/xayoutys/public_html/schoolsystem/setup.php on line 23
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: username in /home/xayoutys/public_html/schoolsystem/setup.php on line 24
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: password in /home/xayoutys/public_html/schoolsystem/setup.php on line 25
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: host in /home/xayoutys/public_html/schoolsystem/setup.php on line 26
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined index: database in /home/xayoutys/public_html/schoolsystem/setup.php on line 27
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 262
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 262
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 278
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 278
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 288
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 288
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 298
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 298
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 308
[03-Dec-2016 10:21:20 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 308
[03-Dec-2016 10:22:52 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 10:22:52 UTC] PHP Notice:  Undefined index: style in /home/xayoutys/public_html/schoolsystem/setup.php on line 17
[03-Dec-2016 10:22:52 UTC] PHP Notice:  Undefined index: url in /home/xayoutys/public_html/schoolsystem/setup.php on line 18
[03-Dec-2016 10:22:52 UTC] PHP Notice:  Undefined index: name in /home/xayoutys/public_html/schoolsystem/setup.php on line 19
[03-Dec-2016 10:22:52 UTC] PHP Notice:  Undefined index: save in /home/xayoutys/public_html/schoolsystem/setup.php on line 20
[03-Dec-2016 10:22:52 UTC] PHP Notice:  Undefined index: stype in /home/xayoutys/public_html/schoolsystem/setup.php on line 21
[03-Dec-2016 10:22:52 UTC] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/setup.php on line 47
[03-Dec-2016 10:22:53 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: style in /home/xayoutys/public_html/schoolsystem/setup.php on line 17
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: url in /home/xayoutys/public_html/schoolsystem/setup.php on line 18
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: name in /home/xayoutys/public_html/schoolsystem/setup.php on line 19
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: save in /home/xayoutys/public_html/schoolsystem/setup.php on line 20
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: stype in /home/xayoutys/public_html/schoolsystem/setup.php on line 21
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: import in /home/xayoutys/public_html/schoolsystem/setup.php on line 23
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: username in /home/xayoutys/public_html/schoolsystem/setup.php on line 24
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: password in /home/xayoutys/public_html/schoolsystem/setup.php on line 25
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: host in /home/xayoutys/public_html/schoolsystem/setup.php on line 26
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined index: database in /home/xayoutys/public_html/schoolsystem/setup.php on line 27
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined variable: aval in /home/xayoutys/public_html/schoolsystem/setup.php on line 136
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined variable: ain in /home/xayoutys/public_html/schoolsystem/setup.php on line 163
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 173
[03-Dec-2016 10:22:53 UTC] PHP Notice:  Undefined variable: aval in /home/xayoutys/public_html/schoolsystem/setup.php on line 188
[03-Dec-2016 10:24:02 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 10:24:02 UTC] PHP Notice:  Undefined index: import in /home/xayoutys/public_html/schoolsystem/setup.php on line 23
[03-Dec-2016 10:24:02 UTC] PHP Notice:  Undefined index: username in /home/xayoutys/public_html/schoolsystem/setup.php on line 24
[03-Dec-2016 10:24:02 UTC] PHP Notice:  Undefined index: password in /home/xayoutys/public_html/schoolsystem/setup.php on line 25
[03-Dec-2016 10:24:02 UTC] PHP Notice:  Undefined index: host in /home/xayoutys/public_html/schoolsystem/setup.php on line 26
[03-Dec-2016 10:24:02 UTC] PHP Notice:  Undefined index: database in /home/xayoutys/public_html/schoolsystem/setup.php on line 27
[03-Dec-2016 10:24:05 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined index: import in /home/xayoutys/public_html/schoolsystem/setup.php on line 23
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined index: username in /home/xayoutys/public_html/schoolsystem/setup.php on line 24
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined index: password in /home/xayoutys/public_html/schoolsystem/setup.php on line 25
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined index: host in /home/xayoutys/public_html/schoolsystem/setup.php on line 26
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined index: database in /home/xayoutys/public_html/schoolsystem/setup.php on line 27
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 262
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 262
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 278
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 278
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 288
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 288
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 298
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 298
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 308
[03-Dec-2016 11:21:39 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 308
[03-Dec-2016 11:26:58 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 11:27:07 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 11:27:09 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: style in /home/xayoutys/public_html/schoolsystem/setup.php on line 17
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: url in /home/xayoutys/public_html/schoolsystem/setup.php on line 18
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: name in /home/xayoutys/public_html/schoolsystem/setup.php on line 19
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: save in /home/xayoutys/public_html/schoolsystem/setup.php on line 20
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: stype in /home/xayoutys/public_html/schoolsystem/setup.php on line 21
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: import in /home/xayoutys/public_html/schoolsystem/setup.php on line 23
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: username in /home/xayoutys/public_html/schoolsystem/setup.php on line 24
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: password in /home/xayoutys/public_html/schoolsystem/setup.php on line 25
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: host in /home/xayoutys/public_html/schoolsystem/setup.php on line 26
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined index: database in /home/xayoutys/public_html/schoolsystem/setup.php on line 27
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 262
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 262
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 278
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 278
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 288
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 288
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 298
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 298
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 308
[03-Dec-2016 11:27:09 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 308
[03-Dec-2016 11:27:40 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 11:27:40 UTC] PHP Notice:  Undefined index: style in /home/xayoutys/public_html/schoolsystem/setup.php on line 17
[03-Dec-2016 11:27:40 UTC] PHP Notice:  Undefined index: url in /home/xayoutys/public_html/schoolsystem/setup.php on line 18
[03-Dec-2016 11:27:40 UTC] PHP Notice:  Undefined index: name in /home/xayoutys/public_html/schoolsystem/setup.php on line 19
[03-Dec-2016 11:27:40 UTC] PHP Notice:  Undefined index: save in /home/xayoutys/public_html/schoolsystem/setup.php on line 20
[03-Dec-2016 11:27:40 UTC] PHP Notice:  Undefined index: stype in /home/xayoutys/public_html/schoolsystem/setup.php on line 21
[03-Dec-2016 11:27:40 UTC] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/setup.php on line 47
[03-Dec-2016 11:27:41 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: style in /home/xayoutys/public_html/schoolsystem/setup.php on line 17
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: url in /home/xayoutys/public_html/schoolsystem/setup.php on line 18
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: name in /home/xayoutys/public_html/schoolsystem/setup.php on line 19
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: save in /home/xayoutys/public_html/schoolsystem/setup.php on line 20
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: stype in /home/xayoutys/public_html/schoolsystem/setup.php on line 21
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: import in /home/xayoutys/public_html/schoolsystem/setup.php on line 23
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: username in /home/xayoutys/public_html/schoolsystem/setup.php on line 24
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: password in /home/xayoutys/public_html/schoolsystem/setup.php on line 25
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: host in /home/xayoutys/public_html/schoolsystem/setup.php on line 26
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined index: database in /home/xayoutys/public_html/schoolsystem/setup.php on line 27
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined variable: aval in /home/xayoutys/public_html/schoolsystem/setup.php on line 136
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 136
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined variable: ain in /home/xayoutys/public_html/schoolsystem/setup.php on line 136
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 136
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined variable: ain in /home/xayoutys/public_html/schoolsystem/setup.php on line 136
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 136
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined variable: ain in /home/xayoutys/public_html/schoolsystem/setup.php on line 163
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 163
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined variable: aval in /home/xayoutys/public_html/schoolsystem/setup.php on line 173
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 173
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Undefined variable: aval in /home/xayoutys/public_html/schoolsystem/setup.php on line 188
[03-Dec-2016 11:27:41 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 188
[03-Dec-2016 11:27:59 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 11:27:59 UTC] PHP Notice:  Undefined index: import in /home/xayoutys/public_html/schoolsystem/setup.php on line 23
[03-Dec-2016 11:27:59 UTC] PHP Notice:  Undefined index: username in /home/xayoutys/public_html/schoolsystem/setup.php on line 24
[03-Dec-2016 11:27:59 UTC] PHP Notice:  Undefined index: password in /home/xayoutys/public_html/schoolsystem/setup.php on line 25
[03-Dec-2016 11:27:59 UTC] PHP Notice:  Undefined index: host in /home/xayoutys/public_html/schoolsystem/setup.php on line 26
[03-Dec-2016 11:27:59 UTC] PHP Notice:  Undefined index: database in /home/xayoutys/public_html/schoolsystem/setup.php on line 27
[03-Dec-2016 11:28:00 UTC] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xayoutys/public_html/schoolsystem/functions/connection.php on line 14
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: style in /home/xayoutys/public_html/schoolsystem/setup.php on line 17
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: url in /home/xayoutys/public_html/schoolsystem/setup.php on line 18
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: name in /home/xayoutys/public_html/schoolsystem/setup.php on line 19
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: save in /home/xayoutys/public_html/schoolsystem/setup.php on line 20
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: stype in /home/xayoutys/public_html/schoolsystem/setup.php on line 21
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: import in /home/xayoutys/public_html/schoolsystem/setup.php on line 23
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: username in /home/xayoutys/public_html/schoolsystem/setup.php on line 24
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: password in /home/xayoutys/public_html/schoolsystem/setup.php on line 25
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: host in /home/xayoutys/public_html/schoolsystem/setup.php on line 26
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined index: database in /home/xayoutys/public_html/schoolsystem/setup.php on line 27
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 262
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 262
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 278
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 278
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 288
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 288
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 298
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 298
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Undefined variable: val in /home/xayoutys/public_html/schoolsystem/setup.php on line 308
[03-Dec-2016 21:09:01 UTC] PHP Notice:  Trying to get property of non-object in /home/xayoutys/public_html/schoolsystem/setup.php on line 308

CONNECTION.PHP Code:

<?php
$aut_host = 'localhost';//e.g localhost
$aut_user = 'xayoutys_sman';
$aut_pass = 'school009#';
$aut_db = 'xayoutys_sman';

//$connect = mysql_pconnect('localhost', 'root', '');
//mysql_select_db('xsman');

/*$connect = mysql_pconnect('127.0.0.1', 'kokotrad_sman', 'cool');
$xtzone = mysql_query("SET time_zone = 'Africa/Lagos'");
mysql_select_db('kokotrad_sman');*/

$connect = mysqli_connect( 'localhost', 'xayoutys_sman', 'school009#');
$xtzone = mysql_query("SET time_zone = 'Africa/Lagos'");
mysql_select_db('xayoutys_sman');

if(@$page != 'setup')
{
//school type
$qtype = mysql_query("select type from type where id = 1");
$qtype_row = mysql_fetch_row($qtype);
$type = $qtype_row[0];

//sms sender id
$xsendq = mysql_query("select sender from smsapi where id = 1");
if(mysql_num_rows($xsendq) > 0)
{
    $xsendq_row = mysql_fetch_row($xsendq);
    $xsender = $xsendq_row[0];
}

//get style
$cstyle = mysql_query("select style, school_name, url, logo_ext from info where id = 1");
$cstyle_row = mysql_fetch_row($cstyle);
$xcstyle = $cstyle_row[0];
$csch_name = $cstyle_row[1];
$curlx = $cstyle_row[2];
$clogo_ext = $cstyle_row[3];

if($type == 'university')
{
    $tl = 'Lecturer';
    $cac = 'Association';
    $cco = 'Course';
}
elseif($type == 'school')
{
    $tl = 'Teacher';
    $cac = 'Club';
    $cco = 'Subject';
}

}//setup
?>

SETUP.PHP CODES

<?php
$page = 'setup';

include('functions/connection.php');
include('functions/error_success.php');
include('objects/query.php');
include('objects/upload_download.php');

//check stat
$check = new select();
$check->pick('info', 'stat', 'id', "1", '', 'record', '', '', '=', '');
if($check->count > 0)
{
    $check_row = mysql_fetch_row($check->query);
}

$style = $_POST['style'];
$url = $_POST['url'];
$name = $_POST['name'];
$save = $_POST['save'];
$stype = $_POST['stype'];

$import = $_POST['import'];
$username = $_POST['username'];
$password = $_POST['password'];
$host = $_POST['host'];
$database = $_POST['database'];

if($import)
{
    $val = new validate();
    $val->valid("$database,$username,$host");
    if($val->error_code < 1)
    {
        // Name of the file
$filename = 'sman.sql';
// MySQL host
$mysql_host = $host;
// MySQL username
$mysql_username = $username;
// MySQL password
$mysql_password = $password;
// Database name
$mysql_database = $database;

// Connect to MySQL server
mysql_connect($mysql_host, $mysql_username, $mysql_password) or die('Error connecting to MySQL server: ' . mysql_error());
// Select database
mysql_select_db($mysql_database) or die('Error selecting MySQL database: ' . mysql_error());
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 有人会搭建GPT-J-6B框架吗?有偿
    • ¥15 求差集那个函数有问题,有无佬可以解决
    • ¥15 【提问】基于Invest的水源涵养
    • ¥20 微信网友居然可以通过vx号找到我绑的手机号
    • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
    • ¥15 解riccati方程组
    • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
    • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
    • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
    • ¥50 树莓派安卓APK系统签名