Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
53% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #2K
~16.7K People Reached
Favorite Tags
Member Avatar for Niloofar24

Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post id, a post title, a post author that gets from database. And in the Action column, there is a "delete" …

Member Avatar for lps
0
969
Member Avatar for uchejava

I need your suggestion on something. I want to display a 'message notification' on my menu bar. I want it to be like the Facebook message notification. When I have a new message, '1' should show close to the message menu e.g. 'Message 1' (I can use CSS to style …

Member Avatar for Eagle.Avik
0
203
Member Avatar for Eagle.Avik

hi, i want ajax to be called only once, but insted it calls everytime when i click on the button. my script: $(document).ready(function(){ $("#modal-launcher-user").click(function(){ $('#preloader_image_edit').show(); $.ajax({ url: "image_edit.php", cache: false, }) .done(function( html ) { $("#preloader_image_edit").hide(); $( "#results_image_edit" ).append( html ); }); }); });

Member Avatar for Eagle.Avik
0
630
Member Avatar for Eagle.Avik

hi, as the title says, i want to resize and preview image before i submit it to my server. it is because of reducing load to my server and also give the client ability to crop the image too. i am using `imgareaselect` for cropping. and also using a javascript …

Member Avatar for nauticalmac
0
492
Member Avatar for chrisschristou

hello Dany web friends how to use cookies session in php, how to insert cookie in database table to rember user, i would like to rember what page a user viewed on my website... and i think i can use cookie for SESSION but i don't know how to use.

Member Avatar for chrisschristou
0
1K
Member Avatar for hriti
Member Avatar for hriti
0
1K
Member Avatar for SirMahlon

my form has an option where user can choose to fill but should that option be choose then the form will will submit to two tables if not chosen the one table using php/mysql.table being patient and insurance table. Prompt assistance will be appreciated.thanks $query = "insert into patients (title,patientid,name1, …

Member Avatar for SirMahlon
0
168
Member Avatar for Eagle.Avik

hi want my user to upload images to my server. There is a lot of security risks i am aware of, like: 1. client side validation is not a good idea. 2. PHP code can be embedded into various other data types.(like embeded in a image file) 3. by using …

Member Avatar for cereal
0
731
Member Avatar for RikTelner

Is there a secure PHP encryption on which NSA hasn't put or isn't able to put in future of 20 years it's hands on?

Member Avatar for pritaeas
0
224
Member Avatar for geneh23

Hey everyone, I have a question about how to dynamically change a link based on the current page. Sort of like the "breadcrumb" feature in wordpress. However I don't want it to read as follows: "index.php", "about-us.php"..ect. I want the link to be something like "Home" "About Us" ..ect. How …

Member Avatar for geneh23
0
248
Member Avatar for erum.saeed.75
Member Avatar for pelle12
0
169
Member Avatar for ganges

hi I am new to html I am having set of video files more than 60 in my local drive I like to create hyper link for all those video files in html, I try all the ways in net search but its not working for me can you people …

Member Avatar for Eagle.Avik
0
145
Member Avatar for Eagle.Avik

hi, i want to change the image class on click on the image, i am also using radio input, here is my fiddle, check out and tell me what is wrong? [http://jsfiddle.net/Avik/7aKY3/1/](http://jsfiddle.net/Avik/7aKY3/1/)

Member Avatar for Eagle.Avik
0
333
Member Avatar for RLS0812

Here is a login page I have been working on for a while, what do you think ? It automatically strips "user input" of all special characters. <html> <title>Login Page</title> <head> <style type="text/css"> body { text-align:center; } </style> </head> <?php include "sql.php"; $me = $_SERVER['PHP_SELF']; function check($v){ return isset($_POST[$v]); } …

Member Avatar for Eagle.Avik
0
245
Member Avatar for Eagle.Avik

i am trying to get all the result from my databse table but this query is not working. <?php try { $pdo = new PDO('mysql:host=localhost;dbname=articles', 'Avik', ''); } catch (PDOException $e) { $output = 'Unable to connect to the database server.'; echo $output; exit(); } try { $sql = 'SELECT …

Member Avatar for pritaeas
0
334
Member Avatar for erminasrcutp

Hi everyone , below is my update.php code , however , I am seeking for code to update specific user . For example Search Id : _______________________ [search] if user want to search id details for id : 11 the update.php will show open a page that can update that …

Member Avatar for Lsmjudoka
0
314
Member Avatar for annyangel

i have a database (hello) and it has 2 tables 1. login_tbl and 2. users_tbl both contains the 3 fields id,username,password and id,first_name,last_name respectively. now plz help me to write the php code according to this which helps to search the users details in users_tbl and fetch all the records. …

Member Avatar for annyangel
0
164
Member Avatar for Eagle.Avik

THIS IS A DISCUSSION THREAD NOT Q&A. PLEASE SHARE YOUR THOUGHTS AND IDEAS. I am planning on making a website which mainly will be driven by community users, mods, and admins. It will be a large project but i am ready for it, since community like stackoverflow and daniweb is …

Member Avatar for Eagle.Avik
0
294
Member Avatar for Eagle.Avik

hi how can i fetch data from the database and stroe it into session variable. my code: $sql = "SELECT password, fullname, username, active FROM ".$mysql_table." WHERE (username = :username OR email = :username) AND password = :password"; $statement = $pdo->prepare($sql); $statement->bindValue(':username', $_POST['username']); $statement->bindValue(':password', md5($_POST['password'])); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); if …

Member Avatar for Eagle.Avik
0
267
Member Avatar for Eagle.Avik

hi, can anyone point out why is this script not working?? it does not inserting data into mysql.. here is the script: if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['form_name'] == 'signupform') { $newpassword = $_POST['password']; $confirmpassword = $_POST['confirmpassword']; $code = 'NA'; $active = '1'; if ($newpassword != $confirmpassword) { $error_message = …

Member Avatar for brandon66
0
337
Member Avatar for Amaina

hello folks I'm a greenhorn in PHP so excuse me if i'm being dumb. I have set up a page that is pulling records out of a database table, the user viewing the page is intended the choose a number of the records on the page (using checkboxes) and download …

Member Avatar for Amaina
0
899
Member Avatar for chrisschristou

hello friends i have 3 variable in form option and it content diferent price of shipping and i have varile price of product, and and other variable who is the total, i would like when user choose shipping of his choice that the total change my code is below <?php …

Member Avatar for chrisschristou
0
209
Member Avatar for MattD00

I am building a cms I want to iplement the ability to hide pages. I have a row in mysql named hidden which stores the values 1 and 0. 1 will allow the page to be shown and 0 will hide it. The defalut value is set as 1. When …

Member Avatar for MattD00
0
2K
Member Avatar for levesque123456

I am trying to make a calculator to calculate your age in dog years, the following is the code I have so far, minus the html portion of it <?php if (!isset($_POST['your_age']) ) { header("Location: dog_form.html"); exit; } if ($_POST['your_age'] == "your_age") { $result = ($_POST['your_age'] *7; if ($_POST['your_age'] >= …

Member Avatar for diafol
0
344
Member Avatar for Eagle.Avik

hi, in the mysql we can fetch data and store them into variables, like the code below: if (mysql_num_rows($userquery) != 1) { die ("that member could not be found!"); while($row = mysql_fetch_array ($userquery, MYSQL_ASSOC)){ $first_name = $row['first_name']; $last_name = $row['last_name']; $email = $row['email']; $password = $row['password']; $sex = $row['sex']; $dbusername …

Member Avatar for diafol
0
221
Member Avatar for rhodoscoder

<?php // post_add.php if( isset ($_POST['title']) && ($_POST['body']) && !empty($_POST) ){ require 'connection.php'; $stmt = $conn->prepare('INSERT INTO posts (title,body) VALUES (:title, :body)'); $stmt->bindValue(':title', $_POST['title']); $stmt->bindValue(':body', $_POST['body']); $stmt->execute(); echo 'Entry posted. <a href="post_view.php?id='.$conn->lastInsertId().'">View</a>'; }else if(empty($_POST['title']) || empty($_POST['body']) ){ echo "no values entered"; } ?> As my code is , empty fields …

Member Avatar for Eagle.Avik
0
174
Member Avatar for Asif Naveed

hi i am new in the development field i want a little guide line about the WYSIWYG editor i have website and i want to integrate a wix html 5 type http://www.wix.com/ editor in it i try to edit the tinymce editor but i does not found it flexible as …

Member Avatar for diafol
0
309
Member Avatar for Eagle.Avik

i am having problem with converting my sign in script with pdo here is my script if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['form_name'] == 'loginform') { $success_page = $_COOKIE["redirect"]; $error_page = 'signup_error.php'; $indexlogcheck = 'home.php'; $mysql_table = 'users'; $crypt_pass = md5($_POST['password']); $found = false; $fullname = ''; $session_timeout = time()+60*60*24*30; try …

Member Avatar for Eagle.Avik
0
248
Member Avatar for Eagle.Avik

why is the code below is not working? $sql = "SELECT password, fullname, active FROM ".$mysql_table.""; $sql = $sql . "WHERE username = :username, password = :password"; $statement = $pdo->prepare($sql); $statement->bindValue(':username', $_POST['username']); $statement->bindValue(':password', md5($_POST['password'])); $statement->execute();

Member Avatar for minitauros
0
552
Member Avatar for chrisschristou

hello dear friends i would like to show a text (message ) only if users is login (connect) i use this code but i have a error <?php if ($_SESSION['MM_Username']) empty { echo "<h4>please log in before adding to BASKET</h4>"; } ?>

Member Avatar for chrisschristou
0
193