52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nadiam

Hey guys, yes my problem is very, very trivial and im sure it does not rank importance to be posted but im really frustrated. See my coding was fine as in it executed as i wanted it to and now i dont know why but it isn't and i have …

Web Development mysql php
Member Avatar for diafol
0
301
Member Avatar for urbanthistleuk

Hello All, Having a few problems with the code below and wondered if someone could shed some light on it, I have a php script running from a cron that runs every 15 mins the error I am getting tom the cron is `PHP Notice: Undefined variable: rows in /var/www/vhosts/server.com/migration_tracker/staff/5th_email.php …

Web Development php
Member Avatar for urbanthistleuk
0
285
Member Avatar for Violet_82

Hi guys, I have an HTML page that I built and at the moment the content on it gets changed via javascript. What I would like to achieve is to change the content permanently on this page (which will be uploaded to the server). Now, I must admit that I …

Web Development html-css javascript-jquery php
Member Avatar for Violet_82
0
2K
Member Avatar for davidjennings

Hi All, I am trying to add insert/update and delete to an OOP singleton database connection using public functions like this, not sure if it is correct? example code public function insert($sql){ if($this->_execute= $this->_mysqli->_execute($sql)){ while ($row = $this->_execute->fetch_object()){ $this->_results[] = $row; } $this->_count = $this->_execute->num_rows; } return $this; } //page …

Web Development php sql
Member Avatar for diafol
0
243
Member Avatar for justin22

Table structure for table `address` -- CREATE TABLE IF NOT EXISTS `address` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `country` varchar(255) NOT NULL, `city` varchar(255) NOT NULL, `address` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `address` …

Web Development data-structure php
Member Avatar for pritaeas
0
138
Member Avatar for AARTI SHRIVAS

<?php $con=mysqli_connect('localhost','root','password','swati'); $sql1="SELECT * FROM `country`"; ?> <html> <head> <script> function val() { var name=document.getElementById("name").value; var add=document.getElementById("add").value; var email=document.getElementById("email").value; var chk1=document.getElementById("c1").checked; //var chk2=document.getElementById("c").checked; //var chk3=document.getElementById("c3").checked; //var gen=document.getElementById("gender").checked; var gen1=document.getElementById("gender1").checked; if(name=="" || name==null) { alert("name can not be blank"); return false; } if(add=="" || add==null) { alert("address can not be blank"); …

Web Development javascript php
Member Avatar for eyasin
0
243
Member Avatar for zeeshan_kust

i have retrieved mysql data from one table in json using the following script [CODE]$table_first = 'abc'; $query = "SELECT * FROM $table_first"; $resouter = mysql_query($query, $conn); $set = array(); $total_records = mysql_numrows($resouter); if($total_records >= 1){ while ($link = mysql_fetch_array($resouter, MYSQL_ASSOC)){ $set[] = $link; } } echo json_encode($set);[/CODE] how can …

Web Development json mysql php
Member Avatar for anson davis
0
692
Member Avatar for sasikrishnasamy

Hi, I have a hidden field and a text field called hdStrField, txtStrField . Now I assign the value for hdStrField field like this. document.forms[0]. hdStrField.value=’ txtStrField'; Now I want to change assigned hdStrField field value as read only. Give some suggestions for getting this functionality.

Web Development javascript
Member Avatar for stultuske
0
97
Member Avatar for nadiam

So i have this web page to book a studio and on the page there are two tables. one table is a form to book the studio(time,date,etc) and the other table i plan to display other data that is already in the database. the thing is in the second table …

Web Development php
Member Avatar for diafol
0
203
Member Avatar for feblioz

I tried running this code <form action = "upload.php" method="POST enctype="multipart/form-data"> <input type="file" name="file"><BR><BR> <input type="submit" name = "Submit" value ="Submit"> </form> <?php echo $name = $_FILES['file']['name']; $size = $_FILES['file']['size']; $type = $_FILES['file']['type']; $tmp_name = $_FILES['file']['tmp_name']; ?> but im having these errors Notice: Undefined index: file in C:\xampp\htdocs\series\fileupload\upload.php on line …

Web Development php
Member Avatar for amindabj
0
441
Member Avatar for NA7KR

How do I start with the drop down list disabled? <head> <script type="text/javascript"> function makeDisable() { var x=document.getElementById("mySelect") x.disabled=true } function makeEnable() { var x=document.getElementById("mySelect") x.disabled=false } </script> </head> <body> <select id="mySelect"> <option>Apple</option> <option>Banana</option> <option>Orange</option> </select> <br /> <input type='radio' name='campustype' value='in' onclick="makeDisable()" checked='1' /><label for='incampus'>In-campus</label><br /> <input type='radio' name='campustype' …

Web Development apple html-css php
Member Avatar for NA7KR
0
284
Member Avatar for Indians

edit.php coding... <?php $uid = (int)$_GET['id']; ?> <form action="update.php" name="myform" method="post" onsubmit="return(validateform());"> <input type="hidden" name="edited" value="<?=$uid;?>"> <?php $tariff_query = mysql_query("SELECT * FROM ebvouchertariffs WHERE VoucherID_Fk = $uid"); if(mysql_num_rows($tariff_query)>=1) { echo "<table width=960 align=center cellspacing=0 cellpadding=0> <tr> <td width=68 height=50 class=tabtext>SL.NO</td> <td width=106 class=tabtext>DATE</td> <td width=204 class=tabtext>PARTICULARS</td> <td width=117 class=tabtext>NO OF …

Web Development javascript mysql php
Member Avatar for Iikeloa
0
377
Member Avatar for Pravesh_1

I have website for audio and videos. My problem is that an audio is not running on Server but working on local. I created a folder where only html files are there and it is working fine on that folder. But an another folder where are audios and videos are …

Web Development audio php
Member Avatar for Pravesh_1
0
194
Member Avatar for sasikrishnasamy

Hi, I have a text field it should allow only Number, only one time 'Q' and 'C'. I created below mentioned code. <input type="text" name="vcno" onkeypress="return blockChars([^0-9-Qq-Cc])"> function blockChars(Chars){ var status = false; if(Chars.indexOf('\') != -1) status=true; varKeyCode = getKeyCode() ; if(KeyCode != undefined && isEmptyValue(Chars) ){ var g = …

Web Development javascript
Member Avatar for sasikrishnasamy
0
173
Member Avatar for davy_yg

[CODE] <link href="gradient.css" rel="stylesheet" type="text/css"> <?php //mysql_connect("localhost","root",""); //mysql_select_db("pintar"); include "includes/koneksi.php"; //echo "<table align=center><tr><th>No</th><th>Nama</th><th>Alamat</th></tr>"; // Langkah 1: Tentukan batas,cek halaman & posisi data $batas = 3; $halaman = $_GET['halaman']; if(empty($halaman)){ $posisi = 0; $halaman = 1; } else{ $posisi = ($halaman-1) * $batas; } //Langkah 2: Sesuaikan perintah SQL echo "<table>"; …

Web Development php
Member Avatar for Purnomo_1
0
275
Member Avatar for Iikeloa

Hi edit_order.php <?php session_start(); if(!isset($_SESSION['admin'])){ echo "Only the admin can see this page"; header("Refresh: 3;url=login.php"); }else{ require("inc/config.php"); require("inc/header.php"); $id = $_GET['id']; $sql = "SELECT * FROM serv WHERE id=$id"; $query = mysql_query($sql); while($serv = mysql_fetch_object($query)){ $title = $serv->title; $describtion = $serv->describtion; $url = $serv->url; $status = $serv->status; } ?> <center> …

Web Development php
Member Avatar for Iikeloa
0
273
Member Avatar for erminasrcutp

I need to develop a website which uses HTML. I want to ask if I develop my website using JOMLA, does it use HTML ? If no what is your recommendation for me to develop a website by using software ? I prefer free software. Tq

Web Development
Member Avatar for diafol
0
186
Member Avatar for developer707

Hi to everyone, I am a begginer on php so maybe this question will appear to simple to someone. My issue is that I want to output a list with all .zip files that are in my site directory. Also for each file I want some details for exemple: Filename: …

Web Development file-system php
Member Avatar for developer707
0
278
Member Avatar for Cristianh21

THIS CODE IS TO DISPLAY THE DATA FROM THE DATABASE AFTER THE FORM HAS BEEN SUBMITTED. THE PROBLEM I'M HAVING HERE IS THAT WHEN I SUBMIT THE FORM THE LINK IS NOT WORKING. IT GIVES ME THIS : http://yourweb.com/test2.php?id= INSTEAD OF : http://yourweb.com/test2.php?id=23 HOW CAN I FIX THIS? THANK YOU! …

Web Development php
Member Avatar for Cristianh21
0
260
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 …

Web Development php
Member Avatar for Lsmjudoka
0
323
Member Avatar for daniel.conlinjr.1

I've looked all over and ive not found a good answer, is there a way you can take your functions and make them in seprate files and call them to the class? it seems no one has tried this or i am ooking in the wrong place

Web Development php
Member Avatar for diafol
0
361
Member Avatar for MattD00

I have created a multipage form which collects data input by the user before and is then sent by email. I have created a table that the user has to fill in an ammount for each item. They user doesn't have to fill everything in only the items that apply. …

Web Development php
Member Avatar for diafol
0
191
Member Avatar for mhth2014
Member Avatar for AARTI SHRIVAS
0
127
Member Avatar for uday_2

In main.html i will have two text fields one is the name of the html page i need to create and another is number of text fields, once i enter number(for example three) in main.html, within the same page dynamically 3 text boxes should be created using javascript... now if …

Web Development java-jsp
Member Avatar for uday_2
0
213
Member Avatar for hriti

i want to upload file like exe file of an software from admin to database and download it from front end...plz help me out...

Web Development php
Member Avatar for diafol
0
427
Member Avatar for divyakrishnan

Is it possible to run an exe file which is saved on server machine using exec() function? I

Web Development php
Member Avatar for hriti
0
146
Member Avatar for Indians

how to send an email from localhost xampp?? anyone give me a proper procedure... i'm confused.

Web Development email php
Member Avatar for diafol
0
329
Member Avatar for newbie26

hey .. i have a gridview and i set allowpaging=true. in the first column, i have a check box for choosing items..when i click on the second page of the gridview, and click a button for update, it doesn't recognize the changes i made in the previous record on the …

Web Development asp.net
Member Avatar for newbie26
0
126
Member Avatar for mihir.driftking

Hi! Can anybody tell me about Socket Programming? I want to develop a Live Chat WebApp. Thanks in advance.

Web Development php socket-programming
Member Avatar for ryantroop
0
79
Member Avatar for Linddha

i have a problem to show the top article in 7 days.. $arc=mysql_query("select *from arc_news where status='aktif' and date IN (SELECT DATE_(NOW(), INTERVAL -14 DAY)) order by counter desc limit 4"); while($a=mysql_fetch_array($arc)){ $banner=mysql_query("select * from arc_sub where id_sub='$a[id_sub]'"); while($b=mysql_fetch_array($banner)){ echo" <tr> <td class='ling'><b style='color:GoldenRod'>&bull;</b></td><td><h1><a href='article".$bb."-$a[id_news]-$b[id_banners]-$a[judul_seo].html' title='$a[judul]' target='_blank'>$a[judul]</a></h1></td> </tr>"; } } …

Web Development php
Member Avatar for Linddha
0
150
Member Avatar for 4fridi

My Rule: `RewriteRule ^(.*)/album/(.*)/?$ watch_album.php?id=$2&video_url=$1 [L]` when i goes to site:epashto.com in google search it shows me url with query string like : http://epashto.com/watch_album.php?id=33 but my SEO Friendly URL is: http://epashto.com/special-hits-volume-4-pashto-songs-album-2013/album/33 Now the issue is that if user click to this url: http://epashto.com/watch_album.php?id=33 it should redirect to my new SEO …

Web Development google php seo
Member Avatar for cereal
0
198
Member Avatar for tony75

Hi I need PHP functions for calculating the area and volume of a cylinder? I will be thankfull for your answer. <form action="functions.php" method="POST"> Enter the radius = <input type="text" name="radius"><br> Enter the height = <input type="text" name="height"><br> <input type="submit" name="submit" value="Calculate"><br> </form> <?php //calculates the volume of a cylinder …

Web Development php
Member Avatar for diafol
0
3K
Member Avatar for pardeepkhatri

hello, i have to download this slider link given below www.ekle.it can any body help me to downlaod this slider???

Member Avatar for pritaeas
0
122
Member Avatar for KhubaibQaiser

I want to know how can i use a servlet to generate a table (time table for example) dynamically in a jsp page? The result should come between header and footer inside a div (see the picture) http://img191.imageshack.us/img191/8942/nbo6.png <html> <head> <title>Time Tables</title> <link href="default.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="header"> …

Web Development ide java java-jsp
0
125
Member Avatar for davidjennings

Hi All, I have been using a latest version of wamp daily for the last month on this PC and suddenly over the weekend it has stopped working. I have tried the following: I have restarted all services a number of times. Restored back to earlier point on Friday when …

Web Development php
Member Avatar for davidjennings
0
355
Member Avatar for Linddha

i want to show the favorite news base on calculation coment in comment table.. so ? what should i do?

Web Development php
Member Avatar for pritaeas
0
119
Member Avatar for Ann Krizette

we are about to begin our thesis report, we need to create an inventory system using php codes, i chose inventory system of stocks in a pharmacy, can you help me do the system?where should I begin..Thank you :)...really need your help experts :(

Web Development php
Member Avatar for pritaeas
0
112
Member Avatar for <sum>

I am using JQplot and I need to download these in form of image is there any way to convert JQplot to image and simontaniously it save to any folder

Web Development java-jsp
Member Avatar for dilang
0
71
Member Avatar for cakka

Hello, I am learning PHP. Now, I am creating login page. This is my index.php codes <?php require "../config.php"; session_start(); $username = $_SESSION['username']; $password = $_SESSION['password']; if(!$username && !$password){ header('Location: login.php'); } else { echo $hello.$username; } ?> And this is my login.php <?php require "../config.php"; session_start(); function loginForm(){ echo …

Web Development php
Member Avatar for Ejim Kingsley
0
269
Member Avatar for venkyb47

I have 5 select tags in a page (user can select number max 10 only). I want to fill this select boxes with dynamic data. I wrote a function for this. This function called on a radio button clicked. Data send to a PHP page and return back result to …

Member Avatar for venkyb47
0
213
Member Avatar for colo_cool

i have a text file as abc.txt which looks like hi hello john how are you jelly fine thank u now i need a php code to select this file from html page and read this text file line by line and store each line as a seperate row in …

Web Development file-system php
Member Avatar for diafol
0
1K
Member Avatar for jimmysmart

Is there anyone who hired freelancer for project(s) to be done? If so please tell me what are the difficulties you have faced while working with them? Thanks!

Web Development
Member Avatar for jimmysmart
0
146
Member Avatar for Warrens80

So I Would like to create a website where people can chat and have fun. I would like to include games and such. Any suggestions on great site builders.

Web Development
Member Avatar for Warrens80
0
90
Member Avatar for davy_yg

Hello, I am following this tutorial: http://www.codefactorycr.com/login-with-codeigniter-php.html It works when I copy it exactly as it is. Now, I only wonder why eventhough I try to imitate it and modify it a little bit to match my system, I wonder why it still does not work ? views/admin/login_view.php <!DOCTYPE html …

Web Development cms php php-codeigniter session
Member Avatar for cereal
0
517
Member Avatar for amrita111

I have to validate a textbox having postal code.The postal code can be two formats as possible xxxxxxxxx or xxxxx-xxxx. My question is can I use two javascript regex for validating a textbox?

Web Development javascript regex
Member Avatar for amrita111
0
103
Member Avatar for foxwizzy

so i have 2 lists i need to compare $list = array("Apple", "Orange", "Lemon", "Candy"); and $db = $r_bio['other']; $db2 = explode(":", $db); i want to compare the two and if i find the same i want to echo a checked checkbox if not an unchecked checkbox if($db2 == $list) …

Web Development apple php
Member Avatar for foxwizzy
0
117
Member Avatar for isaac.iji.5

hello guys am creating site were all users can post for there friends to see ans coment just like facebook where am having problem is how to make sure only a users friends can see there post not the whole site members i have table in my database called post …

Web Development php
Member Avatar for isaac.iji.5
0
273
Member Avatar for vijayakumarmp

Target is null or not an object how to fix ie browser. It works good in firefox. Please help how to fix the challenging script error.

Web Development javascript
Member Avatar for pritaeas
0
114
Member Avatar for andika.kurniawan.121

for($i=1; $i<=($jumlah_row_tabel_atas+1); $i++) { $satuan = $_POST['PP_row_'.$i.'_satuan']; $word_2[$i]="SELECT id_unit FROM manage_unit WHERE name_unit = '$satuan'"; $q[$i] = mysql_query($word_2[$i]); $data_X = mysql_fetch_array($q[$i]); $id_unit = $data_X['id_unit']; $harga_1 = $_POST['PP_row_'.$i.'_harga_1']; $harga_2 = $_POST['PP_row_'.$i.'_harga_2']; $harga_3 = $_POST['PP_row_'.$i.'_harga_3']; $id_drug = $_POST['id_drug']; $value = $value_array[$i]; $word="INSERT INTO relation_mu_and_unit (id_drug, id_unit, priority, value, harga1, harga2, harga3, last_edit) …

Web Development php sql
Member Avatar for urtrivedi
0
161
Member Avatar for tony75

Hi I need better way to my checkboxes in form.php here is code <h3>Which programming languages should you learn first?</h3> HTML <input type="checkbox" name="cb_html" value="HTML"><br> PHP <input type="checkbox" name="cb_php" value="PHP"><br> Perl <input type="checkbox" name="cb_perl" value="Perl"><br> Python <input type="checkbox" name="cb_python" value="Python"><br> And my form.php code is #checkboxes if (isset($_POST["cb_html"])) { echo …

Web Development html-css perl php
Member Avatar for tony75
0
1K

The End.