39,326 Topics

Member Avatar for
Member Avatar for php@intel

hello i want to crop my image by selecting the face and mark its coordinates but unable to find that can anyone help me out

Member Avatar for almostbob
0
49
Member Avatar for azegurb

Hi all, i have web application and login form. i would like when i exit (logout) it automatically logs out from all devices (or browsers or PC). Can anyone help me?

Member Avatar for broj1
0
260
Member Avatar for khin thida phyo
Member Avatar for khin thida phyo

I have category table and product table.I retrieved item name from category table.Product table has id,image,title,category,description.If I choose one item from category,I want to display image concern with it. This is my code.

Member Avatar for Traevel
0
37
Member Avatar for SimonIoa

I just installed ZEND STUDIO to make a mobile application out of my php files. Does anyone knows any good tutorial or examples?

Member Avatar for SimonIoa
0
349
Member Avatar for sheriffkhalid

i need this to clarify . .. // Parse error: syntax error, unexpected '=', expecting ')' in /home/dsyslabs/public_html/users/canapprove/core/test_sup_form/index.php on line 9

Member Avatar for broj1
0
36
Member Avatar for davy_yg

update_image.php if($image_width > $data2['maxwidth'] or $image_height > $data2['maxheight']) { echo '<br>'."Image is too big".'<br>'; echo $image_width.'>'.$data2['maxwidth_bn'].'<br>'; echo $image_height.'>'.$data2['maxheight_bn']; exit(); } Successfully upload pictures Image is too big 995>1000 229>240 I wonder why the condition pass? It suppose to be too small instead of too big.

Member Avatar for Traevel
-1
127
Member Avatar for Stefce

Hello i need little help overhere im confuzed getting user data from mysql database i want to update the `payCheck` column in the database but that column is located in the `receiver` or `where (in the code)` field i have this code please someone help me... <?php require 'connect.php'; require …

Member Avatar for Stefce
0
726
Member Avatar for EvolutionFallen

Hi folks, I have a situation that's most easily explained via example, I think. So here goes. Let's say I have the following URLs: 1. /page.asp?id=123 2. /page.asp?id=123&category=ABC 3. /page.asp?id=123&category=ABC&var3=X&var4=Y I need these pages redirected. Currently links 1, and 2 redirect correctly. Option 3 though can have an arbitrary number …

Member Avatar for mattster
0
416
Member Avatar for Lonestar Jack

When I remove or comment out the alert statement it fails. $(document).ready(function(){ $('#div_db, #div_tables, #div_data, #div_nav').hide(); $("#div_db").load("generic_get_dbs.php"); $('#div_db').show(); alert('line 5'); });

Member Avatar for Lonestar Jack
0
134
Member Avatar for SHAHAB UDDIN

