39,402 Topics
![]() | |
Hello all I have a page in php that INSERTs data in a database via a query. My problem is that when you refresh the page the data is INSERTed again. How can I stop this. Thanks in advance | |
Im having problems with this script. Right now it adds everthing to the database if I take this out [php] <p><b>Genre:</b> <p><input type="radio" name="genre" value="existing" /> Existing => <select name="existing"> <option>Select One</option> <?php // Retrieve all the artists and add to the pull-down menu. $query = "SELECT genre_id, (genre_name) AS … | |
I have some code which echo's a paragraph from a database, but is there anyway to make the paragraph have a title by calling the same Field? I've had a look for formating text which is being echoed, but I'm not sure how to go about having a title one … | |
i want to transfer one variable value from my php page to aspx page... what is the procedure.... plezz help me...my project is getting delayed becozz of this . | |
Hi Guys, I am using PHP to zip some files and off them as a download. I am first zipping the files then using a redirect to the location of the zip folder to download. So basically I have in my code: function to zip files redirect What I want … | |
I am just starting to play with PHP (and this is my first post). I need to send out an invitation via email to some of our clients. This email will contain a hyperlink along with a unique reference ID for each client, something like this: [url]www.oursite.com/invitation.php?ID=ABC123[/url] I need to … | |
I have a string contains sequences of 0 and 1. I need to replace all zero sequences whose length less than 5, into number 1 with same length. The zero sequences with length 5 or more should be left as is. For example source : 11000001100010011000001 result : 11000001111111111000001 [CODE] … | |
I am getting this error in my script. The error is in the bolded line of the script. Can anyone help? [CODE]<?php if($_REQUEST['app_id']) { $app_id=$_REQUEST['app_id']; } else { $app_id=$_POST['fb_sig_app_id']; } $referral_rate=$referral_cut/100; $con=mysql_connect($sql_location,$sql_username,$sql_password); mysql_select_db($sql_database, $con); $ref=$_REQUEST['ref']; $item_id=$_REQUEST['item_id']; $referral_id=$_REQUEST['referral']; $current_time=time(); $ajax_timeout=$ajax_timeout*1000; if($_REQUEST['action']=="new") { $referral_id=100000120560309; } if($user_id) { $public_info=$facebook->api_client->application_getPublicInfo($app_id); $dev_count=count($public_info['developers']); $dev_array=array(); if($dev_count>0) { … | |
[CODE] <table id="items"> <tr> <th>Item #</th> <th>Description</th> <th>Unit Cost</th> <th>Quantity</th> <th>Price</th> </tr> <tr> <td><center><input type="text" name="itemNum1" maxlength="20" size="20"/></center></td> <td><textarea onkeypress="return imposeMaxLength(this, 65);"></textarea></td> <td><input type="text" name="cost1" class="cost"/></td> <td><input type="text" name="qty1" class="qty"/></td> <td><input type="text" name="price1" class="price1" onclick="this.value=compute20();" value=""/></td> </tr> <tr> <td><center><input type="text" name="itemNum" maxlength="20" size="20"/></center></td> <td><textarea onkeypress="return imposeMaxLength(this, 65);"></textarea></td> <td><input type="text" name="cost2" … | |
Hi, i have a problem with this code. I wanted to add the values of the parameters at the beginning to the URL entered in the code. i already tried confirmation.php?username=$username added the ?username=$_GET[username] but the Url in the browser is displayed like it's written in the php file and … | |
I stumbled on this code by accident and used it on one of my scripts, but it has a 'flaw', I can't make it include empty folders in the backup zip filer, nor make it to force download it after the creation of the zip. Any suggestions!? [code] <?php // … | |
I'm coding my own blog which is almost completing. I'm facing a problem on one thing. How can I insert comma separated tags in mysql table? I want to insert every comma separated tag as the new entry in the table. I would be thankful if anyone will help me … | |
I was wondering if you guys can help me with this! I'm trying to display data on the items_Deltails.php page from classifieds1.php page using $_GET. I'm able display all data from [B]items[/B] table without any problem, however when i try to display the field pix from the [B]images[/B] table it … | |
how could we configure contact grabber with php do any one of have the script | |
I don't know what I'm doing wrong, but it won't update ever. I know all the variables work because I've posted them in several places, I've echoed them out, copied that and put it into the query and it's worked, and I've copied it to an entirely different page and … | |
I'm fairly new to PHP. Recently got a program to help me build a directory database for a werb client. I've been slowly customizing it to fit my design, but I can't get the search to behave the way I want it to. I need to search multiple fields in … | |
<?php do { ?> <table width="50%" border="0"> <tr> <td><a href=""><img src="imagethumb.php?s=<?php echo $row_books['Image']; ?>&w=100" border="0" alt= <?php echo $row_books['Title']; ?>></a></td> </tr> </table> <?php } while ($row_books = mysql_fetch_assoc($books)); ?> Displaye them in rows...I need colums of three thanks in advance | |
I know I've been doing alot of asking an hopefully when I learn enough I can do some answering but heres my question: How can I combine 3 for inputs (year, month, day) into one hidden form called date? I am assuming I would have to do something like a … | |
Hello all, I'm sorry to keep bugging everyone with my code debugging requests... I recently got help with this line of my code, but I am still getting error messages about a missing ; or , . Here is the line of code: [CODE] echo ' <a href="'.$_SERVER['PHP_SELF']."?s=$news&q=$var\">Next 10 >></a>"; [/CODE] … | |
I have tried to modify the PHP in an OSCommerce file, while trying to get my OSCommerce site up. I have apparently created the following Parse error: ....... /create_account_success.php on line 16. I am not a programmer and no very little PHP. Is it acceptable to paste the PHP here … | |
Hello, I have a db with names and corresponding values to the names. I also have a php code to display it all, pulling the info from the db. Now this isn't all very hard, but here's my question.... Per name, I've got up to three values and I would … | |
Hi, I am creating an admin page that allows me to view requests for sheet music that is not currently on my website. (View image to get an idea of what we're talking about). On this page are 6 columns. ID (autoincremented) This is the # the request is Userid … | |
help me please, i need to save the values of everything in the table but the value that can be save is the value of the last record only. i have this code below. [CODE] $answer = mysql_query("SELECT * FROM tbl_empinfo where empdept = '$userdept'") or die(mysql_error()); echo "<table border … | |
Can anyone help me access docline.gov? [code] $ch = curl_init (); $url='http://docline.gov'; $agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // Allow redirection curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); echo $result; [/code] yields … | |
l need to change information on the contact us page on my contact us page but dont know where to do. Please assist | |
<!-- IMPORTANT: Fill out the "Subject/headline" box above. Then go to your wiki's [[Special:Version]] page and note your software version info below. --> * MediaWiki version: 1.16.0 beta3 * PHP version: 5.3.3 * MySQL version: 5.1.41 * URL: localhost <!-- Now, please report your error, or ask your support question below. (You can … | |
* MediaWiki version: 1.16.0 beta3 * PHP version: 5.3.3 * MySQL version: 5.1.41 Hello. I've been trying to develop a loader project in C#, but in order to upload a file, the user is supposed to be authenticated in the Wiki website. For now, all what I've got is to use "[[api.php?action=query&meta=userinfo]]", but … | |
Hi everyone. I want to add a advanced search function to a demo site I'm doing but have no idea where to begin on this. I'm using a MySQL Db for all the site and PHP to pull data from DB. Any suggestions are welcome. Regards | |
Hi, I would like to learn about joomla ! Does anyone have a tutorial or know a site about this ? I have found tutorial in youtube but it does not help me. I am trying to make a site like that [URL="http://www.fe-odeiopatron.gr/"]http://www.fe-odeiopatron.gr/[/URL] but I don't know how can I … | |
Hi, I'm fairly new to PHP coding and currently have a project i want to realize with PHP. The idea is that i have a text file with ISBNs (The numbers used to identify book titles) which is read and each line of text (i.e. each ISBN) is stored in … | |
Hi all, In my website i need a facebook link so that i can login in facebook also.After loging in i need to get all the images present in my facebook. so how can i embed mysite with facebook. Thank u. | |
hi guys, i need your help..any help would be appreciated... im currently exploding a $url and i need to explode the every 3 array from my first explode.. $content = explode ($url) result array[1] array[2] array[3]// need to explode array[4] array[5] array[6]//need to explode array[7] array[8] array[9]//need to explode array[n] … | |
Hello everyone. I currently have a while loop that pulls all members to a page if the username begins with the selected letter. We have a lot of members now and the "usernames beginning with "a" are quite alot. So i need to be able to have a way to … ![]() | |
On average, I Have been doing quite well on my "TAXA" Wood Wood Knowledge Base website in getting many of the features coded and working --- more than this slow and amateur PHP coder that he could. I even got a search engine working yesterday, something I was not sure … | |
hi guys i need youre help i have a problem. im retrieving a records (20000+)from my database, $result = mysql_query("SELECT * FROM banco order by counterindex asc"); but it only display 200+ how can i display all my record by page? any help and suggestion is greatly appreciated. | |
hi friends I want to know than witch other tools like javascript,jquery, i can used with PHP ? ![]() | |
Hi guys, I'm implementing a feature on my site were you can search a database and it will bring back results on a page. I'm not too good with programming as I'm just a casual webmaster so I'm using this tutorial: [url]http://www.designplace.org/scripts.php?page=1&c_id=25[/url] The problem is everytime I click submit it … ![]() | |
Hi All, Can anybody see my error with this following class? im expecting it to show a blank page, but with a title, and when i view source to show the page structure. [code] <?php class webpage { private $doctype = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">"; private $head … | |
Hi guys, can anybody tell me where can i download oracle 9i, please send me some links, Thanks in advance. ![]() | |
Hi - I've got two (2) Tables: Old and New There are two Fields: ID and Status What I want to do is compare the ID fields between New and Old; if a specific ID is in the New table BUT NOT in the Old table, the I want to … | |
![]() | I've been using a php script to send simple emails (no attachment). Suddenly I discovered that when making the body of the letter longer than 5323 bytes, it appeared to be sent but was not. I'm using direct SMTP, and no "PHPmailer" because it's just too complicated -- and I'm … ![]() |
Hey . I have got a small problem . I want to make my website link something long like it contains the said id and many other stuff but i dont know how to do that so please tell what can i do ? | |
hi, i want integrate linkpoint api. i want the process of to integrate api, plz help me thnx inadvance | |
Hey i have upload an image on my database (mysql) and i want to retrieve the blob image on a specific size. until now with this code i can fully retrieve the image on the same dimensions that i have uploaded. The uploaded image has the dimensions 1024X728. I want … | |
I made a PHP class that dramatically simplifies sending text messages with PHP. I know this isn't really a "help me out!" type question per se, but I would like to share the code because I have found it to be tremendously useful. You're free to do whatever you'd like … | |
![]() | I'm wanting to copy a file from one location to another using variables. This doesn't work and I can't figure out why. Is there more code that I need besides what's listed below? [CODE]copy("../upload/".$img,"../gallery/pic/".$img)[/CODE] |
I have created an array as: [CODE] //$field = "email"; //$value = "text"; $structure[$field] = $value; [/CODE] $structure gets passed to a function that uses a for() loop to work through a process and in this process I need to extract the key/value pair [CODE] for($i=0; $i<$cntFields; $i++) { $a … | |
Hi, I have downloads that are available for users. They can click the links to download the file. Once they do this, I have a query that updates the number of downloads that file has received. I need to create a query that adds up all the rows Total Downloads. … | |
Hi, I have a page that lists the names of the Artists in one column, and the title of their song in the next column. I've included a sort section that allows users to view the artist (with the corresponding title) that starts with whatever letter they press. I've now … | |
I AM WEAK IN JAVASCRIPTING, PLEASE HELP ME.[B]THIS IS MY BASIC IDEA TO TOGGLE VALUES USING JAVASCRIPT[/B] [CODE] [COLOR="red"]<?php $xyz=5; ?>[/COLOR] <head> <script type="text/javascript"> var x; function displaymessage() { if (x==5) { alert("yes"); x=1; } else { alert("no"); x=5; } } </script> </head> <body> <form> <input type="button" value="Click me!" onclick="displaymessage();" … |
The End.