39,323 Topics

Member Avatar for
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to access SkyDrive using php i have looked at so many forums and i could not find anything and what i did find was too complicated to understand, what i want is a way to create files or folders, get …

Member Avatar for pritaeas
0
365
Member Avatar for NardCake

Hello! I'm working on a profile page, I already have the first get variable redirect working so it goes from mywebsite.com/u/?u=username to mywebsite.com/u/username, as an example. But I want to pass a second parameter as such: mywebsite.com/u/username/about for example. So I wrote (more like mashed a bunch of scavenged code …

Member Avatar for diafol
0
181
Member Avatar for sagisgirl

Hi guys... I have a trouble with my delete page.. here are my codes.. <?php include("enter.php"); $dbjpu_jenis_jentera=$_GET['jpu_jenis_jentera']; //if(isset($_GET['bil'])){ $dbstaf_bil = $_GET['bil']; } $sql="DELETE FROM jpuma_jkkp2013 WHERE jpu_jenis_jentera='".$dbjpu_jenis_jentera."'"; $result=@mysql_query($sql); if($result){ echo "<center>Please wait a few second.<br>The data was deleted from database...<meta http-equiv='refresh' content='3;url=jpuma_jkkp2013.php'>"; //echo "<p>"; //echo ""; } else { echo …

Member Avatar for sagisgirl
0
517
Member Avatar for perfectionist91

hey guys the checkboxes aren't gettin displayed in the following code and the data isnt gettin stored as well.plz help!!!!!!! <?php session_start(); include ("menu.php"); $UserId=$_SESSION['UserId']; ?><html> <head> <title>Feedback</title> </head> <body> <table> <tr> <td> <form name="f1" method="post" action="Feed2.php"> <table cellspacing="10"> <tr> <td colspan="2"><h1>Feedback Form</h1></td> </tr> <tr> <td> <?php include ("db.php"); $sql="SELECT …

Member Avatar for broj1
0
338
Member Avatar for davy_yg

