Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
78% Quality Score
Upvotes Received
24
Posts with Upvotes
22
Upvoting Members
13
Downvotes Received
9
Posts with Downvotes
7
Downvoting Members
3
1 Commented Post
~69.4K People Reached
Favorite Forums
Favorite Tags

73 Posted Topics

Member Avatar for monst3rworld

[QUOTE=monst3rworld;1058095]Hi Everyone, How are you all? Friends i m new on daniweb, and i just want to know that how can i make diamond with stars (*) using "For" Loop in PHP. My Teacher Gives me an assignment to make like this... [code] for ($a=1; $a<=5; $a++) { for($b=1; $b<=5; …

Member Avatar for Krishna_23
0
2K
Member Avatar for sam1

its the same as u would do for input text... just access the data from ur post variable as $_POST["yourSelectName"] and u can very well add it to ur record as u do for text. the post variable will contain the value of option which user selected... [QUOTE=takeshi;1043782]is there any …

Member Avatar for diafol
0
3K
Member Avatar for Ouwgel

aaahh so simple... wy didnt i think of it.. bt then wat if user has disabled javascript on his browser... [QUOTE=network18;1046098][CODE]<iframe id="myFrame" style="display:none" width="500" height="300"></iframe> <input type="button" value="Open PDF" onclick = "openPdf()"/> <script type="text/javascript"> function openPdf() { var omyFrame = document.getElementById("myFrame"); omyFrame.style.display="block"; omyFrame.src = "test.pdf"; } </script>[/CODE][/QUOTE]

Member Avatar for almostbob
0
8K
Member Avatar for sandipan.rcciit

Thats simply because of this line.. [CODE]if(isset($_POST['submit'])){[/CODE] when u use an image for input, it doesnt post values as "name"="value" as it does in case of buttons.. instead it will post name_x=... and name_y=... where the values are the x & y coordinates of the point where user clicks the …

Member Avatar for diafol
0
995
Member Avatar for Folaju

[QUOTE=Folaju;1056976]I have a silly issue, I am creating a CMS at the moment. it has pages and menus . I created a page to add new pages. on that page i have a drop down list that is populated with data from the menu. I also have an edit page, …

Member Avatar for sachin.padole1
0
10K
Member Avatar for janzaldo

your query doesnt seems right to me... try this [CODE] $query = "SELECT * FROM administrator WHERE".$_POST[searchby]."like '%".$_POST[query]."%'"; $result = mysql_query($query); [/CODE] always try to create n store ur query in a separate variable.. helps in debugging. Hope this helps... cheers!! [QUOTE=srinivasjinde;1039422]please help me...even i m getting this error: Warning: …

Member Avatar for sudhir1234
0
2K
Member Avatar for cheesywan

try this [CODE]header("Cache-Control: no-cache");[/CODE] everytime the page is requested, a fresh copy is loaded. Is this what u r lookin for? [QUOTE=Rajivgandhi;1052034]I dont like every time the page refresh. I want the page will be reloaded only once. can u help me to do that?[/QUOTE]

Member Avatar for uzor64
-4
18K
Member Avatar for lifeworks

[QUOTE=lifeworks;1056904]hi Ive been posed this problem. A friend does maintenance on a companies network, and would like to do it remotely. Currently, their IP changes every 24hrs and so he has to phone them to find their IP so that he can log in... He asked me to write him …

Member Avatar for monica singh
0
187
Member Avatar for wonderland

why dont you let us have a peek on ur code... That will help us understand the problem better.. How am i supposed to tell you what should be modified unless i know wat is present ther originally.. :) [QUOTE=wonderland;1038163]Hi, Hello, Few hours back I implemented [URL="http://developerkarma.com/projects/phpformmail/readme-all-one-version"]phpFormMail[/URL] with simple form, …

Member Avatar for wonderland
0
252
Member Avatar for edwingudfriend

[QUOTE=edwingudfriend;1073595]Thank for your reply but I tried but it did not work[/QUOTE] This might be because first time u load the page, ur $_GET parameter is empty and u didn't check it before running the query... do something like [CODE]if (isset($_GET['q'])) { // run the search query here } [/CODE] …

Member Avatar for rajabhaskar525
0
264
Member Avatar for anu.reka85

[QUOTE=anu.reka85;1067114]any good editor for PHP... i am a beginner plz help me..[/QUOTE] editor - notepad++ IDE - Aptana, komodo etc...

Member Avatar for diafol
0
162
Member Avatar for indoreankita

[QUOTE=network18;1067179]you can set the expiration time limit for your session data[/QUOTE] yeah that can be done... but i doubt if we can prevent expiring of sessions after closing the browser... Though same can be achieved through cookies but i dunno if this is possible with sessions... any ideas?

Member Avatar for venkat0904
-1
96
Member Avatar for loveisblind

Its pretty simple... place your select box inside a form and submit the form to status.php when status is clicked.. In status.php u can retrieve the selected value from [CODE]$selected = $_REQUEST['title'];[/CODE] Hope this helps.. Cheers!! [QUOTE=loveisblind;1063389]Hi everybody. Thus far. I have successfully created a drop down menu. What I …

Member Avatar for venkat0904
0
148
Member Avatar for manishmannan

already discussed... have a look [url]http://www.daniweb.com/forums/thread56624.html[/url] [QUOTE=manishmannan;1044814]Hello Every one is there any body who could help me on how to open a doc file and how to read its content thanks in advance[/QUOTE]

Member Avatar for manishmannan
0
172
Member Avatar for venkat0904

Hi all, I am thinking of a login system which can retrieve user credentials from: i) DB ii) LDAP iii) XML essentially a configurable one.. Like when u choose to get credentials from DB, u can specify the table name and columns to get the value from... similarly for others.. …

