No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
Dear user I write a file upload code in php, the code work's fine but it will upload the file 50kb to 60kb, when i try to upload more then 50kb to 60 kb file then the page stuck on loading. The problem is why it is not uploading more … | |
I have an issue in select query. I want to select total_comment From comment table and show it under each post. **What I Try** SELECT SUM(total_comment) AS comment FROM user_comment INNER JOIN post ON user_comment.image_id = post.id WHERE status = 0 **And** SELECT SUM(total_comment) AS comment FROM user_comment WHERE status … | |
Re: you can try this.. i think you miss a query after line 165, when you enter a query then try this. if($num_rows = mysql_num_rows($query)) { your statement here; } else { echo something here } | |
Re: Dear try these steps.. 1) First check that your database column name is same as you enter in the query. 2) fix your query to this... $smt=mysqli_query($con,"INSERT INTO member (name, password, email)VALUES('".$name."', '".$password."', '".$email."')"); if($smt) do something here } else { show error here } | |
Re: Do the folowing steps: 1) in index.php <?php require_once 'themes/index.php'; ?> 2) <!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <img src="images/img1.jpg"> </body> </html> OR try this 3) <!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <img src="../images/img1.jpg"> </body> </html> | |
HY! i have an issue in php session. the issue is that the session work fine in index page but the username can't show in other pages. lohin.php code <?php session_start(); include './header.php'; include 'connection.php'; if(isset($_POST) && count($_POST)>0) { $user = $_POST['username']; $pass = $_POST['password']; $sSQL = "SELECT * FROM … |
The End.