39,320 Topics

Member Avatar for
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
209
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
230
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
219
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
216
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
463
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
193
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
121
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
290
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
369
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
172
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
117
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
129
Member Avatar for Aeterna

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 …

Member Avatar for Airshow
0
219
Member Avatar for Ender330

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

Member Avatar for pritaeas
0
66
Member Avatar for azegurb

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

Member Avatar for MooGeek
0
121
Member Avatar for rayidi

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 &nbsp; &nbsp; …

Member Avatar for cereal
0
485
Member Avatar for jorjah

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

Member Avatar for vibhaJ
0
95
Member Avatar for kamalbasha.v
Member Avatar for gunnarflax

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?

Member Avatar for vibhaJ
0
113
Member Avatar for surjeetk27

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 …

Member Avatar for vibhaJ
0
117

The End.