I simply love PHP,
- Interests
- Coding , Coding And Only Coding.
Re:
Hi I know there are a lot of antivirus software suites out there but I would like to hear from the readers regarding their views of reliable "free" antivirus software. I don't think the big box stores would recommend anything so I am reaching out to this community for an … |
|
Hello Everyone Help needed, Has anyone implemented frequency analysis attack on caesar cipher in PHP and predicting the possible key for it. it should input the cipher text and predict the key using frequency analysis chart. |
|
Hello DaniWeb, I want to develop PHP application, when there is Entry in specific table of database, it should send that information to subcribers on their emails, i am new to PHP. Suggest me solution to this problem. Thanks: |
|
Re:
Hello, I am creating login system with session for secure login and logout. Yet, I don't think it works as it suppose to be. This is my codes: admin.php <?php // Check if session is not registered, redirect back to main page. // Put this code in first line of … |
|
Re:
Hey everyone i have a little problem with the navigation bar, i have created the design of the menu but i want to be in one file (menu.html) and to show on all pages in the website... here is my code for `menu.html` <html> <body> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <style> form.position-and-style … |
|
Re:
how to convert this old fastioned mysql statements to pdo? <?php error_reporting(0); define("host","localhost"); define("user","root"); define("password",""); define("db","pass2"); $connect_db=mysql_connect(host,user,password) or die("cannot connect"); mysql_select_db(db, $connect_db); $username=strtolower(addslashes($_POST['username'])); $password=strtolower(addslashes($_POST['password'])); $sql="SELECT * FROM users WHERE username='$username' AND password='$password'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $count=mysql_num_rows($result); if($count==1 && $_POST['userlevel'] == "admin") { session_start(); $_SESSION['id']=$row['id']; header("location: admin.php"); } else if($count==1 && $_POST['userlevel'] … |
|
Hello , I am Ali from Pakistan and new to this forum and addicted to it. People here are so helping. ;) |
|
Re:
<?php session_start(); ?> error_reporting(E_PARSE); include "connection.php"; $User_ID=$_SESSION['UserId']; $query = mysql_query("SELECT * FROM Users WHERE UserID='$User_ID'"); $row = mysql_fetch_array($query); $filename=$row['PicUrl']; $username=$row['UserName']; $fName=$row['FirstName']; if(isset($_SESSION["UserName"])){ if(!empty($filename)){echo '<img src="'.$filename.'" align="left"width="150px" height="100px"/>';} echo $fName; echo"<li><a href='logout.php'>Click here to Logout.</a></li>"; echo"<li><a href='user_update.php'>edit your account detail</li>"; } if(empty($_SESSION['UserName'])){ echo"<li><a href='login.php'>login</a></li>"; echo"<li><a href='register.php'>Sign Up</li>"; } ?> </li> </ul> … |
|
Re:
Hi, I make a delete page with php to delete clients from clients table. With this page I try to delete images from gallery table. for example I wish to delete client ABC from clients table and it have three images in gallery table. here under I paste the code … |
|
Re:
Hello, I wonder why I get this error: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in C:\xampp\htdocs\squprime\registration1.php on line 65 line 65: if(!empty($stu_fname && $stu_lname && $stu_email && $stu_telp && $stu_skype)){ Thanks before. |
|
Re:
I want to insert a URL inside an echoed table row. Here is the URL and table column: <a href="modify-user.php?id=<?php echo $row["id"]; ?>">Modify</a> Here is the table column: printf("<td class=\"listusers\">" "</td>"); Thanks for your help in advance. |
|
move_uploaded_file not working. althought the query works fine. newbie to php & daniweb :) . if($page=="Image") { $uploads_dir = '/gallery'; $tmp_name = $_FILES["t1"]["name"]; $name = $_FILES["t1"]["name"]; move_uploaded_file($tmp_name, "$uploads_dir/$name"); $insert="insert into gallery values('','$tmp_name')"; $query=mysql_query($insert); if($query) { header("Location:gallery.php"); } else { mysql_error(); } } |
|
Re:
Hello, I wonder why in this specific sql table I do not see edit, copy & delete in xampp: from_stu_username date messages to_stu_username admin 0000-00-00 messages btjong ----------------------- Other Sql Table has Edit, Copy & Delete Except for messages. Here is my php code for adding the new data in … |
|
Re:
I want to recover my windows 8 from my windows 8 recovery media cd which I got with my laptop. But problem is that my laptop don't have CD drive. How I can use this CD. Can I share that DVD rom of other pc if it is so then … |
|
Re:
i want to display 3 data per row and n number of rows. someone help me to do this. <div class="top-box"> <?php include("config.php"); $sub2_category_id = $_GET['sub2product_id']; $sub2_category_name = $_GET['sub2product_name']; echo '<h2 class="head">'.$sub2_category_name.'</h2>'; $sql = mysql_query("SELECT p.`product_id`, p.`brand_name`, p.`brand_path`, p.`sub2_category_id`, p.`sub_category_id`, p.`main_category_id`, p.`date`,ba.`brand_amount_id`, ba.`available_pack`, ba.`mrp_amount`, ba.`our_price`, ba.`product_id` FROM `product` p JOIN … |
|
Re:
Hello i try to update the Image using Update Query in MySQL here's the code $pic = $_FILES['photo']['name']; $sql = "UPDATE `std_login` SET `imagename` = '$pic' WHERE `std_id_no` = '$std_id'"; the File upload works, but not Stored in Database. what to do? help me please. |
|
Hello DaniWeb, I am working on project in which admin generates dynamic query by selecting value from the First dropdown(program) then second dropdown (semester). The concept is that For example: if admin select "MSCS" from the first dropdown list and "3" from the second dropdown list. it should populate all … |
|
Re:
I need to get the list of diagnosed disease of the patient by choosing his name in the combo box,how can I do that? This is my code. <select name="pname" class="textfields" id="model" style="width:180px;" onchange="getVal1();"> <option id="0" >--Select Patient Name--</option> <?php $con=mysqli_connect("localhost","root","","dbnpatient"); if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " … |
|
Re:
<?php session_start(); mysql_connect("localhost","root",""); mysql_select_db("secure"); $name = $_POST['n']; $address = $_POST['x']; $order = "INSERT INTO user VALUES('$name','$address')"; if($result) { echo("Input data is succeed");} else { echo("Input data is fail");} ?> Error: No base was selected |
|
Re:
Hi everyone.. I'm using a very simple code to remove an item from session array. I just jave no idea why it returns SQL error like this in another page that initiated the deletion: You have an error in your SQL syntax; check the manual that corresponds to your MySQL … |
|
Re:
Hi, I'm new to web development sector. Can anyone suggest me some tips or blogs to gain information about the web development with emerging ideas and tricks. |
|
Hello DaniWeb. I want to generate dynamic table for my cources table. I have tried this code but the header(semester) seems not to be working. <section class="entry-content"> <?php $counter=1; $slect="Select * from mcs"; $qry= mysql_query($slect); while($row=mysql_fetch_row($qry)) { if($counter==$row[1]) { print "<div class='heading vcMsg'> <h3>SEMESTER $row[1] </h3> </div> <div class='column message-column'> … |
|
Re:
<?php if(isset($_POST['login'])) { require 'connection.php'; include 'password.php'; $email = $_POST['email']; $password = $_POST['pass']; $query = $dbh->prepare("SELECT id,name,email,password FROM users WHERE email = :email"); $query->bindParam(':email', $email, PDO::PARAM_STR); $query->execute(); $userData = $query->fetch(PDO::FETCH_ASSOC); $userEmail = $userData['email']; $hash = $userData['password']; if(password_verify($password, $hash) && $email == $userEmail) { session_start(); $_SESSION['sess_user_id'] = $userData['id']; $_SESSION['sess_name'] = $userData['name']; … |