39,326 Topics
| |
Want to learn basics of PHP.Can you share your knowledge with me? | |
I tried to put a google search bar in a website. First time I pasted the whole code within the <div id="search_bar"> </div> and it was all smooth. However I want to control it from a php file. I tried to include it through .php (files are already .php ) … | |
MARITAL STATUS IS ON LINE 26 FROM THE FOLLOWING CODE. <?php // Get values from form $SURNAME=$_POST['SURNAME']; $MIDDLENAME=$_POST['MIDDLENAME']; $FIRSTNAME=$_POST['FIRSTNAME']; $COLLEGE=$_POST['COLLEGE']; $MARITAL STATUS=$_POST['MARITAL STATUS']; $GENDER=$_POST['GENDER']; $PHONE NUMBER=$_POST['PHONE NUMBER']; $ROOM NAME=$_POST['ROOM NAME']; $GURDIANS NUMBER=$_POST['GURDIANS NUMBER']; | |
Okay, I used a tutorial from nettuts to create a log in form, so that's done. However, I would now like to create a form to update a scoreboard powered by a database (unless there is another method that may be more efficient. I have four teams and thus four … | |
I have a system where there is a list of items. each has these three fields id - unique to each item. The index field for the db name - not unique date - not unique I just started using arrays, and am not that proficient. Also, I haven't worked … | |
I wonder if how could i achieve this code: these are the conditions 1. there will be 2 text-areas 2. the text-area will be having a input of several lines of like this one: [CODE]Griffon Treant Werebear High Elf Efreeti Vampire Sheep Elven Archer Militia Archer Dark Elf Magician[/CODE] 3. … | |
Hi everyone New to the site (as you can tell) I've searched the web and your site and still struggle to find an answer to my question. I'm creating a profile website in PHP, I have my sign up and login forms, which registers the details on my sql database, … | |
Hi Can anyone tell me how to have the email that is received from a form on a website formatted so it looks nicer. Here is the code that generates what i see in the received email. i just want to make some lines bold and in red and on … | |
Hi Guys, I'm a bit of a newbie, but I like to think I learn quick :) I have a piece of code that's working well to show that a job listing has expired. Can anyone tell me if there is a simple way of telling it not to show … | |
Hey, I need to get the last ID from my mysql database and add +1 to it. I saw this mysql_insert_id(); but it looks like it only gets the last insert id? But what happens if the last query was a different table? Dan | |
I've been trying to get this to work for alittle over a week and im about to lose hope in my capabilities. I need some help, someone who can write the working code and explain what is happening. Basically, i want to display a message that is called from posts.php … | |
Hi all, I have tried this for a very long time. But i could not found out the error. This should suppose to retrieve data when a user enters particular Account Number. But always an empty form displays...:-( [CODE] <?php $connect=mysql_connect('localhost','root',''); mysql_select_db('bank',$connect); if( isset($_POST['account_number']) && !empty($_POST['account_number']) ){ exit(); } ?> … | |
I don't know why can't I update? Coding show as below: [CODE]<?php $con = mysql_connect("example.com","user","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("germanpo_gpweb", $con); $refnum = $_POST['reference_num']; $recetel = $_POST['receiver_tel']; mysql_query("UPDATE `order` SET `receiver_tel` = '".$recetel."' WHERE `reference_num` = '".$refnum."'"); mysql_close($con); ?> <p align="center"><? echo "$refnum , … | |
Ok, so I this error on one of my PHP pages. Parse error: syntax error, unexpected T_PRINT in /var/www/html/texas/z_code/wells_edit.php on line 177 I have no idea what i'm doing wrong and I've been trying to figure this out for some time. If any one could help me, that would be … | |
Okay, so basically i need a little helpt with some validation code. I need to see if the user has actually selected an image, if not, $error = 1;. I tried this: [CODE]if($_FILES['image']['name'] == "") { echo 'Error: Select an image!'; $error = 1; }[/CODE] I tried several times to … | |
I have Date in format: 12, August, 2011 and Time : 09:11:02 I am using following for Date [CODE] date("j, F, Y"); [/CODE] and following for time [CODE]strftime("%I:%M:%S")[/CODE] How to create database and insert date & time as it is into MySql ? | |
am getting [COLOR="Red"]Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent[/COLOR] while running the following code. please help to fix it.. thanks. <html> <!-- centermain.php is a frame, user redirected to frame if tried to access from url--> <SCRIPT LANGUAGE='javascript'>try { if (top == self) {top.location.href='centermain.php'; } … | |
Hello everybody I'm working on MySQL I always have to use the Count function like this: [CODE]$Q = mysql_query("Select count() from tableA",$connection);[/CODE] How can I handle this query? How can I handle the number returned by this query?? Thanks. | |
Hello everyone, I'm thinking of doing a website that does horse race winning prediction based on previous winnings of a horse. Where do i start? and can anyone help me in integrating neural network or by use of probability into a php website how does it work? any tutorials that … | |
wenn im upload picture the error was in this row ! is the prob. with witdh an height ! ?? [CODE]$h = number_format(($size[1] / $size[0]) * $width, 0, ',', '');[/CODE] | |
i don't know why my firefox browser executing mysql query two times. and this is happening only with firefox. i have tested the code with chrome and opera and its working fine. now i have tested simple php code . this one [CODE]mysql_query("insert into test('1','12345')");[/CODE] just this code and i … | |
Hi, anybody please help me out. i am having an array $test1=array(1,2,3,4) i want this "test1" array values into "test2" array variable.thanks | |
Hello all, am Ougesh and a beginner in web development, i wish to become a good php developer and want some help from u guys of where and how to start. Thank you very much | |
i am new to codeIgniter and am using version 1.7. can somebody give me sample scripts to illustrate MVC. use login/user authentication from database typically using username and password. after logging, user should be redirected to certain page if invalid credentials, display error message. give comments on your logic. | |
Hi, I have created a web application in php/codeIgniter. when i want to access the same from anothe computer using say 'http://10.11.111.101/pos',it displays a blank page instead of login page. i have developed it using ubuntu 9.04. what can i do to make it accessible local area network ? i … | |
Hi, Can somebody give me the sample coding to develop "online request form" using php. | |
hi ... can someone point out whats wrong with this code?... i think i code it correctly but it gives me an error... <HTML><HEAD> </HEAD> <?php $db_host = 'localhost'; $db_user = ''; $db_pwd = ''; $database = ''; $table = ''; if (!mysql_connect($db_host, $db_user, $db_pwd)) die("Can't connect to database"); if … | |
Hello, What I am trying to do is restrict access to something if 48 hours hasn't passed since the last access. I have a MySQL table with the last access time (col name: lastAccess). If they are within the 48hours, deny access and tell them how many hours and minutes … | |
I am trying to create a calender with a checkbox for each date. When a user clicks the submit button, I want to get those selected dates inserted into the database and those which are not selected would be deleted from the database if those already exist before. I have … | |
For some reason, people cannot write apostrophes without resulting with an error... For example: Prud'homme will not work Here's my line of code: [CODE]$string_exp = "/^[A-Za-zé.¸UûÙùàÀèÈéÉïÏîÎôÔêÊçÇ .,'-]+$/";[/CODE] I don't understand why it doesn't work, does someone know? |
The End.