282 Posted Topics

Member Avatar for ryan311

[QUOTE=ryan311;1122701]theres nothing happen everytime i click delete. here's my code admin.php [CODE]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("reservation", $con); $result = mysql_query("SELECT * FROM guest order by code asc"); mysql_close($con); <script> del=function(code){ m = confirm("Are you sure you want to delete this …

Member Avatar for ryan311
0
74
Member Avatar for nats01282

[QUOTE=nats01282;1114745]Hi all, I am creating a online c.v but do not want it open to every one so i have made a simple login file but want the page to re-direct when the login is correct, [CODE] <?php $user = "user"; $pass = "pass"; if ($_POST["username"] != $user && $_POST["pass"] …

Member Avatar for mktgmgr101
0
98
Member Avatar for khadrani_arif

fine....after clicking the registration page forward a mail with link and insert that values with status=0 of that user. when ever user clicks that link(which is redirecting to your page) using that link will get that value and write the update query for user status=1. that all. if you have …

Member Avatar for mktgmgr101
0
107
Member Avatar for muralibobby2015

hello.. hai to all. i am fetching description which is in database. that description has 5 pharas. i am desplaying in front side and calling translation function. now i am getting this error.[CODE]Warning: file_get_contents(http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=%26lt%3Bp%20class%3D%26quot%3Bnormal_text%26quot%3B%26gt%3BA%20woman%60s%20body%20performing%20to%20its%20utmost%20capability-%20that%60s%20what%20pregnancy%20is.%20From%20conception%20to%20delivery%2C%20the%20female%20form%20is%20tried%20and%20tested%20to%20carry%20and%20bring%20forth%20new%20life.%20The%20natural%20action%20can%20be%20quite%20exhausting%21%20If%20incorporating%20a%20pregnancy%20massage%2C%20the%20benefits%20to%20the%20expecting%20mother%20are%20incredible.%26lt%3B%2Fp%26gt%3B%3Cbr%20%2F%3E%0D%0A%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3Bp%20class%3D%26quot%3Bnormal_text%26quot%3B%26gt%3BPregnancy%20massage%20therapists%20specially%20trained%20in%20this%20area%20understand%20the%20exacting%20requirements%20of%20a%20mother%20to%20be.%20They%20are%20particularly%20skilled%20in%20the%20best%20pregnancy%20massage%20techniques.%20They%20understa in C:\wamp\www\addmultiplelanguajes-2009-08-15\k2.php on line 47[/CODE] actually this is my script. plz remember one thing what it …

Member Avatar for muralibobby2015
0
83
Member Avatar for almahmeed

[QUOTE=almahmeed;1107829]Yep. This has solved it for me! Simple things but wasted most of my day .. Thank you very much .. Aziz[/QUOTE] i have also same problem? how to solved your problem when change languages.....tel me plz?

Member Avatar for muralibobby2015
0
97
Member Avatar for muralibobby2015

hello... anybody give suggestion.. i am doing one task what it zzz means my site is in english. i have dropdown list having multiple languages. if anybody changes language option site all pages change to that language. any body knows how to do it?

Member Avatar for muralibobby2015
0
2K
Member Avatar for xuexue

[QUOTE=xuexue;1108874]oh, thanks to your help sir..but the main problem really is that, passing the value of a variable coming from javascript to php..thats all only..thanks..[/QUOTE] [CODE]<script> function number(id){ document.location.href = 'xxx.php?id='+id; } </script> <a href="javascript:number(10)" class="tahoma11boldlink">number</a>[/CODE] try this one.

Member Avatar for xuexue
0
609
Member Avatar for muralibobby2015

hello.. actually i am entering starting date. and also giving period in digits.for example 2yrs. to day date 22/01/2010. after 2years that date will 22/01/2012. how to find end date using javascript.

Member Avatar for muralibobby2015
0
79
Member Avatar for anu.reka85
Re: PHP

[QUOTE=anu.reka85;1106886]what is PHP stands for...[/QUOTE] go and search in google. you will get every thing about php.

Member Avatar for samarudge
-8
177
Member Avatar for muralibobby2015

hello.. i did one simple task. but values are not holding after submit. how to solve this problem. below is my code. after interest field submit the form. automatically displays the monthly payment. but that value is not holding in the field.[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html …

Member Avatar for nav33n
-1
157
Member Avatar for aneeka

[QUOTE=aneeka;1106862]Help!! I need to generate a bar graph out of the data from the MySql database, could anyone help me here? Thanks![/QUOTE] go through this [URL="http://www.qualitycodes.com/tutorial.php?articleid=20&How-to-create-bar-graph-in-PHP-with-dynamic-scaling"]http://www.qualitycodes.com/tutorial.php?articleid=20&How-to-create-bar-graph-in-PHP-with-dynamic-scaling[/URL]

Member Avatar for kireol
0
290
Member Avatar for manishmannan

[QUOTE=manishmannan;1106846]in my program i am getting this error what would be the reason Warning: include(/common.inc.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\oob\Product\manager.php on line 41 Warning: include() [function.include]: Failed opening '/common.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\oob\Product\manager.php on line 41[/QUOTE] i think you didnot gave correct …

Member Avatar for vaultdweller123
0
138
Member Avatar for muralibobby2015

hello.. i have one dropdown box in while loop. when i am select one option for one row without submit it can only change. how to do? actually i am retriving data from database. here status dropown is here. then i selected status on dropdown for particular content. so it …

Member Avatar for diafol
0
115
Member Avatar for muralibobby2015

hello.. i want to do a customizable blog using php. admin can post from admin side. then user can give coments on that post. but this is simple task. but how to display that comment with out refresh the page.

Member Avatar for amd_k8
0
58
Member Avatar for ayesha789

[QUOTE=ayesha789;1099013]Hi Dear All I have 1000s of JPGs Images. Names like S-KHI-1233 Now I need To rename all the images and new name should be last 4 numeric digits like 1233. For all 1000 JPGs I want to do this. if image name is S-KHI-1964 then new name should be …

Member Avatar for ayesha789
0
170
Member Avatar for muralibobby2015

i am getting this error but i think there is no error. any one look at this [CODE]$affiliateForm = array( "username"=&gt;array("User Name","text",""), "password"=&gt;array("Password","password",""), "site"=&gt;array("Your Web Site","text","http://"), "email"=&gt;array("Your Email","text","[email protected]"), "akey"=&gt;array("","hidden",""), "ptype"=&gt;array("Payment Method","select","check|paypal"), "pemail"=&gt;array("Paypal Email","text",""), "address"=&gt;array("Your Address","textarea","") );[/CODE] i am getting [B]Parse error: parse error, unexpected '=', expecting ')' [/B] on this …

Member Avatar for pritaeas
0
72
Member Avatar for muralibobby2015

hello... i want to do one task. can any body know plz tell me. when i click on hyperlink then popup fancy box will appear with image and image discription. and that popup fancybox have iframe with scrolltab. if anybody knows plz send reference.

Member Avatar for almostbob
-1
111
Member Avatar for muralibobby2015

i want to add scroll bar in table. but occuring scrolling problem. here is the my html form. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="imagetoolbar" content="no" /> <title>FancyBox 1.2.6 | Demo page</title> <!--<link rel="stylesheet" href="style.css" />--> <link …

0
81
Member Avatar for muralibobby2015

hello.... i want to do text fadein ,fade out using javascript onload page. actually i want to display text which is in database that text will appear in front end with fadein and fadeout effect. anybody plz help..............

Member Avatar for muralibobby2015
0
141
Member Avatar for vizz

[QUOTE=vizz;1091089]I need password changing code Please help! Database :-members Table:- userid int(12) name varchar(150) surname varchar(150) username varchar(150) password varchar(20) How to allow user to change their old password and set new password?[/QUOTE] use update query.

Member Avatar for vizz
0
203
Member Avatar for muralibobby2015

hello... i am doing one project. in my registration page all javascript validations are working in mozilla firefox. but it is not working in internet explorer. anybody knows what is the problem is der?

Member Avatar for BzzBee
-1
111
Member Avatar for muralibobby2015

hello.... i want to do text fadein ,fade out using javascript onload page. actually i want to display text which is in database that text will appear in front end with fadein and fadeout effect. anybody plz help..............

Member Avatar for muralibobby2015
0
158
Member Avatar for indoreankita

[QUOTE] i am using the code import excel file to mysql. you can change it as your requirements.[/QUOTE] can you explian how the functionality works. i mean is it useful for csv files also?

Member Avatar for crohole
0
258
Member Avatar for Lakshith

[QUOTE]<option value ="<?php echo $data['primary_email'] ?>"</option>[/QUOTE] write like this. [CODE]<option value ="<?=$data[primary_email] ?>">$data[primary_email]</option>[/CODE] it will works fine.

Member Avatar for iraberyl
0
107
Member Avatar for pushpakalpana

[QUOTE=pushpakalpana;1033821][CODE] <?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('murali',$con); $message = ''; $error = array(); $select=mysql_query("select * from registration where username='$_REQUEST[username]'"); $taken_usernames=mysql_fetch_array($select); // main submit logic if (@$_REQUEST['action'] == 'register') { $resp = check_username($_REQUEST['username']); if ($resp['ok']) { $message = …

Member Avatar for rony230
1
1K
Member Avatar for muralibobby2015

hello.... is javascript works in mailbody? i mean admin sends registration form through email to new users. for that registration form validation javascript is not working. any suggestions

Member Avatar for almostbob
0
414
Member Avatar for carlcarman

[QUOTE=carlcarman;1066173]Hi I am having a problem with getting my output to display a dollar sign. I have the program running the way it is supposed to, it just won't format for currency. I have tried a couple of different methods and do not understand why the current code does not …

Member Avatar for carlcarman
0
167
Member Avatar for anu.reka85

[QUOTE=anu.reka85;1067114]any good editor for PHP... i am a beginner plz help me..[/QUOTE] look at this link. see list of editors [URL="http://en.wikipedia.org/wiki/List_of_PHP_editors"]http://en.wikipedia.org/wiki/List_of_PHP_editors[/URL]

Member Avatar for diafol
0
162
Member Avatar for satyajittilekar

[QUOTE=satyajittilekar;1066983]hi, i am working on a project where i have to display an image gallery. All the images are stored in mysql and i have to display them and related info one by one using NEXT and PREV buttons. can anyone help me with this. thanx in advance.[/QUOTE] wonderful scripts …

Member Avatar for diafol
0
132
Member Avatar for muralibobby2015

hello...this is one way andeasy way to optimize database table. [CODE]dbConnect() $alltables = mysql_query("SHOW TABLES"); while ($table = mysql_fetch_assoc($alltables)) { foreach ($table as $db => $tablename) { mysql_query("OPTIMIZE TABLE '".$tablename."'") or die(mysql_error()); } }[/CODE]

Member Avatar for diafol
0
90
Member Avatar for anu.reka85

[QUOTE=anu.reka85;1067196]haiZ... i need good tutorial site for php .... some thing i searched not comprehensive...[/QUOTE] yes.....he said right. w3schools provides best tutorials.

Member Avatar for muralibobby2015
-3
86
Member Avatar for indoreankita

[QUOTE=indoreankita;1067171]My session destroys automatically after every 25 min if the page is idle. how can i prevent it and do session destroy only when browser is closed. Please help[/QUOTE] just remove timeout function and use status of user.

Member Avatar for venkat0904
-1
96
Member Avatar for Book38

[QUOTE=kireol;1062077]load the results from is sticky to an array, then output the array. [code=php] $sticky_array = array(); if (is_sticky()) { $sticky_array[] = $yourid; } [/code] You'll have to run your logic at the top of the page. then output the sticky and other stuff where you want it.[/QUOTE] just use …

Member Avatar for kireol
0
227
Member Avatar for muralibobby2015

can any body explain what is the use of csv files in php. i know it is used for export db as a xls files . in excel we can change the extension as .csv.

Member Avatar for almostbob
0
70
Member Avatar for futhonguy

[QUOTE] $sqlitem=mysql_query("SELECT * FROM device WHERE device_num LIKE '%$val_d%' or '%$val_d' ORDER BY device_id ORDER BY auto_id DESC limit $start,$q_limit");[/QUOTE] is it working? why bcoz there is [CODE]ORDER BY device_id ORDER BY auto_id DESC[/CODE]. how it is possible? [QUOTE]$user1=mysql_query("SELECT * FROM device"); $sqlitem=mysql_query("SELECT * FROM device WHERE device_num LIKE '%$val_d%' …

Member Avatar for futhonguy
0
422
Member Avatar for phpuser

[QUOTE=phpuser;1063654]Hello friends, I am doing one project in which i need to find currently online users.how can i ? is there any way ? another thing , if i fetch user login history in DB table and check from there if user currently login or not then there will be …

Member Avatar for MDGM
0
117
Member Avatar for morecrab

[QUOTE=morecrab;1063442]:) How do i send email with php Is there some computer configuration needed too for this purpose [U]Please reply.. urgent[/U][/QUOTE] no need to configuration. just google search for [CODE]"class.phpmailer.php" "class.smtp.php"; "constants.php"; [/CODE] just include these in your php code

Member Avatar for refrost
0
97
Member Avatar for proprasee

[QUOTE=proprasee;1063583]i have 10 buttons by default colour is red. for each click its colour changes to blue then red that was implemented. The problem is i ahave an array of 10 elements.initially value 0. when button changes to blue corresponding value changed to 1 for red -0 how can i …

Member Avatar for dasatti
0
210
Member Avatar for new_divine

[QUOTE=new_divine;1064607]how to resize and make the thumbnail view of the photos like in facebook or other sites without distorting the photos[/QUOTE] use this code.[CODE] /************Start of main image upload*******************/ if(is_uploaded_file($_FILES["productimage"]["tmp_name"])!='') { $rand_variable=rand(10000,100000); $image_name=$rand_variable.$_FILES["productimage"]["name"]; if(is_uploaded_file($_FILES["productimage"]["tmp_name"])) { move_uploaded_file($_FILES["productimage"]["tmp_name"], "productimages/" . $image_name); $Attachments=$image_name; } /************************************Resizing the image ****************/ $path3="productimages"; $filetype3=$_FILES["productimage"]["type"]; $bgim_file_name = $path3."/".$Attachments; …

Member Avatar for muralibobby2015
0
95
Member Avatar for mpierre

[QUOTE=mpierre;1064425]Thanks for the help where would i plugging in this in which script? $conn = mysql_connect("servername","username","password");[/QUOTE] if you are doing inyour localhost then write bellow [CODE] <? $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('databasename',$con); ?>[/CODE]

Member Avatar for venkat0904
0
93
Member Avatar for veledrom
Member Avatar for vishalonne

[QUOTE]header('Location: [url]http://localhost/pamanet/member.php');[/url][/QUOTE] put once like below. if member.php is in other folder. i don't know your correct file location .just i am expecting. if below is not work then put coorect path of file. [CODE]header('Location:pamanet/member.php');[/CODE]

Member Avatar for vishalonne
0
134
Member Avatar for vishalonne

write like this in logout page. [CODE] <? session_start(); $_SESSION['loginname']=' '; if($_SESSION['loginname']==' ') { header('location:index.php'); } [/CODE] and also write every page like below. [CODE]if($_SESSION['loginname']==' ') { header('location:index.php'); }[/CODE]

Member Avatar for vishalonne
0
7K
Member Avatar for jcanaway

[QUOTE=jcanaway;1062518]Hello Every on i have wrote some scripts for my website and i am getting Undefined variable Notices on a couple Variables like exampled below [CODE] $i = 0; foreach($value as $row) { $content .= "<option value=\"".$i."\" ".$selected.">".$row."</option>\n"; $i++; } [/CODE] now every time i view the page with the …

Member Avatar for ko ko
0
225
Member Avatar for newbie37

[QUOTE=newbie37;1061454]I am stuck. I have a beginning php class and have run into a wall. Any help will be appreciated. here is the from that is submitted for paycheck calculation: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> …

Member Avatar for FlashCreations
0
486
Member Avatar for sam1

[QUOTE=sam1;844578]hi, Is there a way to include a php file in .tpl file. basically i have a menu (javascript,html and css based) that i want to include in the .tpl file. thanks[/QUOTE] you could add the following to .htaccess - [CODE] AddType application/x-httpd-php .tpl [/CODE] As this will tell php …

Member Avatar for pritaeas
0
150
Member Avatar for mr_scooby

[QUOTE][code] <?php if(isset($_POST['name'])) echo $_POST['name'] ?> [/code][/QUOTE] you did not terminate any where after echo. first correct those things <?php if(isset($_POST['name'])) echo $_POST['name'];?>

Member Avatar for muralibobby2015
0
197
Member Avatar for Mahesh_J

[QUOTE=Mahesh_J;1062359]What is difference between $message And $$message? in PHP[/QUOTE] All variables in PHP start with a '$' sign symbol. [CODE]<? $variable="hai"; $var="variable"; echo $($var); ?>[/CODE] exactly it works like mathematical substitute functionality.

Member Avatar for muralibobby2015
0
173
Member Avatar for R3Slick

[CODE] <? $query = "SELECT employeeID FROM Employee WHERE employeeID = '$_POST[userid]'; $count= mysql_num_rows($query); if($count==1) { echo "id alreadyexists"; } else { //ur code } ?> [/CODE]

Member Avatar for venkat0904
0
159
Member Avatar for muralibobby2015

hello, i have store value in database like this in only one field. [CODE] one. two. three.[/CODE] but i am retriveing from database that is displaying like this [CODE] one.two.three. [/CODE] but i want same format.like in database [CODE] one. two. three.[/CODE]

Member Avatar for cwarn23
0
69

The End.