39,320 Topics
| |
Hi guys, i was watching a video on youtube and noticed that the program the guy was using had a feature where it would pretty much suggest code as he typed. I remember something like this in visual basics and thought it would be cool to help me with PHP … | |
Can I rotate a image using a php code? Help needed with the php code? | |
[CODE] <?php class Database { public function protect($data){ $data = trim($data); $data = stripslashes($data); $data = strip_tags($data); $data = mysql_real_escape_string($data); return $data; } } $database = new Database(); $txt = '<strong>\\\Test///</strong>'; $txt = $database->protect($txt); echo $txt; [/CODE] And output have a <strong> tag, slashes and all with zero errors. I … | |
allow HTML in text area - PHP Postby hypno ยป Sun Nov 13, 2011 9:56 pm I am working on php based site.( :( and I am a newbie in PHP) . A upload form is part of the site. When tested submiting the form, whatever HTML tag I input … | |
Hi i have a code that shows me some repitnig data from .txt file. Code looks like: [CODE]$getText = file_get_contents("Kier.txt", true); $Poln = substr_count($getText ,"Polnoc"); $PolnW = substr_count($getText ,"Polnocny-Wschod"); $Wsch = substr_count($getText ,"Wschod"); $PoldW = substr_count($getText ,"Poludniowy-Wschod"); $Pold = substr_count($getText ,"Poludnie"); $PoldZ = substr_count($getText ,"Poludniowy-Zachod"); $Zach = substr_count($getText ,"Zachod"); $PolnZ … | |
Hi there, This is following on from a previous solved thread. Basically, I have this code: [CODE]<td colspan="2" align = "center" style="color:#FF0000; font-weight:bold;">' . ((isset($_GET['error']) and ($_GET['error']=='recaptcha')) ? 'Error: The captcha was entered incorrectly. Please try again.' : '') . ' </td>[/CODE] I've now been told that the "Error: The … | |
Hi all Not sure if im posting in the right section so sorry if i am. I have been looking for an open source asset/inventory solution for a friend. I came across Free CMMS on sourceforge.net and for ease of installation and testing installed the latest version of XAMPP as … | |
Hi I am new in Joomla.... i want to add dynamic page in joomla. i want also bind dynamic page in menu..... Please Reply ASAP....... | |
Hello all, I have a site with login system, when I run it on my local sever it worked perfectly ok, but when uploaded it was not taking me to member page as on my local server. Please can anybody help me with this. The codes are below. myconfig.php [code]<?php … | |
I have this code but i can't get it to output in the email address i specified on the form. [CODE]<form action="Script/sender_subscription.php" method="post" name="Pillar Gardens Offer Form" target="_blank" id="Pillar Gardens Offer Form"> <table width="100%" border="1" align="left" cellpadding="1" cellspacing="0" bordercolor="#F8F8F8" bordercolorlight="#CCCCCC"> <tr> <td colspan="2" align="center" valign="middle"><table width="100%" cellpadding="0" cellspacing="0"> <tr> <td … | |
Hi, Guys Could anyone tell me how to import MsExcel data into MySQL using PHPExcel. I want to make an upload system for my users. They want to upload their data which is in Ms Excel format into MySQL databases...Please teach me how to do that... And I appreciate your … | |
Hi, I needs to upload the excel file and how can i read this excel file cell by cell using PHPExcel class and needs to import into database(mysql or mssql).please help me out. thanks in advance | |
Hey guys, I am writing a bot class to scrape some information off of websites. Here are the requirements. [LIST] [*]Specify Url [*]Check for valid url [*]'GET' contents of url with curl [*]check mime type & response status code [*]check for special url [LIST] [*]parse special data [/LIST] [*]parse for … | |
Hello i am new here also new in php i have problem with my code [CODE] $seller_id = $listings[]['Account_ID']; $seller_info = $rlAccount -> getProfileInfo( $seller_id ); $rlSmarty -> assign_by_ref( 'seller_info', $seller_info ); i get this error Fatal error: Cannot use [] for reading in [/CODE] the array is [CODE] Array … | |
I'm not really good with arrays and have had a go at this, but to no avail. I have a string called $str and another called $area. I need to split the string $str into an array of words (delimiter being spaces). This is the part I was able to … | |
If I am inside a folder and I use "/", it uses it for root directory so [CODE]<a href="/">test</a>[/CODE] links to [url]www.test.com/index.php[/url] For example, if i am in the file [url]www.test.com/login/index.php[/url] and I use "/" then it goes to root directory but if I am in [url]www.test.com/index.php[/url] which is the … | |
Hi all, I have 2 multidimensional arrays which i have to print simultaneously and one of them will not have same number of elements at some times. So i check them using empty() function. As it is not possible to check every single element, i wrote a function which has … | |
Hi! I am building a simple blog website and am stuck when I get to the posting comments part. I write my comment to post and when I hit post comment I get the error message: Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs\simple_blog\inc\update.inc.php on line 90 Here is my … | |
Is it pasible to find all occurrences of strings "North" and "North-East" in some txt file and save number of occurrences in some variable?? | |
I'm making a feature like stated in the title that gives suggestions based on what terms exist in the database; I have a working example below that works for one term. such as "oranges", or "yellow bananas". However, I need it to work for multiple terms so if my database … | |
We are developing a email web site.but we are facing problem in receiving and validating the mail.i have the following doubts.can you please help me in clarifying these??? one more important thing is we are not using squrrelmail, qmail etc. how do we receive emails for users in email web … | |
| |
Hi, i created the page which is display some information from database with some rules in the end of page i putted the command that it is show how many page that i have. so, i decide to add next and previous in the sides of page numbers and also … | |
Hi! I would just like to know if its possible to give an linked image the ability to send the form instead of a submit button? Like in the example below: [CODE] <form method="post" action="Search.php"> <table id="search"> <tr> <td> Search: <input type="text" name="search" id="search" placeholder="Search for friends"/><td><a href="Search.php" action="Search.php"><img src="graphics/search.png" … | |
I'm very much depressed with the following code. As for me, everything is correct. But the Goddamn code doesn't work. I've a html form with radio buttons and a hidden field. On clicking Submit, the form does not submit. Trying print_r($_POST) on the submitted radio button variable, it returns an … | |
Hi, I followed the steps to install the social network as shown in below link. I am able to install the social network in my forum. I can see online and offline users. Also, I set the permissions "allow chat only with friends" ," Open links in new window" in … | |
Hello!! For my final year project, i would like to build decision support system that give suggestion to customer to build their house based on type of house and price. So, customer will select type of house that they like and also the budge money that they have. Then, the … | |
i want the month to date reports from starting of this month to present day. how to do that in php | |
Ok guys i am working on a program that will compute the distance in miles from Chicago or dallas(radio buttons)to specific destinations. The destination cities are in a selection list. The output should be the distance between the two cities, the time it would take to drive at 60 mph. … | |
Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working.. Its not the point only to allow one / or - But only letters, numbers and /- in … |
The End.