282 Posted Topics
Re: [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 … | |
Re: [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"] … | |
Re: 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 … | |
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 … | |
Re: [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? | |
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? | |
Re: [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. | |
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. | |
Re: [QUOTE=anu.reka85;1106886]what is PHP stands for...[/QUOTE] go and search in google. you will get every thing about php. | |
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 … | |
Re: [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] | |
Re: [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 … | |
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 … ![]() | |
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. | |
Re: [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 … | |
i am getting this error but i think there is no error. any one look at this [CODE]$affiliateForm = array( "username"=>array("User Name","text",""), "password"=>array("Password","password",""), "site"=>array("Your Web Site","text","http://"), "email"=>array("Your Email","text","[email protected]"), "akey"=>array("","hidden",""), "ptype"=>array("Payment Method","select","check|paypal"), "pemail"=>array("Paypal Email","text",""), "address"=>array("Your Address","textarea","") );[/CODE] i am getting [B]Parse error: parse error, unexpected '=', expecting ')' [/B] on this … | |
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. | |
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 … | |
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.............. | |
Re: [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. | |
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? | |
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.............. | |
Re: [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? | |
Re: [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. | |
Re: [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 = … | |
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 | |
Re: [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 … | |
Re: [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] ![]() | |
Re: [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 … ![]() | |
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] ![]() | |
Re: [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. | |
Re: [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. | |
Re: [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 … | |
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. | |
Re: [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%' … | |
Re: [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 … | |
Re: [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 | |
Re: [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 … | |
Re: [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; … | |
Re: [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] | |
Re: [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] | |
Re: 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] | |
Re: [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 … | |
Re: [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> … | |
Re: [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 … | |
Re: [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'];?> | |
Re: [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. | |
Re: [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] | |
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] |
The End.