39,320 Topics
| |
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? | |
I'm trying to create a countdown timer that uses datetimes from a database. So far I have the endDate as a DateTime object. What I want to be able to do is pass this into javascript as a javascript DateTime, then find the difference between the endDate and Now, and … | |
Hello, I need to find a way to use regex to exclude a phone number like this: +558499608822 I want any number that starts with the country code 55 to be excluded. For some reason \+55 does not work. Thanks for the help... | |
hi, All. I know that how to use public, protected and private variables. for ex: public i can use it another class, protected i can use in main and being inherited class and private only the class where it declared. but i dont understand what is purpose to it public, … | |
echo "<form action='' id='customForm' method='post'>"; echo "<div>"; $mobile = $_SESSION['mobile']; echo "<label for='name'>From : $mobile</label>"; echo "</div>"; echo "<div>"; echo "<label for='name'>Sender Mobile number</label>"; echo "<input type='text' name='recipient' id='mobile' class='error'>"; echo "<span id='nameInfo' class='error'> Mobile number must contain only 10 digits</span>"; echo "</div>"; echo "<div>"; echo "<label for='email'>Message … | |
gudpm,,hi every one!!!i just want to know if there are codes that will make a graph for our decision support thesis.thank you | |
Hi everybody! I'm creating a minor feed reader and I wonder how I can best store information on which feeds have been read or not? I was thinking of storing an url to the feed, the post title and the time it was posted. Would this be sufficient? | |
hi friends.... I'm getting this type of error n running my program... Warning: include(include_fns.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\index.php on line 7 Warning: include() [function.include]: Failed opening 'include_fns.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\index.php on line 7 Can Anyone plzz Tell me what this … |
The End.