39,316 Topics

Member Avatar for
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 …

Member Avatar for Violet_82
0
1K
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 …

Member Avatar for diafol
0
241
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` …

Member Avatar for pritaeas
0
137
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"); …

Member Avatar for eyasin
0
240
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 …

Member Avatar for anson davis
0
687
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 …

Member Avatar for diafol
0
201
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 …

Member Avatar for amindabj
0
438
Member Avatar for Iikeloa

Hi can any one give the idea of the pagination system ? I mean thea functions that I should use to get a good pagination system.What I reached so far is this : I should request the number of rows from the database.Then I should make a variable which contains …

Member Avatar for pritaeas
0
165
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' …

Member Avatar for NA7KR
0
280
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 …

Member Avatar for Iikeloa
0
370
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 …

Member Avatar for Pravesh_1
0
190
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>"; …

Member Avatar for Purnomo_1
0
273
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> …

Member Avatar for Iikeloa
0
264
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: …

Member Avatar for developer707
0
273
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! …

Member Avatar for Cristianh21
0
258
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
318
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

Member Avatar for diafol
0
357
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. …

Member Avatar for diafol
0
181
Member Avatar for mhth2014
Member Avatar for davy_yg

Please help me to fix this ' or " mark: echo '<td>'.'<img src="images/".$data['images']>'.'</td>'.'<br>'; The above code does not seems right. Thanks before.

Member Avatar for pritaeas
0
50
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...

Member Avatar for diafol
0
418
Member Avatar for divyakrishnan

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

Member Avatar for hriti
0
143
Member Avatar for davy_yg

Hallo, I wonder how to encrypt and decrypt php codes. I found an encrypted php code but do not know how to decrypt it. Anyone knows how to encrypt and decrypt php codes ? Thanks before. Davy

Member Avatar for pritaeas
0
26
Member Avatar for Indians

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

Member Avatar for diafol
0
325
Member Avatar for mihir.driftking

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

Member Avatar for ryantroop
0
76
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>"; } } …

Member Avatar for Linddha
0
148
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 …

Member Avatar for cereal
0
194
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 …

Member Avatar for diafol
0
3K
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 …

Member Avatar for davidjennings
0
343
Member Avatar for Linddha

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

Member Avatar for pritaeas
0
115

The End.