39,393 Topics

Member Avatar for
Member Avatar for aran87

Hello ive got this code to check if a checkbox has been checked i want the user to at least check one checkbox, if they select none then an message should appear saying you havent selected any checkboxes. the user can only select up2 two checkboxes ive tried this code …

Member Avatar for queenc
0
73
Member Avatar for jinchiruki

hi all.. i had this problem when i click submit at a form..this things comesout [B] Warning: session_start(): Cannot send session cache limiter - headers already sent [/B] but the data submitted available in db table. whats the error actually??? fyi,this mini system have login..but for the form,i didn't set …

Member Avatar for johnsquibb
0
65
Member Avatar for imanust

Hi everyone, was trying to make login. wanted to make the query to get details off sql safer and used sprintf but it does not work. the code is as follow: [CODE]<?php session_start(); include('db.php'); if(isset($_POST['submit'])) : // Username and password sent from signup form //stripping $username = strip_tags($_POST['username']); $password = …

Member Avatar for blocblue
0
100
Member Avatar for maddogsprofiles

these are the error codes that keep coming up: Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/maddog/public_html/profiles/v. 2.0/functions.php on line 4859 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/maddog/public_html/profiles/v. 2.0/functions.php on line 19 Warning: mysql_num_rows(): supplied argument is not a …

Member Avatar for ultra vires
0
99
Member Avatar for Lodgey

Hi Forum users, I have recently tried to put together a php contact form but when it sends it doesn't have the visitors email address. I receive the email with the subject and message addressed to myself from myself. I would also like to add the visitors name on the …

Member Avatar for mexabet
0
190
Member Avatar for cork

Hi. I'm trying to create a cookie where the name is the username that a user submits through a form and the value is the number of their visits. I can't get the number of visits to increment. Any ideas why this is not working? Heres my code: [code]<?php $Username …

Member Avatar for cork
0
1K
Member Avatar for Venom Rush

