PHP

Post thumbnail

Hi all, Its really true that some are still having problem in localhost PhpMyAdmin, now let me show you some basic ways to handle, create and modify a database and the tables. Open your browser and type localhost/phpmyadmin or 127.0.0.1/phpmyadmin Click on Database as highlighted in the picture below Next Page is the list of…

Read More How to create/manage database,tables and columns in PhpMyAdmin

Hi all, You need to get an image height and width in PHP? which normally use in passport or profile pictures…now try this code am going to give you. <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> <title>PHP Get Image Dimensions</title> </head> <body> <?php list($width, $height) = getimagesize(“images/banner.png”); echo “Width: ” .$width.” Height: ” .$height; ?> </body>…

Read More [PHP] GET IMAGE HEIGHT AND WIDTH

I jst got this trick lst nytNOW LETS STARTin your logout link put it lyk dz <?php echo”<a href=’logout.php?url=”.$_SERVER[PHP_SELF].” ‘>Logout</a>”; ?> NOW IN UR logout.php <?php //assigning $_GET to variable $url = $_GET[url]; //checkin if $_GET comes wit a link if(isset($url)) { session_destroy(); //afta destroyin d session, it redirects back to d link coming with…

Read More [PHP/MYSQL TUT] REDIRECT TO THE SAME PAGE AFTER SESSION DESTROY (LOGOUT)