39,323 Topics

Member Avatar for
Member Avatar for Auch

Hi! I have a form working and in the login section I also give the option to register in case someone hasnt done so yet. This will show another form which, on submit, will use a different .php page. Now on that page,if register is successful, I'd like it to …

Member Avatar for Auch
0
102
Member Avatar for Naveenk2k

Hi I have updated the database when browser is closed,But i have a small problem.i.e. The database is updating when the page is refreshing also. I need that the Database should be updated on when the browser is closed(Not updated when page is refreshed).

Member Avatar for digital-ether
0
69
Member Avatar for tulipputih

Hello, Anyone know how to solve this problem? I have several tables. 1. the main table namely lesson contains several fields that used for searching. 2. weight is assigned by users for each keyword for searching purpose. 3. users' keyword will be compared with the record in the database. each …

Member Avatar for tulipputih
0
190
Member Avatar for arunajasmine

Hi, i am having Cakephp code like [CODE]<?php foreach ($viewfields as $r): if($r['Attribute']['type']=='radio') { ?> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($){ $("#"+<?=$r['Attribute']['id'];?>).each(function() { type= "<?=$r['Attribute']['type'];?>"; attribute_id="<?=$r['Attribute']['id'];?>"; if(type=="radio") { var ht = $.ajax({ type: "GET", url: "http://localhost/FormBuilder/index.php/forms/viewChoices/"+attribute_id, async: false }).responseText; var myObject = eval('(' + ht + ')'); var data = myObject;var j=0; …

0
119
Member Avatar for Jord09

Hi I'm trying to use the functions/methods of one class inside another, however I keep getting errors and I don't understand this... for example; [CODE=PHP] class DB { private $host; private $user; private $pass; private $database; public function __construct($host, $user, $pass, $database) { ... } public function query($sql) { ... …

Member Avatar for Jord09
0
137
Member Avatar for Jeyush

Hi mate, I use regex for my validation but @ this time I get confuse, how to use white space in it. I want user to enter a city name, some city name contains white space like Los Angeles, New York, I have regex which is not allowing user to …

Member Avatar for digital-ether
0
156
Member Avatar for ondusko

I installed a joomla template and the search seems to be the only thing that is not working ,it a;ways comes up with a 0' for results where in in the back end can i fix this issue ? thankyou

Member Avatar for digital-ether
0
53
Member Avatar for niranjan087

I am working with a php file(WAD Assignment.php) now. If a condition is satisfied, it displays a JRadiobutton option. I want the value of that JRadioButton in my php file. But the value is not coming out. How can I do it? Code is below. <code=php> if($row["membership_category"]=="Student member"){ ?> <html> …

Member Avatar for SimonMayer
0
119
Member Avatar for jay_412

hey guys,,I need some help on how to call the stored procedure using classes,, I have my weeklyevent.sql file that contains stored procedure.One of this is updating a record [QUOTE] drop procedure editweeklyevent$$ create procedure editweeklyevent ( i_ses bigint, i_weid int, i_strt date, i_end date, i_act smallint, i_min smallint, i_vis …

Member Avatar for pritaeas
0
138
Member Avatar for debuitls

Hi all, Wondering if somebody can help me.. Bascially I have two tables bid table and proposal table. I'm trying to print to screen all the proposals made by a particular user! The problem is that only those proposals that have bids made on them are printing to screen. So …

Member Avatar for Thirusha
0
85
Member Avatar for jay_412

hi guys,,i had this problem,,I want to make a function for the days but the days has the equivalent values..... 1-Sunday 4-Wednesday 2-Monday 5-Thursday 3-Tuesday 6-Friday and 7-Saturday and also for the visibility 1-Active 2-Inactive No database had been query on it..So its just a function but the output would …

Member Avatar for darkagn
0
77
Member Avatar for Barefootsanders

Hey everyone. I just recently set up(or tried to) a userdatabase where people can log in and see a user edit page. For some reason when you try to register, instead of redirecting to the successfull register page, it just goes to a page, "process.php" which process the login when …

Member Avatar for kumar_kagathara
0
153
Member Avatar for hmkk

hello, i am new to php and i am problem whie installing classifieds my database is hitech_classifieds and username is hitech_admin Please tell me how should i write that info in the following code so the errror doesn;t come <?php $haserrors=FALSE; function print_sql_error(){ global $haserrors; $haserrors=TRUE; print('<font color="#FF0000">' . mysql_error() …

Member Avatar for darkagn
0
301
Member Avatar for JBridges

This seems like the most basic issue in PHP, but I can't figure out the best way to do this. In short, I am working on upgrading an existing site and instead of Dreamweaver's clunky template function, am switching to PHP includes for various constant parts of the site (header, …

Member Avatar for codejoust
0
106
Member Avatar for charles07

Warning: mail() [function.mail]: Failed to connect to mailserver at "C:\wamp\sendmail\sendmail.exe -t" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\akhil\booking.php on line 559

Member Avatar for codejoust
0
71
Member Avatar for sarithak

Hi frnds... I am doing poll in AJAX..this is first time i am using AJAX.. The below code is working fine in mozilla, chrome...but not working in IE....plz check the below code...and change the code as correctly..i think problem in object creation in IE.. [CODE] <script> //VOTE POLL ------------------------------------- function …

Member Avatar for diafol
0
98
Member Avatar for mstrlouis

My code is a php search function which is supposed to search from two tables in my database and displays matching results from the two tables in a line after line format. It is supposed to match the two tables with a common key field. However, the primary table has …

0
181
Member Avatar for Mujahid158

I'm running a PTC website. I want to show the last member registered on my website. I tried the following query but nothing is shown on the page; [CODE] <? $mem = mysql_query("SELECT username FROM tb_users ORDER BY id DESC LIMIT 1"); ?> New Member: <? echo $mem; ?> [/CODE]

Member Avatar for Mujahid158
0
79
Member Avatar for empoor

Hey. I've got this code, [CODE] // query article $query1 = "SELECT * FROM (articles LEFT JOIN authorisation ON articles.page_id = authorisation.page_id LEFT JOIN authors ON articles.author_id = authors.author_id) WHERE articles.page_id NOT IN (authorisation.page_id) ORDER BY issue ASC"; $mysql_result1 = mysql_query ($query1) or die ("Query '$query1' failed with error message: …

Member Avatar for empoor
0
145
Member Avatar for wandor

When I fill my Contact Form 1) select option TITLE (MR. MRS. MISS) 2)First Name 3)Last Name 4) E-mail I make validation to all data, The question is when I select title e.g. MR and then fill first name, last name AND e-mail IS NOT right (info2company.com) validation said *Email …

Member Avatar for cwarn23
0
2K
Member Avatar for beershits

I'm trying to setup a simple php code that will read .txt files. I want the links to change $x to the desired .txt file, then print the results below the navigation. The code works if i predefine $x, but i want to make it where clicking the links defines …

Member Avatar for almostbob
0
72
Member Avatar for praveen_dusari

hi all, i am generting a report where i need to display the monthly wise reports iam not able to display correctly [code=php] <?php ob_start(); include_once('login_check.php'); include_once('functions.php'); $mon=date("m"); $year=date("y"); $num = cal_days_in_month(CAL_GREGORIAN, $mon, $year); ?> <html> <head> <title>..</title> <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> <link rel="stylesheet" type="text/css" href="../styles.css"> <style type="text/css"> <!-- body …

Member Avatar for praveen_dusari
0
146
Member Avatar for severman

hi all i have a very urgent question i want to write a function that i can use what i want to do is something like that: [code] <?php $a=_GET["a"]; function radom() { $x=rand(0,4); echo "&b=$x"; } if($a==1) {random(); } [/code] the problem is that it doesnt work... i'm getting …

Member Avatar for codejoust
0
87
Member Avatar for becraig

I am a php noob and I have tried a few things and nothing so far has worked. I need to find some php code that allows me to do an http post and return the results into an array so I can parse the results for a string. The …

Member Avatar for becraig
0
129
Member Avatar for andydeans

Hi, Could anyone point me to some good tutorials on using PHP with Dreamweaver? Also any other helpful forums? Many thanks Andy

Member Avatar for andydeans
0
193
Member Avatar for InsaneVr6

I am creating a blog and wanted to be able to have the posts show up on the homepage (which I have coded flawlessly), but I want them to be posted to another page at the same time and ad a "read more" link where they can see the full …

Member Avatar for InsaneVr6
0
123
Member Avatar for justted

Hello, I have been trying to find a way to load my page in the following way and wondered if there is a solution using PHP/AJAX,etc? I have a webpage that has an iframe. This iframe contains alot (100 plus) small images and takes forever to load on a 56k …

Member Avatar for almostbob
0
120
Member Avatar for codejoust

Would anyone be able to provide pointers / comments on this object-oriented PHP program? You can take a look at it on [URL=http://github.com/codejoust/PHPContactForm/]http://github.com/codejoust/PHPContactForm/[/URL] It's still a work in progress.

0
109
Member Avatar for mashal_khan

hi budies! i m [B][COLOR="Red"]mashal khan[/COLOR][/B] and very much new to php i have a problum in chexboxes plz help me. the problum is that i wan to delete multipal recorde from a table named regesteration through a button named delete zpl send me the coding of the condetion on …

Member Avatar for diafol
0
40
Member Avatar for TechExpressInc

Objective is to redirect the website user based on the location. If the user is at the office at a specified ip address, when an icon is clicked they will have access to the employee area. If the user is not at the specified ip address they will get a …

Member Avatar for cwarn23
0
172

The End.