------------------------------------------------------ Main code: ------------------------------------------------------ public function forum_detail_info($post_id) { $data = array(); $this->load->library('pagination'); $config['base_url'] = base_url() . 'welcome/forum_detail_info/'; $config['total_rows'] = $this->db->count_all('tbl_forum'); $config['per_page'] = 3; $this->pagination->initialize($config); $data['about'] = $this->welcome_model->about_info(); $data['about'] = $this->welcome_model->about_info(); $data['forum_post_info'] = $this->welcome_model->select_all_forum_post_info($post_id); //---------------more $this->load->view('website/include/header', $data); $this->load->view('website/master_page', $data); $this->load->view('website/include/footer'); } ---------------------------------------------- I want code: ---------------------------------------------- public function forum_detail_info($post_id) { $data …

Member Avatar for Web Dev Rob
0
313
Member Avatar for davy_yg

dashboard.php <table border="1"> <tr> <!-- <tr> --> <?php $i = 1; if($pager->paginate()) { $result = $pager->paginate(); while($data = mysql_fetch_assoc($result)) { ?> <td></td> <td><a href="dashboard.php"><img src="images/<?php echo $data['newfilename']; ?>" height="150px" width="150px"><?php $filename = $data['newfilename']; //echo $filename; $_SESSION['class'] = $data['class']; //$_SESSION['echo $filename']; ?><br><br><?php echo $data['class']; ?></a> <a href="#" onclick="doSomething();">Click Me!</a> <?php if($i …

Member Avatar for Web Dev Rob
-1
197
Member Avatar for santhoshweb

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/wwwjjtex/public_html/contacts.php:2) in /home/wwwjjtex/public_html/contacts.php on line 2 AND my code is margin-left: 94px; margin-top: -66px; margin-left: 94px; margin-top: -66px; max-width: 100%;"/></a></h1> <nav> <ul class="menu"> <li><a href="index.php">home</a></li> <li><a href="about_us.php">about as</a></li> <li><a href="product.php">product</a></li> <li><a href="<?php session_start(); if(isset($_SESSION['login_user'])){ echo …

Member Avatar for Web Dev Rob
0
166
Member Avatar for robertlaar
Member Avatar for Sophia_1

<?php $host="localhost"; // Host name $username="user"; // Mysql username $password=""; // Mysql password $db_name="pqa"; // Database name $tbl_name="improvement_plan"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $Ipid=$_GET['Ipid']; // Retrieve …

Member Avatar for Taywin
0
348
Member Avatar for AntonyRayan

this is my index.page <html> <head><title>Registration</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> <script src='http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js'></script> <script type="text/javascript"> function validate() { if(document.register.name.value == "") { alert('Enter valid name'); document.register.name.focus(); return false; } if(document.register.email.value == "") { alert('Enter valid email'); document.register.email.focus(); return false; } else if(document.register.password == "") { alert('Enter Password'); document.register.password.focus(); return false; } if(document.register.repeatpassword.value …

Member Avatar for broj1
0
201
Member Avatar for Sophia_1

<script> function calculateText(el) { var form = el.form; var idx = form.Selfrating1.selectedIndex; if (idx <= 0) { form.reset(); return; } if (form.Selfrating1.value == "Good") { form.T11.value = "#008000"; } else if (form.Selfrating1.value == "Satisfactory") { form.T11.value = "#9ACD32"; } else if (form.Selfrating1.value == "Mixed") { form.T11.value = "#FFFF00"; } else …

Member Avatar for Sophia_1
0
807
Member Avatar for AntonyRayan

hi, can any one tell me how to send mobile sms to some one,after registered successfully, in local host

Member Avatar for AntonyRayan
0
101
Member Avatar for RikTelner

I had test today about PHP. Really basic one, which probably won't give me A++ (10/10), because of strange question he asked, he asked us to translate: $temp = 10; if ($temp == 0) { echo "it's 0 Celsius"; } elseif ($temp < 0) { echo "it's chill outside"; } …

Member Avatar for broj1
0
115
Member Avatar for santunu23

*I am trying to get amazon product feed from marketplace i have download php client library file,and setup every additional setup like marketplace id merchant id (under the sample folder config folder) i got some error message and solve those problem.Now i get this error "Caught Exception: Could not resolve …

Member Avatar for santunu23
0
140
Member Avatar for redkowloon

Hi , i already build up a php form which is will sent data on same page, validate it , but i stuck how to switch to new display that become a preview data . My coding : <?php // dapatkan data dulu cha $fname = $_POST['fname']; $lname = $_POST['lname']; …

Member Avatar for Bensirpent07
0
2K
Member Avatar for Bile

-Hellow DANIWEB?... -I've been wondering if there is a way I can Use My Own Warning Message instead of that provided by Php during file include Failure... -**NOTE:**I dont intend to Mean Error Messages that We can write to a User when something goes wrong,like failure of inserting data inputs …

Member Avatar for Bile
0
244
Member Avatar for floatingDivs

Hi Daniweb, I'm trying to create a basic, grid-based (table-layout) calendar using PHP. I'm in the planning stages currently, but need some help coming up with an effective way to display empty boxes (for instance, November starts on Monday, so the left-most box (Sunday) needs to be empty. December starts …

Member Avatar for diafol
0
109
Member Avatar for uchejava

I have this message table that allows users to send messages to one another. sender_id is the id of the person who sent the message. receiver_id is the id of the person who received the message. message_id adds the sender_id and receiver_id together. This is a sample below. id sender_id …

Member Avatar for Taywin
0
185
Member Avatar for akhila.bhasker

I have code for shuffling images and display.Now i want to values of checked boxes will store on database.please help <?php mysql_connect("localhost","root",""); mysql_select_db("impass"); ?> <html> <body> <form action="" method="post"> <?php $images = array( '<input name="chk1" type="checkbox" value="1" /><img src="images/images (4).jpg" alt="" width="234" height="212" />', '<input name="chk2" type="checkbox" value="2" /><img src="images/images …

Member Avatar for lorenzoDAlipio
0
183
Member Avatar for kakalahori

hi DaniWEB users, it has always been a great support from dani web to answer questions and get feed back from every one. The issue i am facing is not a coding issue but a development platform issue,I have searched over the internet and was either unable to interpret my …

Member Avatar for pritaeas
0
263
Member Avatar for janicemurby

hya all i am getting the error in pic included in this post and i dont know what i could be i have found the following bit of code included below <tr> <td><?php echo date_diff($lastlogin['lastlogin']);?></td> </tr> then i have found the file where the coding for this sits see below …

Member Avatar for janicemurby
0
376
Member Avatar for soomro_moon

<?php if (isset($_POST['user_id'])) { // Not logged in :( setcookie("secondcookie[id]",$_POST['user_id'], time() * 7200, "/"); // Expiring after 2 hours setcookie("secondcookie[password]", $_POST['user_pass'], time() * 7200, "/"); //when to see if cookies is set or not echo $_COOKIE["secondcookie"]["id"]; //header("Location:verification_data.php"); } if (isset($_COOKIE['secondcookie']['id'])){ // Already Logged in go to page 3 header("Location:page3.php"); } …

Member Avatar for soomro_moon
0
150
Member Avatar for Ventech_IT

Hi Guys Please have a look at my model and then read below public function get_events(){ $query = $this->db->get('events',1, 1); return $query->result_array(); Okay so when i run the page i only get my message that no entry's are in the table! So when i insert a entry it displays the …

Member Avatar for Ventech_IT
0
404
Member Avatar for anmol.raghuvanshi1

here is my code i want that what ever value is checked that value is inserted into database i have created database with name doctor table name diseases with 3 field id dis_name and Ans plz help its urgent <?php error_reporting(E_ALL); ini_set('display_errors', 1); require 'db.php'; if ( !empty($_POST)) { // …

Member Avatar for cereal
0
5K

The End.