Hi there I need help making my URL's look pretty. I've done the editing of the .htaccess file with regards to mod rewrite from this article ([URL="http://www.roscripts.com/Pretty_URLs_-_a_guide_to_URL_rewriting-168.html"]Pretty URL's[/URL]) but I have no idea on how to implement the php side of it. The article mentions creating a variable out of …

Member Avatar for Venom Rush
0
87
Member Avatar for niladri.user

Why the warning is showing and the header is not sendingwith this script? <?php function authenticateUser($user,$password) { $con=mysql_connect("localhost","root",""); mysql_select_db("niladri",$con); $sql="select * from user_profile where user_id='$user'and password='$password'"; $res=mysql_query("$sql",$con); if( ($row = mysql_fetch_array($res)) && ($user_id==$row["user"])&&($password == $row["password"] ) && ($password !="") ) return 1; else return 0; } ?> <?php $form_user_id=$_POST['form_user_id']; $form_password=$_POST['form_password']; …

Member Avatar for nav33n
0
148
Member Avatar for chitra1

Hi, I am trying to use sessions to display information from one page to the next one but I am having the following problems. Could anyone plz help me??????????? Here is my code: <?php $pnm1=$_POST;/////////name of text box from previous page include("db_connect.php"); $sql="SELECT * FROM new_party WHERE party_name='$pnm1'"; $result=mysql_query($sql); $count=mysql_num_rows($result); …

Member Avatar for buddylee17
0
90
Member Avatar for slacke

I have php code for simple file uploadings. I have index.php with form [CODE] <form action="upload.php" method="post" ENCTYPE="multipart/from-data"> Choose file <input type="file" name="userfile" size="50"> <input type="submit" value="Upload"> </form> and upload.php <?php $uploaddir = '/var/www/htdocs/upload/data/' $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); * if(is_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { * echo "file uploaded."; } else { …

Member Avatar for slacke
0
106
Member Avatar for jino

Dear All, I am new to MySQL. Can i retrive the result of a query as the combination of different fields of a single record.. For example.. if the result record of a query is ... id(1), country(India), Location1(maharashtra), Location2(pune), Location3(Navi Mumbai)... My doubt is that can i retrive the …

Member Avatar for silviuks
0
91
Member Avatar for shadiadiph

I have a problem with my script i am trying to format a text area so that on the next page it displays it as it was entered in the textarea. my css style says this textarea { width:450px; padding:2px; font: normal 1em Verdana, sans-serif; border:1px solid #eee; height:100px; display:block; …

Member Avatar for silviuks
0
85
Member Avatar for Fenerbahce

I choose something from selectbox and click on the button and i get list of the data from database but, whatever i choose from selectbox doesn't remain what i have chosen. It sets itself to first value. How can i do "selected" ? [code] <?php $mysqli = new mysqli("localhost","root","","inantest"); if …

Member Avatar for nav33n
0
138
Member Avatar for dawoodkhan

Hi all can anyone tell me that how to upload an image (jpg) on a page. Dawood Khan

Member Avatar for nav33n
0
31
Member Avatar for ash112

Hi i am new to php. The code below is a page that display results from the database. i included a table. When the search result displays the result it doesnt go on a new line. For example the name neil Mcman and Peter Worth comes in the same line. …

Member Avatar for upstream
0
144
Member Avatar for kevin wood

does anyone no if it is possible to convert a php/mysql page into a html page? if it is would it be possible for you to point me in the right direction as i have no joy searching the net.

Member Avatar for kevin wood
0
104
Member Avatar for sukhy_1

Hello i want a basic search which counts how many records there are ths code works in mysql but when i use it in php its jus prints this code and dont display result // Standard SQL $query="SELECT COUNT(*) FROM dates WHERE search='yes'"; echo $query;

Member Avatar for sukhy_1
0
99
Member Avatar for aran87

hello people ive got a signup form which allows people to signup and login but to signup they enter there email address in which is then used as there login name, its all working but when the next user signs in they mite type the same email address in so …

Member Avatar for somedude3488
0
113
Member Avatar for mortalex

Hey guys, I've heard that you can write php code when its combined with javascript, you just need to echo"" out all the javascript functions. So i've done this and it is working.. to a degree. From using Firebug to test the page, the javascript is coming through and it …

Member Avatar for mortalex
0
139
Member Avatar for websurfer

hello, all: I need help retrieving records from a catalog-like format I am building. Should be soemthing simple i think, but just cant get it... Here is the thing: I have a mysql "Products" table with each product's info in it, and another "images" table that has all the image/paths …

Member Avatar for phper
0
71
Member Avatar for lifeworks

Hi, any help would be greatly appreciated on this Ive discovered that if I am using a form, with the 'server[php_self]' action, then variables that i created earlier (such as ones i retrieved from the URL) disappear, or become unuseable... how do i retain these variables, or pass them for …

Member Avatar for lifeworks
0
269
Member Avatar for queenc

i have a table where the table contains the path of the files. when the user enters a word in the text box it should search all the file and display the files.p

Member Avatar for queenc
0
41
Member Avatar for rajeevkshr

Hi all, I am not able to get the session in IE.Its Working Fine in Mozilla.I tried a lot to Overcome this Problem.Session registration was Successfull.After Successfull login i am redirecting to some Other page.Here Session is Not Coming.Anybody can help me for Doing this? Rajeev

Member Avatar for ryan_vietnow
0
90
Member Avatar for somedude3488

I am creating a php property buy/sell/trade game. The goal is to have the most properties and the most cash after a set time period (cash prize awarded later in site development). I was wondering what you guys would like to see in a game like this. Here is a …

Member Avatar for somedude3488
0
100
Member Avatar for aran87

Hello ive got a form where the users enter there details on a form then click on submit which then should update there telephone number, where is says where Email= $_Post[Email]") thats one of the fields that automatically appear the email cant be updated, this code below luks correct and …

Member Avatar for sukhy_1
0
62
Member Avatar for aran87

Hello ive got a login screen user logs in then they should be able to update there details there orignal details appear in textboxes so i want the user to be able to edit there old details in the textboxes and update them but dont understand how can i update …

Member Avatar for blocblue
0
78
Member Avatar for Fenerbahce

Hi, This code works fine but, when i choose "Female" from selectbox, it sets "Male" in the selectbox again. What is the problem? Thanks [code] <?php if (!isset($_POST["sex"])) { print "Please start!"; } else if ("Male" == $_POST["sex"]) { print "Male !"; } else if ("Female" == $_POST["sex"]) { print …

Member Avatar for kevindougans
0
90
Member Avatar for rebelbwb

I'll make this real short - don't know much about PHP. This form was created and then run through a utility that sets all required fields. I am getting a T_string error message in line 1. If someone can help I would greatly appreciate it. I am attempting to include …

Member Avatar for rebelbwb
0
113
Member Avatar for pancgom

I have a page1.php which is a form and i want to be able to go to page2.php when i click submit in page1.php.? How do i do that ...my page1.php is a self processing form. this is what i have now... <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> - this is …

Member Avatar for pancgom
0
134
Member Avatar for maddogsprofiles

OK so i bought a Myspace clone for my web site, [URL="http://www.maddogsprofiles.com"]http://www.maddogsprofiles.com[/URL], but it doesn't work. Why you ask, because the functions.php file is all screwed up! My admin panel doesn't work and the site is a basic demo site. I got like 4 different error codes from it! And …

Member Avatar for maddogsprofiles
0
231

The End.