39,326 Topics

Member Avatar for
Member Avatar for lisaroy1
Member Avatar for novice02
0
145
Member Avatar for manchurianCEO

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 ) …

Member Avatar for manchurianCEO
0
165
Member Avatar for longinokamugish

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'];

Member Avatar for Pro2000
0
112
Member Avatar for kyleo92

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 …

Member Avatar for rv1990
0
144
Member Avatar for jj.amonit

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 …

Member Avatar for jj.amonit
0
96
Member Avatar for spixy

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. …

Member Avatar for spixy
0
115
Member Avatar for vernz

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, …

Member Avatar for vernz
0
104
Member Avatar for bubbafunk1

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 …

Member Avatar for cereal
0
140
Member Avatar for tsp003

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 …

Member Avatar for tsp003
0
210
Member Avatar for Danny159

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

Member Avatar for Danny159
0
163
Member Avatar for Jamesiscrazzy

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 …

Member Avatar for Jamesiscrazzy
0
233
Member Avatar for heshanm

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(); } ?> …

Member Avatar for rv1990
0
199
Member Avatar for erik216

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 , …

Member Avatar for faroukmuhammad
0
220
Member Avatar for TheNNS

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 …

Member Avatar for TheNNS
0
217
Member Avatar for kaizokupuffball

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 …

Member Avatar for kaizokupuffball
0
464
Member Avatar for vizz

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 ?

Member Avatar for pritaeas
0
100
Member Avatar for Ichcha

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'; } …

Member Avatar for smrict
0
142
Member Avatar for Paaat

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.

Member Avatar for Paaat
0
246
Member Avatar for Kavatae

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 …

Member Avatar for G&G Designing
0
194
Member Avatar for gonidelux

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]

Member Avatar for vibhaJ
0
85
Member Avatar for doitnow1147

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 …

Member Avatar for vibhaJ
0
65
Member Avatar for jacksantho

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

Member Avatar for karthik_ppts
0
79
Member Avatar for ougesh

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

Member Avatar for ougesh
0
122
Member Avatar for mwenyenia07

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.

Member Avatar for ko ko
0
71
Member Avatar for mwenyenia07

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 …

Member Avatar for ko ko
0
62
Member Avatar for jacksantho

Hi, Can somebody give me the sample coding to develop "online request form" using php.

Member Avatar for dean8710
0
303
Member Avatar for uselessninja

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 …

Member Avatar for uselessninja
0
384
Member Avatar for turt2live

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 …

Member Avatar for burgercho
0
173
Member Avatar for srijon

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 …

Member Avatar for madCoder
0
118
Member Avatar for riseguim

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?

Member Avatar for minitauros
0
131

The End.