39,326 Topics

Member Avatar for
Member Avatar for b.wickham

I've been having trouble with an UPDATE statement in the code below. The problem is that each time I submit the form to update an existing record in the products table, the records won't update. When I submit the form there is no error message and it redirects to the …

Member Avatar for b.wickham
0
1K
Member Avatar for Amicallef1991

Hi, I have a mysql database with some student info records. I am trying to Update a record in the db using a html form and a php script however it wont update. It doesnt give me any errors. Can anyone assit me please. Here is the code. **editingRecord.php** <?php …

Member Avatar for Amicallef1991
0
610
Member Avatar for gopi17

Heyy...i'm trying to save the attachment file location in mydb...the thing is it's just saving the file name eg.database.txt i want it to look like this C:/bla/bla/test my codes addtask.php <html> <head> <title>Task Management System</title> <link rel="stylesheet" href="Appcss.css" type="text/css"/> <script src="datetimepicker_css.js"></script> <script type="text/javascript"> // Javascript function which takes care for …

Member Avatar for Biiim
0
328
Member Avatar for redapple12

Hi I was wondering if I might be able to get some help with a Basic Class Calender Editor. I am self employed teacher and I teach classes at various venues. I have a website which displays the classes on for each week.i.e. using the following coding: --------------------------------------------------------------------------------------------------------------- **THIS WEEK'S …

Member Avatar for redapple12
0
127
Member Avatar for brave_demo

<?php //email signup ajax call if($_GET['action'] == 'signup'){ mysql_connect('localhost','root',''); mysql_select_db('newsletter'); //sanitize data $email = mysql_real_escape_string($_POST['signup-email']); //validate email address - check if input was empty if(empty($email)){ $status = "error"; $message = "You did not enter an email address!"; } else if(!preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}$/', $email)){ //validate email address - check if is a valid …

Member Avatar for brave_demo
0
417
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
345
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
149
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
249
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
602
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
381
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
207
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
653
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
180
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
171
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
250
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
502
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
138
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
218
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

The End.