39,326 Topics
| |
| Hello there, Htaccess stuff not being one of my strong points, I'm asking if anyone knows about how to use the rewrite engine to provide the following : I currently have : [code]http://www.example.com/?page=home[/code] I would like to have : [code]http://www.example.com/home[/code] I think this is possible, because it used by Joomla … |
Hello everybody I want to avoid the errors that occur when I post a text that contain the ' sign and put it in a mysql query someone told me that theres a function in php to do that but I want to use it manually because he told me … | |
I'm trying to figure out the best way to accomplish the computation of weighted averages for my site. Here's the PHP that pulls down the results -- [CODE]$SQL = "SELECT a.*, b.CName, c.Description FROM humidor a LEFT JOIN cigar b on a.CigarID = b.CigarID LEFT JOIN cd_manufacturer c on b.Manufacturer … | |
Hey everyone I just started using a new hosting service called 1and1 all the normal pages are going fine that use the simple html extension. However one of my php pages that uses the session_start() and header() functions isnt working correctly and I get an error. Now I know an … | |
I am making a wordpress plugin but I am having difficulty accessing the results from an array in a function Radio Box: [CODE] <!-- First radio button --> <label><input name="posk_options[radio_group_two]" type="radio" value="satellite" <?php checked('satellite', $options['RADIO_GROUP']); ?> /> Satellite</label><br /> <!-- Second radio button --> <label><input name="posk_options[radio_group_two]" type="radio" value="hybrid" <?php checked('hybrid', … | |
Hi, I am creating reports in my project using [B]TCPDF[/B]. I want to get the reports on a daily basis. For an example if there are 10 transactions occurred in a day, i want to display them in a report format. These are the 2 pages that i have created. … | |
hi does anybody know a free sms api that i can integrate in a web app.will need to take text from a database and the selected phone number from the database and send it via sms.iv heard about google voice sms option but it doest say much of if you … | |
I am planning on writing a website that retrieves information from websites that require logins. Originally my intention was to AJAX most of it so I could provide the information in nearly realtime but the problem lies in browsers not allowing cross domain requests. So I considered YQL but then … | |
I used the following to increment a "FOR" loop: for($row2[0] = 15; $row2[0] <= $rownum3; $row2[0]++) It worked. I tried to use the following to decrement the "FOR" loop: for($row2[0] <= $rownum3; $row2[0] = 15; $row2[0]--) It did NOT work and went into an infinite loop for some reason. Can … | |
I am at my wits end ! Dont know what's wrong with the following code. It is always saying "Parse error: syntax error, unexpected $end in C:\Program Files\EasyPHP-5.3.6.0\www\addallbuy.php on line 51" [CODE] <?Php mysql_connect("localhost","root"); mysql_select_db("landshop_clientdata"); $Date = Date("Y-m-d"); $Agt="Landshoppe"; $user="anitg"; $Title="Mr."; $first="Anit"; $last="Gopinath"; $Age="40"; $prop="Wanted 1 BHK/2BHK and other properties"; … | |
`Hello guys im trying to make this php code; [CODE]if(file_exists("u/txt/Chat/logged.txt")){ $file = $_SERVER[PHP_SELF]; if($file=="/systemchat.php"){ $file = file_get_contents("u/txt/Chat/logged.txt"); if(!strpos($file, $username)) { $myFile = "u/txt/Chat/logged.txt"; $fh = fopen($myFile, 'a+') or die("Can't open file"); $stringData = '<b>'.$username.'</b><br/>'; fwrite($fh, $stringData); fclose($fh); } } [/CODE] refreshed every second with Ajax, wondering how i should do … | |
how to remove a single quote ' in the search string...since it would generate an error if single quote is included... example, in an input box, the search string below are typed 'computer computer' 'c'o'm'p'u't'e'r if search button is click it would generate an error... please help..thanks... | |
hi everyone, i write data from database to the csv file,but i face problem how to print the csv file with multiple colors background for example first line is green then second line must be blue, please help me how can i do this in php | |
Any could give me a PHP script on how to call or execute mysql stored procedure. Thank you. Roland | |
Hi there; There is a problem in my code. I've designed a web site that reads and querying over a XML file. Here is my XML file structure: <?xml version="1.0" encoding="utf8"?> <Root> <User> <name> ayça <name> <surname> demir <name> <department> ftr </department> <TCIdno secrecy="c">48622845695</TCIdno> <rank> tuÄŸgeneral </rank> <telNo> 2114 </telNo> … | |
Hi everyone, I have a code which converts a html page into excel file. The following code has been working well so far, but Im having a problem of converting the html page into excel file after I had changed the localhost to another server. It's not able to generate … | |
Software: MN Tech Solutions Content Management System Software Version: 0.0 Developer: MN Tech Solutions Programmer/Designer: Mustafa Neguib (Founder of MN Tech Solutions) ok guys here it is . the project that i have been working on for the past two weeks. i have already got the green light from the … | |
Any could give me a PHP script on how to call or execute a MS SQL Server stored procedure, passing parameters to it and receiving a value from it using an Output parameter? | |
Hi, I have a query which takes too long to return result set. After then I turn result set into xls format to be downloaded at same time. Problem: Obviously, browser says "Request time out". Users will have this problem and my site will fail completely. What else out there … | |
hi I need advanced search for my news website,please help me | |
Hi, I'm developing a web app, but I think that maybe I'm not doing it the right way. See, for each page I take the GET variables from url, for instance: [url]www.webapp.com/?mode=register[/url] That way, the index gets the variable and displays the right page, in this case, the registration page. … | |
| Hi, Just started to mess with MySQLi, created a simple login script, Connection to MySQL server establishes correctly, but then displays username is incorrect, because 0 rows were returned. 1) Am I doing it right, is the mysqli layout I'm using correct ? 2) Database structure is uid - username … |
So briefly I have a framework class that I'm using that work perfect except with the issue I'm currently having. Problem is this, everything displays on the page as expected [B]until [/B]the form on the page is submitted and the ISSET at the top is true: [CODE=php]if(isset($addAccount)){ $SP = new … | |
I'm just wondering how to solve this problem. I've tried it myself with the code below but it doesn't seem to work. I made it so the database results come up from the database HEADSTONESA and it has a section called KEYS which is the cemetery key. I was wondering … | |
Hello everybody i am upload image using php file uploader code provided at w3schools and it is uploading the images but when i upload swf file it will give me errors... i dont know why this is happening any suggestions... Much Obliged | |
I created a form that collects a title and some content (as well as some other data), and would like to take that title and content and automatically create a link and a new and simple web page for it (think of Craigslist). So, in the end result, when other … | |
Hi guys, having a bit of trouble with the following piece of code, [CODE] <?php if (strcmp($pubinfo_username, $_SESSION['username'] ) == 0) { echo "<img alt=\"Remove this post\" height=\"20\" src=\"../images/btns/x.png\" width=\"25\">"; } ?> [/CODE] What I need this code to do is compare the string from the variable $pubinfo_username and compare … | |
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\samples\htmls\login.php:7) in C:\xampp\htdocs\samples\htmls\login.php on line 39 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\samples\htmls\login.php:7) in C:\xampp\htdocs\samples\htmls\login.php on line 39 Warning: mysql_num_rows() expects parameter 1 to be resource, … | |
Hi I am trying to open an image file in abc.php using function readfile() while trying to access the same image from another file say xyz.php using following tag: [CODE]<image src="abc.php" />[/CODE] But i don't know where it went wrong? Please help me out regarding this. | |
hi i have downloaded this as source code and tried with my limited abilities to make it a <textarea> instead of <input type text. everything seems to work until the final update page update_ac.php when i submit i get the error..... You have an error in your SQL syntax; check … |
The End.