- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 24
- Posts with Upvotes
- 22
- Upvoting Members
- 13
- Downvotes Received
- 9
- Posts with Downvotes
- 7
- Downvoting Members
- 3
73 Posted Topics
Re: [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; … | |
Re: 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 … ![]() | |
Re: 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] | |
Re: 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 … ![]() | |
Re: [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, … | |
Re: 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: … | |
Re: 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] | |
Re: [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 … | |
Re: 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, … | |
Re: [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] … | |
Re: [QUOTE=anu.reka85;1067114]any good editor for PHP... i am a beginner plz help me..[/QUOTE] editor - notepad++ IDE - Aptana, komodo etc... ![]() | |
Re: [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? | |
Re: 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 … | |
Re: 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] | |
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.. … | |
Re: [QUOTE=phpuser;1063716]Yes , i found that. Anyways thanks for help ....[/QUOTE] Well then u should mark the thread as solved..:) | |
Re: 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] | |
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] 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 > … | |
Re: [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 … | |
Re: [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 … | |
Re: [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.. | |
Re: [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; … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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.. | |
Re: [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 … | |
Re: [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 … | |
Re: 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) … | |
Re: [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 … | |
Re: [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 … | |
Re: [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!! | |
Re: [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 … | |
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 … | |
Re: [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 !! | |
Re: [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']; ?>" … | |
Re: [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 … | |
Re: [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. | |
Re: 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 … | |
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 … | |
Re: [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..:) | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] … | |
Re: 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"); … |
The End.