The document discusses errors encountered when calling localhost on a project folder. It shows deprecated mysql errors, notices about undefined constants, and warnings about headers already being sent and invalid resource errors from mysql queries. It also shows a success message about connecting to a MySQL database and more deprecated, warning, and failure errors encountered on a separate media.php file.
The document discusses errors encountered when calling localhost on a project folder. It shows deprecated mysql errors, notices about undefined constants, and warnings about headers already being sent and invalid resource errors from mysql queries. It also shows a success message about connecting to a MySQL database and more deprecated, warning, and failure errors encountered on a separate media.php file.
The document discusses errors encountered when calling localhost on a project folder. It shows deprecated mysql errors, notices about undefined constants, and warnings about headers already being sent and invalid resource errors from mysql queries. It also shows a success message about connecting to a MySQL database and more deprecated, warning, and failure errors encountered on a separate media.php file.
Mengatasi Masalah Eror saat kita memanggil localhost :
Contoh disini saya sedang memanggil localhost pada :
Folder di C:\wamp\www\proyek
Localhost/proyek tekan enter
( ! ) Deprecated: mysql_connect(): The mysql extension is deprecated and will be
removed in the future: use mysqli or PDO instead in C:\wamp\www\proyek\config\koneksi.php on line 8 Call Stack # Time Memory Function Location 1 0.0010 132336 {main}( ) ..\index.php:0 2 0.0160 137592 include( 'C:\wamp\www\proyek\rss.php' ) ..\index.php:2 3 0.0410 139464 include( 'C:\wamp\www\proyek\config\koneksi.php' ) ..\rss.php:2 4 0.0410 139928 mysql_connect ( ) ..\koneksi.php:8
( ! ) Notice: Use of undefined constant isi_berita - assumed 'isi_berita' in
C:\wamp\www\proyek\rss.php on line 17 Call Stack # Time Memory Function Location 1 0.0010 132336 {main}( ) ..\index.php:0 2 0.0160 137592 include( 'C:\wamp\www\proyek\rss.php' ) ..\index.php:2
( ! ) Notice: Use of undefined constant isi_berita - assumed 'isi_berita' in
C:\wamp\www\proyek\rss.php on line 17 Call Stack # Time Memory Function Location 1 0.0010 132336 {main}( ) ..\index.php:0 2 0.0160 137592 include( 'C:\wamp\www\proyek\rss.php' ) ..\index.php:2
( ! ) Notice: Use of undefined constant isi_berita - assumed 'isi_berita' in
C:\wamp\www\proyek\rss.php on line 17 Call Stack # Time Memory Function Location 1 0.0010 132336 {main}( ) ..\index.php:0 2 0.0160 137592 include( 'C:\wamp\www\proyek\rss.php' ) ..\index.php:2
( ! ) Notice: Use of undefined constant isi_berita - assumed 'isi_berita' in
C:\wamp\www\proyek\rss.php on line 17 Call Stack # Time Memory Function Location 1 0.0010 132336 {main}( ) ..\index.php:0 2 0.0160 137592 include( 'C:\wamp\www\proyek\rss.php' ) ..\index.php:2
( ! ) Notice: Use of undefined constant isi_berita - assumed 'isi_berita' in
C:\wamp\www\proyek\rss.php on line 17 Call Stack # Time Memory Function Location 1 0.0010 132336 {main}( ) ..\index.php:0 2 0.0160 137592 include( 'C:\wamp\www\proyek\rss.php' ) ..\index.php:2
( ! ) Warning: Cannot modify header information - headers already sent by (output
started at C:\wamp\www\proyek\rss.php:17) in C:\wamp\www\proyek\index.php on line 3 Call Stack # Time Memory Function Location 1 0.0010 132336 {main}( ) ..\index.php:0 2 0.1580 157176 header ( ) ..\index.php:3
Success: A proper connection to MySQL was made! The my_db database is great. Host information: localhost via TCP/IP
( ! ) Deprecated: mysql_query(): The mysql extension is deprecated and will be
removed in the future: use mysqli or PDO instead in C:\wamp\www\proyek30juta\media.php on line 15 Call Stack # Time Memory Function Location 1 0.0010 135928 {main}( ) ..\media.php:0 2 0.0960 262712 mysql_query ( ) ..\media.php:15
( ! ) Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean
given in C:\wamp\www\proyek30juta\media.php on line 16 Call Stack # Time Memory Function Location 1 0.0010 135928 {main}( ) ..\media.php:0 2 0.1180 269344 mysql_fetch_array ( ) ..\media.php:16
( ! ) Warning: include(/template.php): failed to open stream: No such file or
directory in C:\wamp\www\proyek30juta\media.php on line 17 Call Stack # Time Memory Function Location 1 0.0010 135928 {main}( ) ..\media.php:0
( ! ) Warning: include(): Failed opening '/template.php' for inclusion
(include_path='.;C:\php\pear') in C:\wamp\www\proyek30juta\media.php on line 17 Call Stack # Time Memory Function Location 1 0.0010 135928 {main}( ) ..\media.php:0