39,402 Topics
![]() | |
please help me.... i want a error message "invalid user name or password" when i input wrong username or password in the login page. i can do it in an another page .but i need the error message in the same loginpage like gmail(between username and password). this is my … | |
I have a project I am near completing except I cannot properly test it because the array uses sessions and is full of useless data now. I have an HTML entry form that feeds data to this PHP script: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title>Directory</title> … | |
Can anyone tell me if I am going in the wright direction with this, or if there is a better way, I am trying to create a session check so that if logged in clients change the url id number example.com?id=192 it won't show other clients contents. Its the first … | |
I have an input form in which the user fills in several fields. I want to display the contents of these fields on a page right after the user hits submit. I am not sure how to call the last entered record. Also, to further complicate the issue, there is … | |
i am writing a forum and here is the code for the inserting the topics in the database[CODE]<?php include "dbconnect.php"; $tbl_name="forum_question"; // Table name $topic=$_POST['topic']; $detail=$_POST['detail']; $name=$_POST['name']; $email=$_POST['email']; $datetime=('d/m/y d:i:s'); $sql="INSERT INTO $tbl_name(topic, detail, name, email, datetime)VALUES('$topic', '$detail', '$name', '$email', '$datetime')"; $result=mysql_query($sql); if($result){ echo "Successful<BR>"; echo "<a href=main_forum.php>View your topic</a>"; … | |
Hey there php masters, Please help me in creating a script that will be able for a user to upload his/her photo and display it on the left side of the page.. like the profile photo in facebook. i dont need a photo gallery. just ask to upload a photo … | |
hey just wondering who do you guys use for your domain names and webhosting i was looking at namecheap for my domain and hostgator for hosting, there is also go daddy but i heard they can be a pain your feedback is appreciated thanks. [img]https://imageshackau.com/sports/113/b/happy.gif[/img][img]https://imageshackau.com/sports/114/b/happy.gif[/img][img]https://imageshackau.com/sports/122/b/happy.gif[/img] [img]https://imageshackau.com/sports/77/b/happy.gif[/img] | |
I am getting this error, and dont know what I should do to fix this. Column 'uptime' in order clause is ambiguous uptime = date uploaded set to NOW My Query: $select = ("SELECT * FROM photo_album, video ORDER BY uptime DESC LIMIT 10"); Maybe I cannot call a query … | |
![]() | Hi there I would be grateful if you could point me in the right direction with this issue please: Only PAGE 1 loads regardless of content of $choice. [CODE]if ($choice='yes') { ?><script>location.replace("http://~PAGE 1");</script> <?php } else { ?><script>location.replace("http://~PAGE 2");</script> <?php }[/CODE] Thanks in advance Stephen ![]() |
Hey friends .. Can anyone give me idea on how to Create a button similar to like button of facebook .. I think they use complicated API n all .. I want it to be simple but useful .. Can anyone help me with this please .. | |
Please help me to write a PHP code for following . i have name , address , loanno (unique) , fup as fields in my database loandata. i want a screen in which i enter a loan number and it should search the loan no. in lonono and if data … | |
hi all .. i have developed an application in php and i want to start marketing it. the downside is i have put in alot of hard work into developing it. sleepless nights, tears, booze, and the last thing i woulf want is for some idiot to steal and manipulate … | |
Hi, can anyone help with formatting a date range query in MySQL? It's just a form to enter two dates, and a second page to run the query and show the output. The form looks like so: [CODE]<form id="getdate" action="tracking_result.php" method="post"> <table> <tr> <td> <input type="radio" value="single" checked="checked" name="type"/> </td> … | |
I have a page and a large form with many texareas (lot of text, I've made a cms system) and my form is kinda "heavy", I use some javascript to update it and then save/post form with php submit and $_POST variables and that bit. I have given this javascript … | |
The file is called test.php, It takes username and check if it is blank in the same page and show a message.. I wrote the code but its not working.. please help. test.php: <html> <form method="post" action="test.php"> User Name : <input name="UserName" type="text" id="UserName" value="User Name" size="20" maxlength="30" /> <input … | |
Okay I have a php form builder. I have a preview of the form the user is building. When the user submits the form the html form is built and the html code is displayed inside a <textarea>. It's all fine but, if I put a text area tag inside … | |
I want to loop the below code until $grade=80, is the code below correct [code]<?php include "grade.php"; $getgrade = new Grade(); // create an instance of the class(Grade) echo "<ul id='navigation'>"; for($grade=0;$grade<80;$grade+10){ $max = $grade+9; echo "<li><a href='#'>$grade-$max%</a> <ul><li>"; $getgrade->results($grade+9); echo "</li></ul> </li>"; } echo "</ul>"; ?>[/code] the page isn't … | |
I have been trying to get this directory to add data into an associative array for an assignment I am working on but I keep getting useless results no matter what i try and so I thought I would check here for advice. This is the HTML form that is … | |
Okay, I currently have IPB, and I really like it. It's quite powerful. But I like the way phpBB allows you to sort of export news articles to a front page before your forums, etc. So I'm thinking about switching. IPB vs. phpBB... Advantages, disadvantages of each? Which would you … | |
Hello, I am trying to create a directory of information to be stored in an associative array as strings and I have been having a problem figuring out how to get multiple entries into the array. My entry form (an HTML page) does work and collects the information and sends … | |
I am trying to make the page title the same as the gallery title on my site. This is my method, but it doesnt work. on the page after I call the title from the database: [CODE]$pageTitle = $row['title']; //page title $page = array(); $page['title'] = 'Gallery - $pageTitle';[/CODE] Then … | |
Ok, so i have a log in and a register script. Today i put a md5() encoding mechanism on it so it encodes the password when it is sent to the database. Now, how do i encode all of the passwords that were already inside the database? if anybody could … ![]() | |
Hi there, Does anyone know of any systems or potential methods or hazards to implementing an access queue on a website. Basically we have a client whos a major fashion retailer doing a big sale and MAgento can't cope. I need to limit the amount of online users to 100 … | |
How to take backup the database using PHP | |
I have a project that I am working on where subscribers will receive an update via email containing links to notices. These notices can only be viewed by registered members, so in order to do that I have a login page and script. I am using [CODE]$ticket = clean($_GET['ticket']);[/CODE] to … | |
Hi all, Does anyone know of any software/classes that can be used to generate images of network diagrams? We are using a tool called Graphviz using Perl at the moment but the diagrams are looking a little bit dated! The networks will be pretty small, consisting of 3 or 4 … | |
i have a long string which contains a url. I want to extract that url from that particular string. Please help me. | |
Hi everybody, I have a specific problem, and cant get over it. For my latest project I need a simple PHP script that display an image according to its ID sent through URL. Here's the code: [CODE]header("Content-type: image/jpeg"); $img = $_GET["img"]; echo file_get_contents("http://www.somesite.com/images/$img");[/CODE] The problem is that the image doesn't … | |
[B]The Idea[/B] The idea is that my PHP page will execute specific SQL statements on a database depending on which form elements are filled in. Instead of having to write continuously lengthy IF statements to determine which statement to use, I would like to have the necessary statement "looked up". … | |
Hi, I know the problem that I am having is related to the change in PHP5 about strings and arrays, however I do not understand why my script is affected. It seems like I am not trying to add more variables to an array. I do not success in order … | |
Hey Guys :) I want to be able to rewrite my URL's like so: [B]site/profiles/(username)[/B] but this would really only be site/profile.php?username=* I have this so far: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^profiles/$ profile.php </IfModule> How would I do the [B]bold[/B] located above? | |
Hi All, Can anybody help me here. The code below is picking up the first pages records but it wont move to the next page. [code] <?php // Connects to your Database include "myFunctions.php"; getConnection(); //This checks to see if there is a page number. If not, it will set … | |
[CODE]<?php $host="xxxxx.xxxxxx.com"; // Host name $username="xxxxxx"; // Mysql username $password="xxxxx"; // Mysql password $db_name="xxxxxxxx"; // Database name $tbl_name="xxxxxx"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $id=$_GET['id']; // Retrieve … | |
Php code for button wheh we press the button it give previous infrmation about that filed | |
Description: ------------ Doing the following SimpleXML text comparison does not give the expected results. Reproduce code: --------------- [CODE] <?php $sxe = simplexml_load_string('<root a="123" />'); echo $sxe['a']."\n"; if ($sxe['a'] == '123') { echo 'They are equal.'."\n"; } else { echo 'They are not equal.'."\n"; } [/CODE] ?> Expected result: ---------------- 123 … | |
hello i satya i need information about how to install php and how we can use it | |
i am trying to store the user entered form data (using php )to a .txt file.. and when i am trying to display the .txt file using php .. the contents are displayed along with the delimiter ( ||) ..how do i get rid of the delimiter in the display … | |
I am having the hardest time trying to figure out what I am doing wrong with this section of code. Basically, I am using the GET method to pull a variable from the URL which I then want to search the database for. This "ticket" is unique and I only … | |
how many menus and what features are needed to build Shopping Cart? | |
Hello, I'm trying to skip a line every 'x' queries that gets displayed. I can get the records to show but I can not skip a line every 'x' query shown. I've tried using javascript and php but can not get it to work. Can someone plz help or give … | |
I want to know how to update a href link with javascript using an image. I have a image which has to update a href which displays a lightbox. Could someone please tell me know to do this. | |
Hi all, I have a number of refreshing divs in my code, all of which work fine. Ive been trying to create a dynamic graph using the same method, but when i run the script all i can see is the following when the graph should be PNG ��� … | |
I'm not really sure what's going on. I've looked all over the internet and have been stuck on this issue for days. It seems as though few have run into this problem and those that have - have no suggestions or even any replies. CKEditor's help forum has nothing on … | |
Ive read a few tutorials to try and get this mod_rewrite to work but have no luck. I have checked my phpinfo and everything should work. I am trying to change this url: [url]http://domain.com/viewAlbum.php?aid=2[/url] (any number) to this url: [url]http://domain.com/album/2/[/url] Here is my .htaccess file and I dont know if … | |
I have cretaed a login page in php got the database and connection how ever when i register i get an error Error: User not added to database. this code is in my register.php file can anyone help thanks [CODE] // Make sure query inserted user successfully if ( !mysql_insert_id() … | |
Hello I want to make file hosting website. As like megaupload or rapidshare. How can I do this. I know how to upload a file, rename file, etc. Actually I need to know. How to prevent file or directory to access from un authenticated user. Please suggest what is the … | |
Has anyone worked on Agentpress theme on wordpress? Brad | |
ok guys i have a litle peace of script that needs some modefying the page was original that you must ad you admin pass to accept a new fusker upload! but becouse i intregrate it in a new system it can be done after you see the images so only … | |
Hi! I have a problem with the following statement: [code] $dbres = mysql_query("SELECT UNIX_TIMESTAMP(`huur`) AS `huur`,huur1,`login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`attlosses`,`attwins`,`deflosses`,`defwins`,`cash`,`type`,`clan`,'maffiamode',`avaurl` FROM `[users]` WHERE `login`='{$_GET['x']}'"); if($def = mysql_fetch_object($dbres)) { if($def->login == $data->login){ print " <tr><td class=\"mainTxt\">You kicked yourself in the nuts... now what?.</td></tr>\n"; }else if($def->login == $admin1) print " <tr><td class=\"mainTxt\">Do NOT attack … | |
hello.. i am creating cmc pages from admin side. i have 3 level menu in front end. my database table structure for cms pages 'name,parent_id,description,status'. now i have to display all pages subpages and sub of subpages in menu. how to write this query? [CODE]<!-- BEGIN Menu --> <ul id="nav"> … |
The End.