39,393 Topics
![]() | |
How i put to my register error if user already exists. My code: [CODE]<?php include "connect.php"; echo "<h1>Register</h1>"; $num = 0; $submit = $_POST['submit']; $username = $_POST['username']; $password = $_POST['password']; if ($submit){ if ($username){ if (strlen($username) > 20){ $num ++; echo "<tr><td>".$num.". Username is too long.(3-20)</td></tr><br />"; } } if … | |
Hi Friend image Uploading is working well in localhost working with WAMP SERVER 2.0. Also i am able to access the stored image easily from the directory in offline BUT While working online only the path is getting updated in database but the file is not uploading to specified directory. … | |
Hi, We can code this way to print something if Exit button is clicked. [code] <form action="process.php" method="POST"> <input type="hidden" name="hiddenName" value="Jolly" /> <input type="submit" name="submit" value="Exit" /> </form> if($_POST["submit"] == "Exit") { echo $_POST["hiddenName"]; } [/code] What about if we use this way. How do i check if Exit … | |
New to php I want to create new table and store session ID this step is to prevent multiple login Current using this code which does not check multiple logins Any advice would be appreciated [CODE] <?php //Start session session_start(); //Include database connection details require_once('config.php'); //Array to store validation errors … ![]() | |
hi im trying to build a program like windows commander on linux with php. is there any way that i can start vi with php? for example, im showing all the files of a certain folder and now i wanna edit with vi one of the files. how do i … | |
I install php script.Everything is fine.But when i go to the page (Code Below ) Update button is not showing on internet.While when i open the file with Dreamweaver i can see the Update button.Please be advice. I am not php coder.Dont know that much about programming. Thank you in … | |
the above code is supposed to allow you to edit the property info/details of real estate in the database....problem is when the edit button is clicked , a parse error (on line 802) is displayed.[code]<?php header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") … | |
Hey Guys...i know this is a common problem and ive read other threads, but can't figure out my specific problem. Any help would be appreciated!! This script worked perfect until i moved it to a different host. Getting this error: [CODE] Warning: mysql_numrows(): supplied argument is not a valid MySQL … | |
New to PHP Password change fails please advice [CODE] CREATE TABLE IF NOT EXISTS `ps_users` ( `id` int(255) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `firstname` varchar(50) DEFAULT NULL, `lastname` varchar(50) DEFAULT NULL, `password` varchar(40) NOT NULL, `active` int(1) NOT NULL DEFAULT '0', `ip` text NOT NULL, `usergroup` text … | |
I want to set a password to [B]phpmyadmin interface[/B] in WAMP.. How can I do that?? I jst want to make sure that no one will change my databases using Phpmyadmin GUI ..() mysql console is ok..... thankx in advance.. | |
hai frnds......how can i sent mail to multiple mailaddresses at a time? you have any script abt this.. so, plz help me..... | |
This should be pretty simple, We have written a script that calls certain information from our database then we use a simple echo to show the information on our other .php pages. What we need to do is be able to show this same information on html pages as well. … | |
I have the following update code but i keep getting a syntax error. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE order_id='105'' at line 21 [CODE]mysql_query("UPDATE status SET id = '". $_POST['id'] … | |
Hello, I have 2 php forms, the first that takes the input and sends it to the second form which checks to see if the fields are empty. What I have to do is if both fields are not entered is return to the main page and highlight the field/s … | |
I have a register and login code, but i don't know when the user register to automatically make user page.Can anybody help me? | |
I've been echoing variables by simply typing "echo" then the variable. For instance: [CODE]<?php $name = "Me"; echo $name; ?>[/CODE] This has been working just fine. I was watchign a tutorial and when he echoed his variable he put his in curly brackets. This is the example: [CODE]<?php $username = … | |
Hi, I been using a function for past few months that refreshes or redirects a user after xx time, for example after logging in etc. It workes fine in FireFox but notice that in IE7/IE8 and Google Chrome it does not redirect. I checked in IE and it is enabled … | |
Hi all, I would like to know is it possible for php do the images matching?Example, user upload the image and search from similar/ same picture? Thanks | |
Hi everyone....I have a problem on my php date function... and i hope someone will help.... the PHP date function outputs incorrect results... It outputted incorrect date which is 8 hours late.... and i found out that the timezone has been set to UTC. So ive search the net and … | |
I have a newsletter that sends out a notification to members with in 30 days of expiring. The way it works is the script populates an <option> from the members table who fall with in the thirty days. All I want to do is be able mask the $to recipients … | |
[CODE=PHP]<?php echo "<html> <head> <title>QUIZ-FINALS</title> </head> <body background=fatcat.jpg> <form method=post> <table border=0> <tr><td colspan=3><b>Enter eight Score:</b><br></td></tr> <tr><td><input type=text name=1></td><td><input type=text name=2></td><td><input type=text name=3></td><td><input type=text name=4></td></tr> <tr><td><input type=text name=5></td><td><input type=text name=6></td><td><input type=text name=7></td><td><input type=text name=8></td></tr> <tr><td colspan=4><input type=hidden name=h value=true> <center><input type=submit value=Compute></center></td></tr> </form></table> <br>"; if($_POST['h']==true) { $n[0]=$_POST['1']; $n[1]=$_POST['2']; $n[2]=$_POST['3']; $n[3]=$_POST['4']; … | |
Hi Folks, I have put my whole PHP code and MySql in server and I want to access the files in Client System through LAN . I am using the [B]wampserver[/B] in the server system to execute the script. So please let me know about the procedure to do the … | |
I have to update a site that has a few hundred html pages and uses frames. The admin wants to rid the site of the use of frames. I have gotten as far as to replace the frames w/php by including dynamic URL for the navigation menu. Here is my … ![]() | |
Hi, First of all, I'm no database expert. See me as managing a project where this problem occurs. We are building a system that will enable us to roll out Windows Patches automatically to all Windows systems we manage. We use WSUS on SQL Server 2005/SQL Express. The application will … | |
We've had an old website move server but am having lots of problems with it, plus it's been nearly two years since I did any PHP so any help would be greatly appreciated. Have sorted some problems out but am stumped by this one. Have stripped the code down to … | |
Now code looks like this... [COLOR="Red"][B]No links(page navigaton links) working...[/B][/COLOR] i think(not sure) problem @ line no 55, 66 & 77...(query part of URL). [CODE]<?php //CONNECTION TO DATABASE! $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="accounts"; // Database name $tbl_name="login"; // Table name $tbl1_name="details"; // … | |
this php n html code is supposeed to allow editting of property info/details | |
U get the following error on my one page Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/www/users/stealtf/components/com_aclassf/top.php on line 111 This is my coding [CODE]<?php /** * This file is part of Almond Classifieds Component for Joomla! (site:[url]http://www.almondsoft.com/j[/url] ) * Copyright (C) 2008-2009 AlmondSoft.Com. All … | |
i can't get this from working. i want to execute these two queries ebcause i want to insert data to two separate table. is it possible to do this with one query? this is what i've got so far: [CODE=php] $sql = "INSERT INTO login SET studNo = $studNo, userName … | |
in my web server all pages i develop targeting internet explorer browser but other browser can open it but not view properly.therefore i need to forcefully open it in internet explorer.if user open it in other browser than IE it gives a message box saying "The site is best viewed … |
The End.