282 Posted Topics

Member Avatar for muralibobby2015

hello.. i am uploading excelsheet into database using php. but when i am uploading then characters are displaying ascii type.

Member Avatar for cwarn23
0
96
Member Avatar for Ruko

[QUOTE=Ruko;1192346]The problem is that the script is not picking up a certain from that ID. When I go to "domain.com/ViewGame?gid=34283", it doesn't pick up the gaming info from that ID in the mySQL. Help anyone? [code]<?php require('mysql.php'); mysql_select_db("ruko_fp", $con); // Define the variables $gid = $_GET['gid']; $gametitle = $_GET['gametitle']; $gamedescription …

Member Avatar for Will Gresham
0
335
Member Avatar for star_lavender

[QUOTE=star_lavender;1149416]Thanks for the reply and it really works for me coz now I can select more than one radio button...but now how can I save all the data into the database?I declared the variable as $rating, $amount and $remark but it doesnt work as what I expected coz the data …

Member Avatar for star_lavender
0
3K
Member Avatar for muralibobby2015

hello... i have 6 tables in database. now i am deleting product in product table. then how to delete all rows which is in another tables on this product id in single step.

Member Avatar for johny_d
0
94
Member Avatar for tristan17

just copy pste this coe. and first you create folder name as photo..[CODE]<?php ob_start(); extract($_POST); //echo $photo;exit; if($_POST) { $img_name=$_FILES["photo"]["name"]; //photo input field $randomizer = rand(0000, 9999); $file_name = $randomizer.$img_name; move_uploaded_file($_FILES["photo"]["tmp_name"], "photo/" . $file_name); //create photo folder $path1="photo"; $source_file = $path1."/".$file_name; $im = ImageCreateFromJpeg($source_file); $imgw = imagesx($im); $imgh = imagesy($im); …

Member Avatar for almostbob
0
414
Member Avatar for muralibobby2015

daniweb site does not open on my p.c. but all sites are opening. i tryed to know where is the problem....but i can't. plz tell me how to open this site. where is the problem on my p.c. thnks.

Member Avatar for caperjack
0
70
Member Avatar for muralibobby2015

HAI FRNDS..... daniweb site does not open on my p.c. but all sites are opening. i tryed to know where is the problem....but i can't. plz tell me how to open this site. where is the problem on my p.c. thnks.

Member Avatar for muralibobby2015
0
89
Member Avatar for muralibobby2015

