39,323 Topics
| |
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 ? |
The End.