39,323 Topics

Member Avatar for
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
724
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
415
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
312
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
347
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
800
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
108
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
183
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
403
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
Member Avatar for AntonyRayan

Index.php <html> <head><title>Registration</title> <script type="text/javascript"> function numbersonly(e,length){ var unicode=e.charCode? e.charCode : e.keyCode var maxlength=length; if (unicode!=8){ //if the key isn't the backspace key (which we should allow) if (unicode<48||unicode>57) //if not a number return false //disable key press } } </script> <script type="text/javascript"> function validation() { var a = document.form.phone.value; …

Member Avatar for AntonyRayan
0
231
Member Avatar for Shannon_1

ALTERNATIVE CODE <?php // Update present values if (isset($_POST['submit'])) { // Get a list of student ids to check $idsResult = mysql_query("SELECT student_id from students"); $presentIds = array(); $absentIds = array(); while($idRow = mysql_fetch_array($idsResult)) { // If the student's checkbox is checked, add it to the presentIds array. if(isset($_POST['present'.$idRow['student_id']])) { …

Member Avatar for lps
-2
214
Member Avatar for adsegzy

I got a script that convert convert my php string (combination of customized image & text) to image, zip it & popup for download with the scripts $format=$_REQUEST['format']; $viewArr = $_SESSION['productArr']; //the images in array $outputarr = $_SESSION['outputArr']; $pngoutarr = $_SESSION['pngOutputArr']; $downloadable = 1; if($format=='png'){ require_once 'png_output.php'; $downPath = genpng($pngoutarr,$downloadable); …

Member Avatar for adsegzy
0
469
Member Avatar for rajeesh_rsn

Hi friends, In one of my project I want to convert tiff files to png/jpg using php for making a film strip. So if there is any way for doing that .... Please help me thanks in advance Rajeesh

Member Avatar for monika1992
0
6K
Member Avatar for zebnoon1

Dear friends, I developin a webside in php where clients can send their enquiry of material.I have text boxs which clients will fill when click add button this enquiry will goto down table on a same page.. Please give me idea.??

Member Avatar for zebnoon1
0
363

The End.