hello, i am doing check all checkboxes in a single click. i have multiple groups is there in one page. but first block is working. from second block onwords it is not working. plz help me. here is my code [CODE] <script type="text/javascript"> function checkstate(chkname,k) { //alert(chkname); //var chk="chkall"+k; //alert(document.getElementById("chkall"+k+"[]").checked) …

Member Avatar for muralibobby2015
0
90
Member Avatar for mcastu
Member Avatar for rpgwebsolutions

[CODE]variable = (condition) ? value-if-true : value-if-false; ex: $greeting = (date("G") < 12) ? 'Good morning' : 'Good afternoon'; echo $greeting;[/CODE]

Member Avatar for muralibobby2015
-1
82
Member Avatar for FC Jamison

[QUOTE=ZootAllures;1153285]Rather than delete both and then reinsert, just add LIMIT 1 to the end of the delete, and it'll only delete one of them.[/QUOTE] yes.....as you said select data using limit 1,and then dalete. it's simple

Member Avatar for ZootAllures
0
130
Member Avatar for cane23

how to select rows with array? first you implode that array $diff. after you select row with each variable which is in array. then count.

Member Avatar for jstrain@gpc.edu
0
97
Member Avatar for muralibobby2015

hello.... i am doing search concept. i am searching one word from all my web pages . actually i have only one table for 25 static pages. among this pages i want to search searching content. and also highlight the search content. how to do?

Member Avatar for ShawnCplus
0
123
Member Avatar for selvasoft

put this in your bdy. and make changes according to your database tables [CODE]<form name="form2" method="post" action="" > <table align="center" border="0" bordercolor="#000033" width="90%" height="100%" > <tr> <? $select1=mysql_query("select * from product order by auto_id desc "); $i=0; while($fetch=mysql_fetch_array($select1)) { if( $i<4) { ?> <td><table width="161" border="0" cellspacing="0" cellpadding="0"> <tr> <td …

Member Avatar for muralibobby2015
0
102
Member Avatar for pbcomput
Member Avatar for ryan311

[QUOTE=ryan311;1150797]so ill create many checkbox?[/QUOTE] no need to create you have to use for loop for this.

Member Avatar for ryan311
0
841
Member Avatar for cass84

[CODE]<? ob_start(); extract($_REQUEST); include("includes/class.phpmailer.php"); include("includes/class.smtp.php"); if($_POST) { //echo $attach;exit; ///////////////////////////////////////////////////////////////////////////////////////////// /////// send email ///////// /////////////////////////////////////////////////////////////////////////////////////////// $img_name=$_FILES["attach"]["name"]; $file_name = $img_name; move_uploaded_file($_FILES["attach"]["tmp_name"], "attachments/" . $file_name); $sitename="sitename"; //this subject will be visible only for you $sub = "subject here"; $msg = "<table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td height='8'></td> </tr> <tr> <td height='8'></td> …

Member Avatar for muralibobby2015
0
344
Member Avatar for pedroteixeira07

haaaa.......you printed only first array. if you want to display all the rows which is in database then use while loop as banu said above.

Member Avatar for conord
0
94
Member Avatar for muralibobby2015

here is my code. this is working fine but small prblm is here.fading text is working only one time. it is not working multiple times. can anybody check what is the prblm is der? rotation not working.just copy paste this codeand see what is the prblm is there.first time loop …

Member Avatar for pushpakalpana
0
121
Member Avatar for lisles

try like this [CODE]<script> function del_Users(id,name){ if(confirm("Are you sure want to delete this ?")){ document.location.href = 'xxx.php?act=del&id='+id+'&name='+name; } } </script> <body> <a href="javascript:del_Users(id,name)" class="tahoma11boldlink">delete</a> </body> </html>[/CODE] then you retrive values from url get that values and write delete query.

Member Avatar for muralibobby2015
0
6K
Member Avatar for prem2

[QUOTE=prem2;1149310]Hi, I need to insert a new value in middle of array. For ex, $arrayvariable=arrray("a","b","d"); I need to insert C in between b and d. Thank you in advance.[/QUOTE] use array_splice for that. below is the code. try it. [CODE]<? $arrayvariable=array("a","b","d"); array_splice($arrayvariable, 2, 0, "c"); print_r ($arrayvariable); ?>[/CODE]

Member Avatar for prem2
1
177
Member Avatar for srya

[QUOTE=srya;1149299]hi friends, i have a simple login form .. but i dont know how to create the code for secure login form (i.e) if logged users only can access the specified functions like bid a project or post some ads like that Thanks, srya.[/QUOTE] post your code. with out code …

Member Avatar for Banderson
0
74
Member Avatar for lisles

[QUOTE=lisles;1149276]solved it.jus had to replace ereg with prg_match[/QUOTE] then mark as solved. it could be help ful to others may be you have it in the future. ha....just send the solved code and mark as solved

Member Avatar for muralibobby2015
0
91
Member Avatar for ramarose

[CODE]<form name="frm" action="action.php"> <tr><td><input type="check box" name="box" value="1" ></td></tr> <tr><td><input type="submit" name="submit" value="submit"></td></tr> </form>[/CODE] in action.php [CODE] <? echo $_REQUEST[box]; ?> [/CODE]

Member Avatar for muralibobby2015
0
73
Member Avatar for dan4domination
Member Avatar for YingKang

[CODE]<html> <head> <title>guestbook</title> <style type="text/css"> .error {color: #FF0000;} </style> </head> <body> <?php extract($_REQUEST); $errors = array(); if(isset($_REQUEST['submit'])) { validate_input(); if(count($errors) != 0) { printForm(); } else { saveGuestbook($name, $email, $Comments); showGuestbook(); } } else if($view) { showGuestbook(); } else { printForm(); } function validate_input() { global $errors; if($_POST["name"] == "") …

Member Avatar for YingKang
0
490
Member Avatar for muralibobby2015

hai... i want to dispaly table like this. actually i am fetching data from database. i am displaying data in tables. but i want to display like column wise after row wise. [CODE] A F K B G L C H M D I N E J [/CODE] like this. …

Member Avatar for urtrivedi
0
112
Member Avatar for Pooja J.

[QUOTE=Pooja J.;1147093] //insert.php <?php $con=mysql_connect("localhost","root",""); $db=mysql_select_db('state'); $name=$_POST['name']; //$city=$_POST['city']; $abc=$_POST['city']; for ($i=0; $i<count($abc); $i++) { $city = $city." ".$abc[$i]; } $submit=$_POST['submit']; if(!empty($submit)) { $query=mysql_query("insert into city(name,city) values('$name','$city')"); } ?> Above code is working. But the problem is that, I want listbox on another page, this listbox should display the name of …

Member Avatar for urtrivedi
0
111
Member Avatar for muralibobby2015

hello... i want to move specific location with in a page. for that i used like this [CODE]<a href="knowledge.php#news">HHH</a>[/CODE] then it points the news table. now i have query string is there. how to give like above. now i want to point a div which is in comment.php. where can …

Member Avatar for pushpakalpana
0
108
Member Avatar for kalyan469
Member Avatar for InsightsDigital

[QUOTE=Guru SEO;1127815]Hello All I also looked it when i was going to login my gmail account.but same as yahoo buzz.just look on it. Thanks[/QUOTE] hey... every one got this buzz......Google also did not say if the recent launch of Google Buzz, which added social networking capabilities to Gmail. any how …

Member Avatar for InsightsDigital
0
138
Member Avatar for muralibobby2015

[CODE]Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\wamp\www\murali\includes\class.smtp.php on line 83[/CODE] i am getting this error. when i am …

Member Avatar for muralibobby2015
0
69
Member Avatar for cloud09

[CODE]<textarea rows="2" class="field2 c" id="gdescription" onfocus="if (this.className == 'field2 c') {this.value = '';this.className='';}" onblur="if (this.className == '') {this.value = 'Description';this.className = 'field2 c';}" >Description</textarea>[/CODE]

Member Avatar for muralibobby2015
0
188
Member Avatar for muralibobby2015

hello..... i am fetching text from database. i want to restrict 400 characters from that after "readmore". it redirects to total page. i was used substring but i want to total validate what means after 400 characters there is '.' is there then not appear '.........'like this. otherwise appear after …

Member Avatar for pushpakalpana
0
139
Member Avatar for tryphy

problem is on expirtion date which you are entering value in text field. give 0000-00-00 this format. [CODE]# <p>Expiry Date <input type="text" name="scredit_card_expiration_date"> </p>[/CODE]

Member Avatar for FlashCreations
0
240
Member Avatar for motters

[QUOTE=motters;1136531]hi all i want to do is hide links when the user is not login in. i thought i could do it this way but it gave me a error [CODE] <?php if $_SESSION['MM_Username'] isset { echo 'members area'; } else { echo ' '; } ?> [/CODE] but i …

Member Avatar for motters
0
942
Member Avatar for muralibobby2015

i am adding products. in that i have multiple select categorys option is there. i am selecting multiple categories and imploading that and storing categorys in database product table using categorys ids. now i am fetching with single catagory id. how to call (in_array) for that query? [CODE]"select * from …

Member Avatar for diafol
0
104
Member Avatar for WickidGRAFX

[QUOTE=WickidGRAFX;1133117]Fixed that error and got a new one lol. I changed: [CODE]if(isset($_GET['title')) echo return_description($_GET['title']);[/CODE] to: [CODE]if(isset($_GET['title']) echo return_description($_GET['title']);[/CODE] And now I ge this error for the same line:[/QUOTE] put this. you missed ')'. [CODE]if(isset($_GET['title'])) { echo return_description($_GET['title']); } [/CODE]

Member Avatar for WickidGRAFX
0
7K
Member Avatar for muralibobby2015

hello.... i am doing one task. in that there is a number of products. each product have number of pdf files. i am adding these files from admin side and inserting in database. so how can i download particular product files(ex..10 files) in single press at frontside. thnx.

Member Avatar for saiprem
0
129
Member Avatar for tyrium

[QUOTE=tyrium;1132457]Hi, What i want is to have a checkbox area where the items i select are stored in a array. Im guessing there should be a some code to find out what has been checked. Any help with this would be greatly appreciated. [CODE]echo '<form action="myown3.php" method="post" name="domaintest" action="_self">'; echo …

Member Avatar for tyrium
0
157
Member Avatar for ryan311

hey set code as a primary key and set auto-increment. there is no need to insert from here. just left that column when you write the query insert.

Member Avatar for muralibobby2015
0
2K
Member Avatar for ayesha789

download jscripts from these. [URL="http://www.huddletogether.com/projects/lightbox2/"]http://www.huddletogether.com/projects/lightbox2/[/URL] add below jscripts and css. [CODE]<script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> [/CODE] Add a rel="lightbox" attribute to any link tag to activate the lightbox. For example: [CODE]<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>[/CODE]

Member Avatar for muralibobby2015
0
218
Member Avatar for virtualmisc

[QUOTE=virtualmisc;1131737]Hi friends I have a site made in PHP Can someone please help with Email address validation? Thanks[/QUOTE] [CODE]<!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=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i function checkmail(e){ var returnval=emailfilter.test(e.value) if (returnval==false){ alert("Please enter a valid …

Member Avatar for muralibobby2015
0
184
Member Avatar for muralibobby2015

hai.... there is thousands of products is there. now we want to see as a directory wise means (A-Z wise) devide. how to do this. [CODE][B][U]A[/U][/B] [URL="http://apple.com"]Apple[/URL] [URL="http://ant.com"]Ant[/URL] [URL="http://aeroplane.com"]Aeroplane[/URL] [B][U]B[/U][/B] [URL="http://bat.com"]Bat[/URL] [URL="http://ball.com"]Ball[/URL] [URL="http://book.com"]Book[/URL][/CODE] like this......up to z. how to do this? adv thnks.

Member Avatar for muralibobby2015
0
115
Member Avatar for mastia22

there is number of option to get it that values. here is one of that. first write extract() after ob_start(); in phpcode [CODE] <? ob_start(); extract($_REQUEST); echo $id; echo $posid; ?> [/CODE] see now. you can use directly as $id,$postid where you want to use.

Member Avatar for mastia22
0
159
Member Avatar for manoj30dec

[QUOTE=saiprem;1126607]why can't you try it like this.... [code=php] if(($_POST['adminuser']=="") || ($_POST['adminpass']=="")){ echo "Please enter Username and Password"; } [/code][/QUOTE] hey....harsha is right. here we can use "and" operation. . but your condition is not work here. for example i am entering adminuser field and not entering password now i am …

Member Avatar for harshbavaliya
0
117
Member Avatar for muralibobby2015

hello.... i want to do search box. it is exactly like google custom search. i am not talking about functionality. i am talking about look and feel. you see google search box. in that google image will appear. when we mouse in that text box that image will disapear. how …

Member Avatar for saiprem
0
123
Member Avatar for whiteyoh

[QUOTE=whiteyoh;1127786]Hi, Thanks for the response. Please could you advise as to where i put it. Cant seem to see it. My guess is line 81? Thanks Paul[/QUOTE] put it at the top of the page.

Member Avatar for whiteyoh
0
120
Member Avatar for drewpark88

[QUOTE=drewpark88;1122218]Ok so here's what I'm trying to do: 1. You press submit on my php donation form page, and when you press submit it goes to a process.php but within the IF statement I have it to where it sends my client an HTML email. 2. What I want my …

Member Avatar for saiprem
0
167
Member Avatar for ursrathika

[QUOTE=ursrathika;1126280]Hai Experts i am working in php platform.i have a problem in paging in image catalog..my process is insert three or more images in image folder..and i have retrieved images in same folder to display table or Div in php.images are successfully displayed but i have a problem in paging....what …

Member Avatar for realnsleo
0
107

The End.