Member Avatar for venkat0904
0
76
Member Avatar for phpuser

[QUOTE=phpuser;1063716]Yes , i found that. Anyways thanks for help ....[/QUOTE] Well then u should mark the thread as solved..:)

Member Avatar for MDGM
0
116
Member Avatar for morecrab

no phpmailer is an independent class which uses the default mail configured on your system... u dont need to change anything in php.ini unless u have changed some mail options earlier.. Cheers!! [QUOTE=morecrab;1063458]is it right that we have to registered these class in php.ini before we used it -:newbie:-[/QUOTE]

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] Here is a function that i use which works like a charm for me... [CODE]function img_resize($name,$filename,$new_w,$new_h) { $system=explode(".",$name); if (preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);} if (preg_match("/png/",$system[1])){$src_img=imagecreatefrompng($name);} if (preg_match("/gif/",$system[1])){$src_img=imagecreatefromgif($name);} $old_x=imageSX($src_img); $old_y=imageSY($src_img); if ($old_x > …

Member Avatar for muralibobby2015
0
95
Member Avatar for jeet_portal

[QUOTE=Atli;1064202]Neither of those actually change anything, samarudge. Your first example is exactly like the one the jeet_portal posted in the first post. Using [icode]print[/icode] instead of [icode]echo[/icode] makes absolutely no difference in this context. Because you do [icode]$a=08;[/icode], the value of [icode]$a[/icode] will always be 0. You start of with …

Member Avatar for jeet_portal
1
108
Member Avatar for mpierre

[QUOTE=mpierre;1064405]Hello Every one, im in a need for some help i have the following issue : ---[B] Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\Hosting\00000\html\index.php on line 10[/B] this is what the code looks like Can some one please assist me on what is wrong …

Member Avatar for venkat0904
0
92
Member Avatar for arushibafna

[QUOTE=arushibafna;1064301]thank you all, my problem has been solved..[/QUOTE] Then mark the thread as solved so we dont waste time reading all the replies and finally come to know that its already been solved..

Member Avatar for venkat0904
0
181
Member Avatar for veledrom

[QUOTE=veledrom;1063822]Hi, Is there any chance of resizing gif, tif, bmp, jpg, png I know that we can jpg files. Thanks[/QUOTE] try this function... [CODE]function img_resize($name,$filename,$new_w,$new_h) { $system=explode(".",$name); if (preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);} if (preg_match("/png/",$system[1])){$src_img=imagecreatefrompng($name);} if (preg_match("/gif/",$system[1])){$src_img=imagecreatefromgif($name);} $old_x=imageSX($src_img); $old_y=imageSY($src_img); if ($old_x > $old_y) { $thumb_w=$new_w; $thumb_h=$old_y*($new_h/$old_x); } if ($old_x < $old_y) { $thumb_w=$old_x*($new_w/$old_y); $thumb_h=$new_h; …

Member Avatar for venkat0904
0
92
Member Avatar for futhonguy

[QUOTE=futhonguy;1057701]Hi, I had developed a viewing table from mysql database using php and it is showing me the whole list of contents in a single webpage. I would like to know if there anyway i can actually split the contents into multiple pages for easy viewing?? Your help is greatly …

Member Avatar for futhonguy
0
2K
Member Avatar for lifeworks

[QUOTE=lifeworks;1063753]hi airshow thanks again for the help, unfortunately ive done everything in InType, which is a plain text editor, the problem comes in in my 'tab' system - i have three tabs, each tab click starts an httpRequest which pulls some content out of a DB, then populates the content …

Member Avatar for Airshow
0
97
Member Avatar for K0ns3rv

[QUOTE=K0ns3rv;1063695]Hello daniweb. I am currently involved in a project were we need to be able to generate confirmation mails, our original thought was to code an html mail, but we quickly deserted that idea. Therefor I need a powerful yet simple PDF class for PHP. I have no greater interest …

Member Avatar for venkat0904
0
91
Member Avatar for vishalonne

[QUOTE=vishalonne;1063443]hi every body I have written a code for deletion of records from database. my navigation path is like this 1. [COLOR="Green"]member.php [/COLOR](for selecting the delete option from menu) 2. [COLOR="green"]deleteadministrator.php [/COLOR]( for entering id of customer and search for the record if reord found then to click on delete …

Member Avatar for vishalonne
0
133
Member Avatar for vishalonne

[QUOTE=vishalonne;1058968]Dear Php Experts I created few php file : [COLOR="Green"]Login Page - loginform.php[/COLOR] this page takes user id and password and fetch department from database then it post them to : [COLOR="green"]Checking File - userchek.php [/COLOR] where session is created if id password and every think goes fine other wise …

Member Avatar for vishalonne
0
7K
Member Avatar for BzzBee

[QUOTE=BzzBee;1063515]I have a contact information form where users come and fill their info. There are different fields on form like name, email, phone no. ect. i don't want to let user to enter that detail again and again. i want to set cookies so when he/she will open that form …

Member Avatar for venkat0904
0
634
Member Avatar for aruti

[QUOTE=aruti;1060709]Hey, Thanks a lot. I got the solution.....[/QUOTE] If u got the solution i suggest u to mark the thread as solved and also share ur findings with others that may need help with same issue..

Member Avatar for chrishea
0
77
Member Avatar for sam023

[QUOTE=sam023;1058123]i want to encrpt query parameters in Url... So that end user unable to understand it..!!! [url]www.test.com/page.php?uid=1234&tid=234[/url] can we encrypt or hide value through .htaccess..???[/QUOTE] If u dont want user to see or understand the data you are sending from a form, may i suggest you using POST method instead …

Member Avatar for venkat0904
0
163
Member Avatar for R3Slick

[QUOTE=R3Slick;1059706]Ok so I have been working on this all day but cant get it. I want to add an Employee ID to an Employee Table....I got this much...But first I need to check if that ID exists already. How can I do this, here is my code: [CODE]<?php session_start(); require_once …

Member Avatar for venkat0904
0
159
Member Avatar for kiranhg.2008

a simple solution to this can be to use a counter for ur loop and check to introduce a new <tr> when its in multiples of 3(or 2 watever the num of columns u r lookin for). something like this... [CODE]<?php $counter =0; while ($prows = mysql_fetch_array($rs_pending)) { if (($counter%3) …

Member Avatar for kiranhg.2008
-2
73
Member Avatar for vishalonne

[QUOTE=vishalonne;1058955]Hi Every body Once again I'm in problem and want some help from you all I have written a small code to search a particular value in MySql database and then to display the record based on that value - Like to search a Employee code in database and then …

Member Avatar for venkat0904
0
152
Member Avatar for loveisblind

[QUOTE=loveisblind;1057867]hello. I have a drop down menu that pulls from a mysql database. I know its connecting fine and there is actual items in the drop down menu because I echoed them. However when I look at my drop down box, you cannot see the options! I know the items …

Member Avatar for venkat0904
0
153
Member Avatar for muralibobby2015

[QUOTE=muralikalpana;1055804]how to retrive values from database[/QUOTE] assuming u have a field dob (with datatype as date) in user table this query can help u... [CODE]$current_month = date(m); $current_day = date(d); $result = mysql_query("SELECT name FROM user WHERE month(dob) = $current_month AND day(dob) >= $current_day ")[/CODE] Hope its clear.. cheers!!

Member Avatar for venkat0904
-1
88
Member Avatar for levsha

[QUOTE=levsha;1054092]I've tried something else, but it didn't work. I have an identity (auto-increment) field 'inventorid' in my table. When data from the first form is submitted, the row is inserted into the table and a new inventorid value is generated. I put this into my PHP on the submittion of …

Member Avatar for levsha
0
124
Member Avatar for venkat0904

Hi all, 1) Users can belong to a specific group wherein when the group moderator publishes an event, its visible to all the members of group. 2) A normal user can publish event in his own calendar, to make that event visible to all users in group, the group moderator …

Member Avatar for Gilette
0
858
Member Avatar for sam023

[QUOTE=network18;1053270]use - [CODE] $very_high_time = 12000; ini_set('max_execution_time',$very_high_time); [/CODE][/QUOTE] nice info... will need that sometime very soon with my current proj but is it advisable to use it?? i mean there r no side effects i guess !!

Member Avatar for network18
0
84
Member Avatar for VAMPResearch

[QUOTE=VAMPResearch;1053551]ok here is what i have now [CODE] <form name='input' action='".$_SERVER['PHP_SELF']."' method='POST'> <div class='sign'> <button type='button' >Signed the Don</button> </div> </form> [/CODE] i click the button and nothing happens, any ideas?[/QUOTE] if you are using this outside php tags it should go like this [CODE]<form name='input' action="<?php echo $_SERVER['PHP_SELF']; ?>" …

Member Avatar for venkat0904
0
137
Member Avatar for shishtawitch

[QUOTE=shishtawitch;1053324]how can i get only value of 'v' from the following url [url]http://www.youtube.com/watch?v=NMAYr709-9Y&feature=dir[/url] i.e NMAYr709-9Y with php[/QUOTE] are u talking about GET parameters? If so, u can retrieve it from php as [CODE]$variable = $_GET['v'];[/CODE] if u are trying to extract this from a random url, u will have to …

Member Avatar for cwarn23
0
99
Member Avatar for rajabhaskar525

[QUOTE=rajabhaskar525;1052106]hai all, i want to refresh particular part of the page ,not whole page. is it possible? . if so, how is it? .........[/QUOTE] fairly simple task with ajax and javascript... google for its tutorials.

Member Avatar for rajabhaskar525
0
3K
Member Avatar for muralibobby2015

you are looking for a radio button not a check box. Only one radio button gets selected from a defined group. Just define each radio button in a specific group under the same "name" attribute. eg: option1 name="group1" option2 name="group1" option 3 name="group2" above example lets you choose only 1 …

Member Avatar for mangel.murti
-1
164
Member Avatar for venkat0904

Hi all, Since its been a while now that i am learning php I undertook a project to develop event calendar in php and mysql. There will be a public calendar published on site which every1 can view. Then as a user logs in he will have his own personal …

Member Avatar for venkat0904
0
268
Member Avatar for ShaunPasko

[QUOTE=ShaunPasko;1052308]What's up everyone, my name is Shaun. I'm new to the forum and just wanted to say hey. I hope I posted this in the right section![/QUOTE] I m afraid u didn't... Introduction part must go [URL="http://www.daniweb.com/forums/forum165.html"]here.[/URL]. anyways.. welcome to the community..:)

Member Avatar for surindersharma
0
176
Member Avatar for xuexue

[QUOTE=xuexue;1052082]just like in friendster, simultaneous user log in with their own accounts, but they access only one page, is it possible to do that with my page too??[/QUOTE] When a user logs in, store his unique identification such as a user id in session variable.. and while displaying the homepage …

Member Avatar for xuexue
0
105
Member Avatar for ruwanaru

u must be using header() function after ur output has started... mind it header() cant be used once you started sending some output to ur browser.. not even a single blank space... Post up the code if u need more clarification on this [QUOTE=ruwanaru;1052039]This is the error [CODE]Warning: Cannot modify …

Member Avatar for venkat0904
0
116
Member Avatar for muralibobby2015

yeah its pretty much possible... retrieve the name of image file being used by that account. after that its just a simple unlink call... Do this in admin's account deletion script if u need more help... just post up ur deletion code here [QUOTE=muralikalpana;1050122]hello, is it possible to delete waste …

Member Avatar for leviathan185
0
108
Member Avatar for veledrom

it shouldn't bother u... u can use either id or the field name to serialize ur data... thats the way mysql_fetch_array works... [QUOTE=veledrom;1050118]Hi, Code below returns this. [code] Array ( [0] => 3 [id] => 3 [1] => John [name] => John [2] => Goog [surname] => Goog ) [/code] …

Member Avatar for network18
0
95
Member Avatar for iraberyl

Hey cwarn... m new to php but AFAIK header location is used to redirect isnt it? if u paste this code on top of every page, all of them will get redirected to index.php before even getting processed... Correct me if i m wrong. m just curious [QUOTE=cwarn23;1049833][CODE=php]<?php header("Location: http://yoursite.com/index.php"); …

Member Avatar for iraberyl
0
152

The End.