Posts

How to display content of mysql table to php page | AkshayBSoputions

1.Create database with name ProjectDb in mysql. 2. Create table accounts. 3. Write following code to your editor. <?php $con=mysqli_connect("localhost","root","","ProjectDb"); ?> <html> <head> <style type="text/css"> table{ width:50%; margin-left:25%; } </style> </head> <body> <table border="1"> <tr> <th>UN</th> <th>EMAIL</TH> <th>CONTACT</th> </tr> <?php $query="select * from accounts"; $i=0; $result=mysqli_query($con,$query); while($row=mysqli_fetch_assoc($result)){ if($i%2==0){ ?> <tr> <td><?php echo $row['UN'] ?></td> <td><?php echo $row['EMAIL'] ?></td> <td><?php echo $row['CONTACT'] ?></td> </tr> <?php }else{ ?> <tr bgcolor="gray"> <td><?php echo $...

How to add icon to pendrive

Image
1. Right click on photo that you want to use as icon to pendrive and select edit option. 2. The image will open in paint. Click on File > save as > BMP picture. 3. Create new text document and write following code: [autorun] icon=icon.bmp 4. Save file with autorun.inf name. 5. Now copy both image and file to your pendrive. 6. Right click on pendrive and click on eject option. 7. Reconnect your pendrive. You will see the icon on your pendrive. Done !!!

Cannot resolve symbol R in android studio

If such error occured in your android studio, then this may be due to caches. To solve this problem first go to File -> Invalidate cache/Restart . If this doesn't work then try another method : Go to Build  -> Clean project . This may solve the error.

Content is not allowed in prolog error on line1

Image
This error occurs in android studio when the software is unexpectedly exited. And you will not get the recently opened files when you restart the software. All you need to do is as follows: 1. Exit the application when you get such error. 2. Go to your file explorer >> "C:\Users\ <username> \AndroidStudioProjects\ <project name> \.idea" 3. Here you will find workspace.xml file. Delete the same. 4. Now start the Android studio again. The error will be disappeared. 5. Done !!!

Unable to access internet even when connected to wifi

Image
It may happen that you are connected to internet through wifi and still you are unable to access internet. In this case you can follow the steps: 1. Right click on your connection symbol on bottom right side of your desktop. And click on "Open network and sharing center". 2. The control panel network and sharing center will be opened. Click on your network name, the popup window will be opened. 3. Click on properties, another popup window will be opened. 4. Double click on internet protocol version IPV4. you will get ipv4 properties window. 5. Click on "obtain ip address automatically" and press ok button. 6. Now go to any browser and try to access internet. If same problem occurred again then go to control panel network and sharing center again and click on change adapter settings 7. Right click on wifi network. and select disable 8. Your network adapter will be disabled. Now again right click on wifi network and select enable. ...

Use mobile camera as webcam

Image
1. Go to your google play store and search for ip webcam app. 2. Start hotspot in your mobile and connect your computer to it. 3. Open the ip webcam app and scroll down, you will see the start server option. 4. Click on start server and your mobile camera will be started. And you will see the ip address at bottom of your screen as follows. 5. Start any browser in your computer and type this ip address to the search bar. 6. After you hit enter the following window will be in front of you. 7. Click on browse button and everything that is in front of your camera will be reflected to your computer. 8. Below to that there are certain options where you can take photo, start video shooting, use front camera etc. 9. Done !!!

How to view android screen on computer

Image
1. Download the vysor application on your computer. (" vysor ") 2. Connect your android device to the computer. 3. Run the application that you have downloaded. The window as shown below will be in front of you. 4. The name of device currently connected to the computer will be shown in the box. Click on view button next to the device. 5. You will see the device loading for few seconds. 6. And your android screen will be reflected to your computer. 7. Now everything done on you android screen will be reflected to computer screen and you can perform operation using mouse and keyboard also. 8. Done!!!