39,323 Topics
| |
Hello all. I just installed wampserver2.0 and created a test php file to test it out (test.php). The only thing in the file is this: [code=php] <?php echo "Hello World"; ?> [/code] Here's the problem...when I navigate to [url]http://localhost/test.php[/url], the page displays a short line of what appears to be … | |
Hai,.. Can anyone help me in creating a cascading menu of below kind,.. | |
i'm trying to execute a program from my php. I want to execute it and pass it a variable, i've tried using exec($cmd, $op) but the array of $op doesn't have the output within it (or anything else). Should i be using a different function to get this working? any … | |
Dear all, I encountered the following error while trying to generate PDF file in my HTML code. It is same report while creating it in PHP. Warning: main(fpdf.php) [function.main]: failed to open stream: No such file or directory in c:\wamp\www\projectcode2\pdtest.php on line 3 Fatal error: main() [function.require]: Failed opening required … | |
Hi, I have created logout.php page which destroys all the session variables. Basically i want the the user to get directed to the Login page after logout button is pressed. But when the BACK button of the browser is pressed(even after logout), the user is still able to see other … | |
I'd like to know if it is possible to save or create an image made up of other images. The easiest way I can think of would be to have all the images as transparent pngs of the same height and width and then merge them together. Is it possible … | |
Hey everyone, Just seeking opinions as to whether or not you think it's wise to tackle learning more than one programming language simultaneously (eg..PHP and Action script 3.0). Ive noticed that languages have similarities which could lessen the learning curve for the ones you learn after the initial one. On … | |
heey guys i need some help with the PEAR package. i have some code which i would like to send emails through, however, i do not understand the documentation available on the web. Do i need to install it?. If i need to how? Or do i just put it … | |
This is part of the code to a login form. The only file is index.php. The code continues but it what you get after you have successfully logged in. It doesn't matter what I put the the login form, when I hit the "log in" button, if just reloads the … | |
Hello, I'm sarting a new project, a invitation to tender (Request For Proposal) website, but I have no idea about how to script it, is there any pre-made script for this knid of website or could you tell me how to script it, I mean the way it works. Thank … | |
I'm trying to display a certain amount of words on one page from a database entry. For ex., on my main page I want to display the first 50 words of a story then a link will lead you to the rest of the story. I kind of know what … | |
i got this script,in one of the very old artciles in sitepoint. everything is ok!except that PNG and BMP images are not resized. giving this errors [code=php] Warning: imagecreatefromwbmp() [function.imagecreatefromwbmp]: 'thumb/tb_128448486.bmp' is not a valid WBMP file in C:\wamp\www\wallsnap.php on line 97 Warning: imagewbmp(): supplied argument is not a valid … | |
Hello, I have my own website where I make programs and put them up on my web page, it has info on the programs ext.. I also allow other people to put up they just have to e-mail me with a specified template. But I want to make this easier … | |
Hi friends.. I am going to do the project in different languages...Anybody explain me how to do that...any procedure...any softwares...atleast how can i start the project... Thanks in advance..... Advance Happy Rakhi TO All | |
update.php [CODE] <?php session_start(); if (!isset($_SESSION['user'])) { die ("Access Denied"); } if ($_POST['submit']=='Update Information') { $name_box = $_REQUEST['name_box']; while (list ($key_check,$val_check) = @each ($name_box)) { $value_check .= $val_check.","; } $all_value_check = substr($value_check, 0, -1); } ?> <?php include 'dbc.php'; $user = $_SESSION['user']; $query = "SELECT * FROM student WHERE user_email … | |
i need to access the detailed search result page using curl, but for some reason i am not able to do so... Please help! The site is [url]www.justdial.com[/url] and i am searching for a* ... on the very first page there is a listing from banglore... i want to be … | |
hi hi... i'm working on this script for students to check their grades online. all they need to do is to login using their user id (which is auto generated) and matric. no. This will then display their details and grades. However, the tricky part for me is that they … | |
Hi. I have a kind of old script for polls that I heavily modified it during years. The main code still there. Today i realize that is using register_globals On (tested new changes in a local xampp installation). Is there any good information regarding register_globals On|Off around to share? I … | |
which is the best php editor for linux ubunto? i m using komodo right now but it is very slow. pls suggest something? | |
Hi All, Im busy working on a practice area for a CMS. I have it set so on a click, the edits are saved to mysql, but what im really after is a pop up window to show how it will look. ive tried java script, but the likes of … | |
I could not figure out how to pass data to next page. Here is my code. I hope someone who can help me with it. I am trying tp pass id=$_get['id']. Can someone look at the code and tell me what I do wrong. I am kind of new on … | |
Hi Folks, I want to maintain all the fields of the Form i.e when a form after posting return with some error then values in the other fields must be retained. Kindly tell me few good methods to do this. Thanks.:icon_wink: | |
update.php [code] <?php include 'recipe2db.php'; // get value of id that sent from address bar $id=$_GET['id']; // Retrieve data from database $sql="SELECT * FROM recipe WHERE id='$id'"; $result=mysql_query($sql); $rows=mysql_fetch_array ($result); ?> <form name="form1" method="post" action="update_ac.php"> <table border="1" cellspacing="0" cellpadding="3"> <thead> <th>name</th> <th>ingredient</th> <th>how to cook</th> <th>category</th> </thead> <tr> <td> <input … | |
Hi, In [B]search_results.php[/B] I have a variable named [B]$path[/B] which display something like: [I]C:/documents/personal/home.doc[/I] I would like to create a [B]button[/B] that link to a new window which is going to display: [I]C:/documents/personal/home.doc[/I] Right now is being displayed in search_results.php like this: [CODE=php] echo "<td align=left bgcolor=$bgcolor id='title'> <font face='Verdana' size='2'>$path</font></td>"; … | |
I can't figure out why this snippet of code isn't working :facewall: any ideas? [code] $productref = $order_detail[$i][2]; //#2 is the product ID $orderqty = $order_detail[$i][3]; //#3 is the SKU #[/code] The Array: [code] $order_detail array 0 array id_order_detail string = 1 product_id string = 7 product_qtantity string = 1 … | |
I have a table with entries for ItemID and Amount ... I am querying this table and displaying the contents from the previous date by itemID and amount. I have the array grouping the items by Item ID what would like to be able to do is to get a … | |
I'm working on a script that lists the number of additional records associated with a record id and returns the number as well as a link to each additional record. It works fine for the first record ... it tells me "4 additional records: and lists the links 1, 2, … | |
I have only been working with php and html for a few weeks now and i had a question about where is the proper place to put the <html> tag. Should I always put it as the second line(after the DOCTYPE) and then embed the php within it or can … | |
I can't get my sessions to work on my hosting account even though I had my site running perfect on my machine's xampp setup. The sessions just won't last at all. I dont know what the problem is. Is there a setting I have to change or something to make … | |
i am a real noob in php i have a php url say [url]http://xxxxxx.php?chat=[/url] if i give zzz at the end of the url like this [url]http://xxxxxx.php?chat=zzz[/url] the output is yyy i want a script to get the zzz from another script using $_REQUEST['msg'] and the final output of the … |
The End.