39,320 Topics
| |
if(isset($_POST['add_user'])){ $passw = trim(htmlentities($_POST['password'])); $encrypted = enc_salt($passw); $con = "true"; $sql = "SELECT * FROM users WHERE username='".$_POST['user_name']."'"; $result = $database->query($sql); $row = $database->fetch_array($result); if($row!=""){ $con="false"; } if($con!="false"){ $sql = "INSERT INTO photo_gallery.users (username, password, first_name, last_name)"; $sql .= " VALUES ('".trim(htmlentities($_POST['user_name']))."','".$encrypted."', '".trim(htmlentities($_POST['first_name']))."', '".trim(htmlentities($_POST['last_name']))."')"; $result_set = $database->query($sql); echo '<script type="text/javascript">alert("Account … | |
can anybody send me a project ONLINE DISCUSSION FORUM developed in php...... | |
Hi, I am looking for a procedural PHP script that would allow me/my users to upload video content in a number of popular formats. I would also like all the information to be linked into a MySql database as well. I already have a upload script for uploading documents but … | |
| Hi, I have a page that gets adverts and an image from mysql database. Getting the results is no problem. How do I make use of css to align each advert next to each other as opposed to every advert under one another. I also have a problem of the … |
Hi All, Help me please...! How to get harddisk serial number and motherboard serial number using php?. Thank. | |
I have two pages one called upload-file.php, this page uploads the image into the database and my folder. My PHP page looks like this. if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) { $insert=mysql_query("insert into match_item_image set item_id='".$_SESSION["session_temp"]."', image='".$name."', adid='$adid'") or die(mysql_error()); $cc=mysql_insert_id(); echo "success".$cc; My other page consist of a javascript function which displays … | |
Hello, I know a little about php and I want to develop a website about advertisment. something about register a website and search about available adverstiment. I don't know what is better to use, functions or classes? help me for this other question, how to develop a script and make … | |
Hi all, help me please. how to protect php script that can only be installed only for the one PC?. Thank you. | |
Hi all, My requirement is to add student marks into the system. In my form i have entered admission number of the student, term and year and click on "Add" button to enter marks. Thereafter the page should be redirected to the following page where it should be displayed marks. … | |
Hi... After long time I came back. Actually I am trying to display State and City list in 2 drop down box using PHP and Ajax. State and city list is coming from Mysql. I am able to get the list of state but after changing the state city drop … | |
Everyone loves PHP these days it seems, and that includes the bad guys. So it should come as no surprise to learn that yet another remote access Trojan written using PHP has appeared. However, the fact that this particular bit of PHP backdoor code comes complete with a second, hidden, … | |
I have two pages one called upload-file.php, this page uploads the image into the database and my folder. My PHP page looks like this. if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) { $insert=mysql_query("insert into match_item_image set item_id='".$_SESSION["session_temp"]."', image='".$name."', adid='$adid'") or die(mysql_error()); $cc=mysql_insert_id(); echo "success".$cc; My other page consist of a javascript function which displays … | |
| OK so I'm quickly making my way through codeigniter... It seems pretty pleasant and the MVC model seems Okay. But I have come accross a problem in passing an array to a view and displaying it. Following the MVC pattern, the database queries are separated into the Mo**d**el file. [Good.] … |
hi all, I am new to php and have started some coding.I want to insert values in one table1 and update values of table2. It worked for me last day..but today it doesnt work.I have hardly changed any code.i guess except fr deleting some comments in code..u plz tell me … | |
| hello today i was trying to add search functioality to my site. my site actually display analysis reports for websites like google.com but what if user enter simply google so i thought why not to add search function that display results on keyword google. well i added search.php to my … |
When the PHP file got a data that has '> <' or 'http://' **with GET Methode**, it's going to Forbidden Page. example: * mysite.com/folder/chat.php?text='> <' or * mysite.com/folder/chat.php?text='http://www.site.com' This is the result : [ **Forbidden** You don't have permission to access /folder/chat.php on this server. Additionally, a 404 Not Found … | |
i am having a problem, i downloaded the project from dev to my local, though it is running fine on dev but on local, it says me the following error Fatal error: Class 'DB' not found in F:\xampp\htdocs\timesheet\index.php on line 9 my index.php is <?php session_start(); error_reporting(1); include_once('classes/db.php'); include_once('classes/functions.php'); //========================================== … | |
Hi Guys I have this page http://beuniquegroup.com/ the slideshow working, now i copied the code to other page http://beuniquegroup.com/our-values but unfortunitly it gives me no image, so I think this slideshow is not connected to my post yet! Please help! Thanks | |
I want to validate phone number its not workning.Please help!! This is php code. <?php error_reporting(E_ERROR|E_WARNING); session_start(); $dblink = mysql_connect("localhost", "root", "") or die('Not able to connect to server : ' . mysql_error()); mysql_select_db("apperal",$dblink) or die('Not able to select Database : ' . mysql_error()); //hama ekakatama poduwe hadapu connection eka … | |
Hi, I'm having some trouble. I am fetching a list of "training tickets" from a table and each has its own transaction id for ease of coding. Everything appears as it should (though I'm in the very basics of tweaking that) but when I hit 'reject' it is deleting the … | |
I am new in php and I have created a php login page where it will retrive data from a table and check a print "login successful" or "login failed". Now after execution of the codeI am giving correct data but all the time it is replying "login failed" plese … | |
Hi all, Help me please. i have two table: outbox and contact. condition outbox table befor query/ insert. CREATE TABLE `outbox` ( `id` int(11) NOT NULL, `phone_number` varchar(30) NOT NULL, `message` varchar(200) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; Contact table: CREATE TABLE `contact` ( `id` int(11) NOT … | |
Hello to all first of all. This is Scorpionz. I am working on PHP OOPS these days, I am having a little problem in my Connection class, with Database. Lets have a a look. [code] interface db { public function connect(); public function close(); public function error(); } class mysqldb … | |
<form action="login.php" method="post"> Username: <input type='text' name ='username'><br> Password: <input type="password" name='password'><br> <input type="submit" value="Log in"> </form> </body> </html> | |
Hello, I was wondering how much you guys charge an hour.... | |
Hi, I have a problem with my code. When I fill the PHP form and submit on the page, I encounter with 2 problems; 1- It writes all 6 input coming from 6 textareas to next line in csv file as I want. But it writes all of them into … | |
I want to let the users of my page (they dont have to be registrated) to register a food plate that they ate at my restaurant. It should have a picture and a review, now that should go to a database and appear randomly but daily at homepage. can anybody … | |
Hey, I was hoping someone can help me convert a piece of php code, im not really sure where to start pack( 'v', $test ); The pack php function above takes in an integer and converts it to an unsigned long. V - unsigned long (always 32 bit, little endian … | |
| can someone explain these. And the difference between abstract and interfaces? These confuse me. Ta Also if you're asked to write a bit of code what tasks can i expect and can i assume i'll be given any resources or just pen and paper? |
| Hi I'm having issues with **get_magic_quotes_gpc()** function. I download this **Ajax File and Image Manager** from this site: http://www.phpletter.com/DOWNLOAD/ I install it on tinymce & fckeditor to test it out. They both work. I try to link the images and it didn't work and I also realizes the links are … |
The End.