39,391 Topics

Member Avatar for
Member Avatar for danielagaba

hi i am trying to, on a button click, display data retrieved from mysql database in a text area but having no success. Below is the code i used. All help given is appreciated [CODE] print "<center><TEXTAREA NAME=news ID=news COLS=70 ROWS=10>".$news."</TEXTAREA></center>"; if(isset($_POST['show2'])){ $cn = connect_db(); $cn_sql = "SELECT message from …

Member Avatar for php_dev
0
690
Member Avatar for TonyG_cyprus

I have to resurrect the article that I marked solved this am, 'cause it ain't! My code is: <?php if(isset($_POST['chest'])){ $pin=$_COOKIE['registered']; $game=$_POST['item']; foreach($game as $rep){ $link=sqlite_open('data/'.$pin.'.sqlite ',0666,$sqliteerror); sqlite_query($link,"INSERT INTO holding (item) VALUES('$rep')"); sqlite_query($link,"UPDATE players SET points = points+10"); header('location:entrance.php'); } } include('php/head.php'); ?> <div class="game"> <p><u>Chest</u></p> <p> The chest has …

Member Avatar for TonyG_cyprus
0
219
Member Avatar for Samerases

<? if(isset($_POST[b1])) { $m= new myclass(); $x=$m -> validlogin($_POST[t1],$_POST[t2]) # if ($x== true) # { $_SESSION[username]=$_POST[t1]; ?> <? include ("menu.php");?> <script type="text/javascript"> window.location = "cpanel.php"; </script> <? } else { echo "invaild login"; } } ?> } } ?>

Member Avatar for LastMitch
0
330
Member Avatar for Shodow

how to get the class value? <select name="product" onchange="Price(this)"> <option value="" disabled="disabled" selected="selected">Please select a product</option> <?php foreach ($product as $product) { ?> <option value="<?php echo $product['Product']?>" id="<?php echo $product['Price']?>"><?php echo $product['Product'] . " Qty: " . $product['Quantity']?></option> <?php } ?> </select>

Member Avatar for LastMitch
0
143
Member Avatar for rexmatthew

Basically I got 2 calendar scripts from the same source. I saw a custom script before that merged these two but Everything I tried failed. Please help. Here are the 2 scripts. Script 1: $('#date3').DatePicker({ flat: true, date: ['2008-07-28','2008-07-31'], current: '2008-07-31', calendars: 3, mode: 'range', starts: 1 }); Script 2: …

Member Avatar for rexmatthew
0
243
Member Avatar for PF2G

Hi, i'm working on a website where i in the backoffice i can choose what table the frontoffice will see. The objective is create a checkbox in the backoffice and if checked (prod_img="yes") the frontoffice sees the table with big_images (prod_img) if the checkbox is not checked (prod_img="no") the front …

Member Avatar for LastMitch
0
161
Member Avatar for cgull

Hello good people of Daniweb :) I am developing a site with codeigniter 1.2.2 and the latest version of bootstrap. I am calling a modal window but the X and Close buttons don't close the window. Tried alerting when clicking a button and I do get the alert but the …

Member Avatar for LastMitch
0
5K
Member Avatar for Shodow

onchange i want this value to be executed how? or how to execute an query on dropbox change function quantity() { newValue = "<?php echo $product['Quantity']?>"; document.form.quantity.value = newValue; }

Member Avatar for LastMitch
0
102
Member Avatar for tshukela.george

I've upploade my php codes under the address http://george.freeoda.com, my problem is the calc link located on the http://george.freeoda.com/calc.php, this php files processess successfully on my server locally, what might be the problem? my full php codes are: <?php $n1 = &$_POST['n1']; // textbo1 declaration $n2 = &$_POST['n2']; // textbo2 …

Member Avatar for tshukela.george
0
193
Member Avatar for cgull

Hello, I am searching the net for hours now trying to find a solution to my problem, found tutorials and forums posts but can't solve my problem. Please help. windows 7, WAMP 2.2 (apache 2.4.2) Trying to set up a virtual host outside of the wamp directory getting the error: …

Member Avatar for cereal
0
577
Member Avatar for Kniggles

Hi , I am trying to get a photo type base to work and have got stuck , I have 3 files , 1- the html - that takes the input called door.html 2- the connect.php to open the base. 3- the php to insert insert.php. 1= <FORM method=post action=insert.php><P> …

Member Avatar for Kniggles
0
478
Member Avatar for vizz

I have received many enquiries to **develope website using php/mysql or wordpress** which can earn **daily $25-$35 USD**, atleast **minimum $15 USD daily.** How is it possible? For which **AdSense** gives money, **displaying ads or clicks on ads** How to create such **revenue generating website?**

Member Avatar for James_Smith
0
127
Member Avatar for tamil.arivu.18

I want to add Joomla SEF Translate Module or Component to my php,html Website Page. how can i include this module and how to run this. please tell anyone Thanks advance

Member Avatar for tamil.arivu.18
0
155
Member Avatar for tolap21

hi everyone i need a help in my php project with mysql database connection. I have a form that contains Fname, lname, contact and my problem is when i press the submit button without filling up the form the query will execute which inserts the blank data to my database.

Member Avatar for Webville312
0
188
Member Avatar for GlenRogers

Hi. My page has a men that holds categories of products, some of these categoriees have subcategories, some dont. I have mysql tables category, subcategory and products. My code right now only adds products to the subcategories, it takes the id value of subcategory and puts it in the product_id …

Member Avatar for RvSon
0
180
Member Avatar for lttleastig

I need to extract the value of studentId just 1413 how could this be done? All this code below is stored in a single variable I think with regex it is possible but had no luck with it $(document).ready(function () { var getSchedule = function () { $.ajax({ type: 'GET', …

Member Avatar for pixelsoul
0
171
Member Avatar for dottomm

Hello and thanks in advance to anyone who can help me with my array problem. I've always struggled with arrays, and now I Need to understand how I can use them to solve my latest problem. I've created a test scenario to recreate what I'm trying to do in real-life. …

Member Avatar for dottomm
0
176
Member Avatar for cssweb

hello i want to creat script "most viewed" so i want to select most topic that have been wached between two dates for instance from date 10,10,2012 to current date i mean from 10 days ago untill current time

Member Avatar for cssweb
0
196
Member Avatar for New-Reign

I am currently working on a hotel booking system. There are 4 rooms types, 3 have 5 rooms and 1 has 10 rooms. I have everything working apart from the ability to check which are booked or not. The SQL I used to create the tables is listed below; CREATE …

Member Avatar for New-Reign
0
4K
Member Avatar for surajdgiri

<?php include 'includes/config.php'; include 'header.php'; $check = ''; $TOTAL_FILE = 0; $rowsPerPage=12; $PATH = ''; if($parentid != 0) { $folddetail = $db->query("select * from category where id = ".$parentid, database::GET_ROW); $seq = $folddetail['pathc'];//$db->query("select pathc from category where id = ". $parentid, database::GET_FIELD); $PATH = '» <a href="'.BASE_PATH.'">Home</a> '; $PATH .= $seq; } …

Member Avatar for phoenix_2000
-1
352
Member Avatar for winbala5

hi all, I 've developed my own website using mysql, apache and PHP . Its soon going for production server. I need to track my website traffic(visitors, location, language, unique visitors) in live site for analytic's. I dont want use any third party Analytic trackers like google analytics etc. kindly …

Member Avatar for winbala5
0
170
Member Avatar for Shodow

at first the validation is working but when i added some design the validation is not working anymore help pls can you check my code <?php include('conn.php'); session_start(); if (!isset($_SESSION['Username'])){ header('location:index.php'); } // ?> <html> <head> <title>Delivery</title> <link rel="stylesheet" type="text/css" href="style.css" /> <link rel="shortcut icon" href="favicon.gif"> <script type="text/javascript" src="js/jquery.js"></script> <script …

Member Avatar for pritaeas
0
235
Member Avatar for Shodow

at the same time after adding i would like to update the inventory quantity quantity - deliver + return help pls <?php include('conn.php'); session_start(); if (!isset($_SESSION['Username'])){ header('location:index.php'); } // ?> <html> <head> <title>Delivery</title> <link rel="stylesheet" type="text/css" href="style.css" /> <link rel="shortcut icon" href="favicon.gif"> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.validate.js"></script> <script language="javascript" …

Member Avatar for pritaeas
0
235
Member Avatar for pooja.shinde

Hello, I am creating one android application using eclipse & emulator. I want to open php web pages from localhost when i click on button on one of my activity. We have our website but it is not hosted yet. When i click on button it goes to browser -> …

Member Avatar for pooja.shinde
0
248
Member Avatar for Tomashqooo

I have a little problem ... my menu.php does not work and i dunno why heres my index: <html> <?php function writeOut($pageName) { $buffer = fopen($pageName, r); $data = fread($buffer, filesize($pageName)); fclose($buffer); echo($data); } writeOut('head.html'); echo('<body><div id="top">'); writeOut('top.html'); echo('</div>'); /* in case of anomalies ob_start(); include 'menu.php'; $result = ob_get_clean(); …

Member Avatar for jkon
0
252
Member Avatar for Shodow

Warning: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\freeelec2\deliveryupdate.php:179) in E:\xampp\htdocs\freeelec2\deliveryupdate.php on line 222 <?php include('conn.php'); session_start(); if (!isset($_SESSION['Username'])){ header('location:index.php'); } // $tror=$_GET['tror']; ?> <html> <head> <title>Delivery Update</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.validate.js"></script> <script language="javascript" src="js/cal2.js"></script> <script language="javascript" src="js/cal_conf2.js"></script> <script type="text/javascript"> function Price(data) { …

Member Avatar for Shodow
0
579
Member Avatar for techyworld

hi i want to retrieve whole column from DB but store it in associative array. i write the code but its returning me only the last record. i want to return me the whole column. anyone can help? public function GetMarks(){ $query=mysql_query("SELECT name, marks FROM marks,users WHERE marks.id=users.id "); while($rows=mysql_fetch_assoc($query)){ …

Member Avatar for diafol
0
188
Member Avatar for naphets

# I need help understanding how to pull data from a database # *(The database i have) & insert data into fields on my webpages. So I can edit the site from a mysql database.* *As far as I think understand, I have commented the code below...* Q-0= Please help …

Member Avatar for naphets
0
212
Member Avatar for Tomashqooo

So this is my code: <?php // Example in menu_skuska.html $buffer = ''; function addMenuHeader($header_name,$id,$distance_from_top,$distance_from_left) { global $buffer; $buffer = $buffer + '<div style="position:absolute; top:' + $distance_from_top + '; left:' + $distance_from_left + ';">'; $buffer = $buffer + '<p onClick="toggleMenu(' + $id + ')" id="menu_header">' + $header_name + '</p>'; $buffer …

Member Avatar for EvolutionFallen
0
104
Member Avatar for afidah

Hi... I want to calculate marks.. I have create calculation and form... but, when i click the button it cannot calculate the marks... what the error in this code?

Member Avatar for <M/>
0
95

The End.