stock.php <td>Produk :</td><br> <td> <select name="batch" onchange="submit();"> <option value="-1" >-- Select Address --</option> <?php $username='root'; $password=''; $con = mysql_connect('localhost', $username, $password); mysql_select_db('snack', $con); $result = mysql_query("SELECT * FROM po"); while($row = mysql_fetch_array($result)) { } $data = array( '1'=>array('po'=>'1','namn'=>'name 1'), '2'=>array('po'=>'2','namn'=>'name 2'), '3'=>array('po'=>'3','namn'=>'name 3'), '4'=>array('po'=>'4','namn'=>'name 4'), '5'=>array('po'=>'5','namn'=>'name 5') ); foreach($data as …

Member Avatar for radhakrishna.p
0
243
Member Avatar for mmcdonald

Hi all, I have a website that allows users to vote once every hour and I've run into a weird issue. When a user votes for a listing their IP is collected and stored along with the time of the vote. An hour later they are able to vote again. …

Member Avatar for Atli
0
148
Member Avatar for garyjohnson

Hi, I was wondering if I am going to make a social networking site if it was neccesary for me to understand how classes are used? Do i need to use classes or can I just use a series of functions?

Member Avatar for diafol
0
145
Member Avatar for RamiroS

This is one of the fastest ways to get data submitted by a HTML form, make it readable and send it by e-mail. Fast and easy. From the raw example to some basic functionality.

Member Avatar for mlesniak
0
248
Member Avatar for richprich

Although there are many similar questions and answers here and i've tried my best to make it work but no luck. This is my code: $content = "Blah...blah...[image=1], blah...blah...blah...[image=2], blah...blah...blah...[image=1], no more..."; function get_image($content) { $stripper = $content; preg_match_all("/\[image=(.+?)\]/smi",$stripper, $search); $total = count($search[0]); for($i=0; $i < $total; $i++) { $image_id …

Member Avatar for richprich
0
601
Member Avatar for davy_yg

Hello, I am trying to create a stock recording system: <h4>STOCK RECORDING SYSTEM</h4> <form action="action.php" method="post"> <table border="0" width="200"> <tr> <tr> <td>Produk :</td><br> <td><input type="text" size="12" maxlength="22" name="Produk"></td> </tr> <tr> <td>Jumlah :</td> <td><input type="text" size="12" maxlength="22" name="Jumlah"></td><br> <tr> <td>Tanggal :</td> <td><input type="text" size="12" maxlength="22" name="Tanggal"></td><br> </tr> </table> </form> <?php username='root'; …

Member Avatar for broj1
0
223
Member Avatar for vizz

I have created **log.php** to get **visitors information**. It is included on **index.php**. But it is adding records to database **without single visit** to **index.php**. After few seconds it adds records continuously. Help me please. **index.php** <?php include_once('log.php');?> **log.php** <?php $page_name = $_SERVER['PHP_SELF']; // PAGE NAME $parse_page_name = basename ($page_name); …

Member Avatar for vizz
0
374
Member Avatar for latooplat

So I was creating a simple photo gallery site, wherein users can upload their photos or delete their photos. While, I have a CRUD functions as well in the side of the users, where I can add users, delete users, update user's info and search user's info. Now, I want …

Member Avatar for Biiim
0
206
Member Avatar for jackparsana

Hello, pls help me to do this. i m saving my image in php mysql and retriving with js - base64 i cant get code exactly. i m retriving. like this code <img src="LzlqLzRBQVFTa1pKUmdBQkFRQUFBUUFCQUFELzJ3.....<continue code>" /> I want src like below: <img src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAA />

Member Avatar for gon1387
0
652
Member Avatar for titosd

Hello, I want ask you, how can i get the value of the select in the same page to use it to loop by it ? for example: <select name="abc"> <option value="1" >1</option> <option value="2" >2</option> <option value="3" >3</option> </select> and to use the $_POST['abc'] in a loop like this: …

Member Avatar for Biiim
0
179
Member Avatar for stutego

form not posting to database instead its redirecting me to another page with heading "object not found!" <?php $connect= mysql_connect("localhost", "username", "password"); if (!$connect) { die("could'nt connect to db:".mysql_error()); } mysql_select_db("myapp", $connect); $sql="INSERT INTO form(fname,lname,email,password,telephone,sex,dob) VALUES ('','$_POST[fname]', '$_POST[lname]', '$_POST[email]' '$_POST[password]', '$_POST[telephone]', '$_POST[sex]', '$_POST[dob]')"; if (!mysql_query($sql, $connect)) { die("Error:" .mysql_error()); } …

Member Avatar for Biiim
0
218
Member Avatar for MU.vo.doi.vai.coi.MU

I got a list like that "Name: John, Age: 20, Phone number: 12343223" How can I make up an array of which indexes are 'name', 'age', ....... Thanks for your help.

Member Avatar for MU.vo.doi.vai.coi.MU
0
128
Member Avatar for fheppell

I have a variable called `$file`, this is from a GET query. I need the variable `$file_humanread`to be equal to whatever file is with humanname appended. For example, if file is equal to 'test', I need the variable $file_humanread to be equal to $test_humanread, which is set already. I've tried: …

Member Avatar for fheppell
0
170
Member Avatar for LastMitch

Hi, I'm getting this error: **Column 'id' cannot be null**. I can't figure it out why. I always **Import** the tables by using **.sql** into **MyPHPAdmin**. I only have **2** tables. One is **mypost** and the other **username**. For my **.sql** file I always have the same format with **NOT …

Member Avatar for broj1
0
5K
Member Avatar for garyjohnson

Okay so I have a PHP script that creates user acounts and encrypts the password then saves it into the database. The login form just compares the users password with a password in the database. The database has a password to connect to and user name. Is this enough security …

Member Avatar for garyjohnson
0
249
Member Avatar for hudhasama

Hello there. Sorry that I don't really know much about drop down button in php. I was assign to do a booking system as my final project but somehow I don't know how to make the button works. It suppost to be like this. The user needs to choose which …

Member Avatar for hudhasama
0
501
Member Avatar for eyeda

Hye, Anybody can give me an idea on how to get the name of the folder that contain the downloded file? I want to do like this. For example, after the user have download the file, they will be redirect to a page where it will display the location of …

Member Avatar for eyeda
0
137
Member Avatar for shlokka

hi everyone im trying to integrate reoccuring payments in a website using paypal...setting up the initial payment is easy enough, but i cant find anything anywere that shows me how paypal will tell my site when a reoccuring payment is made?? the site is offering membership, users need to pay …

Member Avatar for shlokka
0
217
Member Avatar for davy_yg

mysql_select_db('snack', $con); <form action="action.php" method="post"> mysql_query("INSERT INTO Produk VALUES ('Produk')"); mysql_query("INSERT INTO Jumlah VALUES ('Jumlah')"); mysql_query("INSERT INTO Tanggal_Masuk VALUES ('Tanggal_Masuk')"); <input type="submit"> </form> Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\Innovation\script_shop\stock.php on line 56 line 56: <form action="action.php" method="post">

Member Avatar for veedeoo
0
73
Member Avatar for ebc3142

Hi, I have these methods in my user class which check whether a username already exists and if not, inserts it into the database: //This function checks to see if the username entered already exists Private function check_user_exists() { $stmt = $this->_db->prepare('SELECT * FROM client_login WHERE Username = ?'); $stmt->execute(array($this->_username)); …

Member Avatar for veedeoo
0
290
Member Avatar for sam.merry

Hello guys, Does anyone know exactly how to make a comparison script for car insurance? Would be great if someone could make one for me (£), or could teach me! Cheers, Sam

Member Avatar for pritaeas
0
317
Member Avatar for joshl_1995

Hello Community, I was wondering if i can get some help with the 4shared php api. [Here](http://www.4shared.com/developer/docs/samples/#PHP) is a sample on how to upload a file. But now i need to know how to delete a file, by the way i have never used an api. Please Help...

Member Avatar for pritaeas
0
268
Member Avatar for johnef_sh

hay I have this code to upload images it works OK bu there is 2 things not working 1- when the image has the same name it doesn't display the message "A file of the same name already exists" it just give me this Notice "Notice: Undefined variable: success in …

Member Avatar for LastMitch
0
308
Member Avatar for bradly.spicer

Hey guys, as part of my project I am trying to make it so each record in my database has it's own page in a fashion similar to: http://domain.com/Customer.php?customer_name="John Doe" And this will echo all the information in the table about John Doe. (In the future I would like to …

Member Avatar for LastMitch
0
123
Member Avatar for amit.mondal.31

**how can i pass an associative array and fetch that same array in submitted page with key=>value format. ** <?php //I SUBMIT a.phhp PAGE IN THIS PAGE// $f=$_REQUEST['1'];//1st input field value of a.php page $s=$_REQUEST['2'];//1st input field value of a.php page $t=$_REQUEST['3'];//1st input field value of a.php page $sub=$_REQUEST['s']; $arr=array($f,$s,$t); …

Member Avatar for diafol
0
176
Member Avatar for everton.retweets

Hi Everyone, I am helping a good friend of mine to design a website, but we have got a bit stuck - Hoping someone can help us out. We are trying to add a var from our database into the header location. like this - header( "Location: resend.php?activate=$mobnumid"); Here is …

Member Avatar for everton.retweets
0
176

The End.