39,320 Topics

Member Avatar for
Member Avatar for Chosen13

My site is a kid-based gaming site. I don't want users to be able to enter bad words. I don't want a filter that censors them, but one that if a bad word is found, redirects them to a Filtered Word page. On my previous one, words like hello or …

Member Avatar for Dartz654
0
58
Member Avatar for renoua

hello, I need some help with my assignment. I have a XML file (EAD) that has some general info about 106 old documents and the library that are located and a description for every one in 106 <c01> tags . Each document has an id in c01/did/unitid (unitid tag). I …

0
59
Member Avatar for Lapixx

Hi, I'm using a simple .htaccess file to use a custom 404 error page: ErrorDocument 404 /errors/404.php Inside this 'errors' folder, there is the 404.php file, and an image, which I want to include in the 404 page. Anyway, when I request a non-existing page from the root folder, everything …

Member Avatar for bigtalk
0
258
Member Avatar for bigtalk

I found this great piece of code for validating URL's. I've been trying to get it to work with preg_match() since eregi() is deprecated with with PHP 5.3: [code=php]// SCHEME $urlregex = "^(https?|ftp)://"; // USER AND PASS (optional) $urlregex .= "([a-z0-9+!*(),;?&=$_.-]+(:[a-z0-9+!*(),;?&=$_.-]+)?@)?"; // HOSTNAME OR IP $urlregex .= "[a-z0-9+$_-]+(.[a-z0-9+$_-]+)*"; // http://x …

Member Avatar for bigtalk
0
166
Member Avatar for charvie

I have this php page that displays all the record from the database. now, I want them to look something like this.. 1. result A 2. result B 3. result C There's a lot of records in my database, so it has several pages.(each page displays 20 records) now if …

Member Avatar for EvolutionFallen
0
73
Member Avatar for mobo57

I've been working on this one for the last two days and seem to be hitting the wall. How things work is the user uploads his files to a directory on my server with the names of the files and a new page name being inserted into a mysql table. …

Member Avatar for EvolutionFallen
0
75
Member Avatar for MaestroS

Well, I wonder HOW to make an explode() function from PHP in C++ For those who don't know. explode($separator, $string) breaks given $string through given $separator for example: [code] $string = "Hello world!"; $result = explode(" ", $string); echo $result[0]; //IT will give us HELLO word echo $result[1]; //IT will …

Member Avatar for Stefano Mtangoo
0
870
Member Avatar for MDanz

e.g. [code]<table><tr><td onclick='ChgText()'>test</td></tr></table>[/code] now "test" are results from mysql. So i want all those results to load before onclick on the column can be enabled. This is because if i press onclick too quickly, the function doesn't capture certain information. any help?

Member Avatar for fxm
0
126
Member Avatar for kirtan_thakkar

I have a database and will search with that database.. I want to show only first 5 results in the page and generate the "next" button for the next 5 results and on the 6-10 results page generate "next" button for the next results and the "previews" button for the …

Member Avatar for kirtan_thakkar
0
118
Member Avatar for kirtan_thakkar

If I have a page of 50 lines and I want to run 10-20 lines again if i click on some button.. Is there any way to do this??

Member Avatar for kirtan_thakkar
0
91
Member Avatar for vilasdhobale

I am trying to connect access database on linux server but not connect to database how to solve this problem with dsn or Without DSN please help me

Member Avatar for vilasdhobale
0
75
Member Avatar for Aamit

Hi, I want to add Some text and images into word file as Header and footer. How to create word file through php code. I have uploaded Sample doc file. Plz guide me..

Member Avatar for chrishea
0
84
Member Avatar for ayesha789

Hi, this is my query [CODE]$result = mysql_query("SELECT SUM(`qty`) FROM sims_ac WHERE region ='North'");[/CODE] How I can show this [CODE]$result[0][/CODE] without using While loop or any other loop.

Member Avatar for scaiferw
0
19K
Member Avatar for frankiedeguello

Hi everybody :) I have a very stupid answer but I cannot solve it! Connect to the mysql db, I get the records that are URLs, into the php loop I call an ajax function that reads the title tag address of the URL ajax code [CODE] function getTitle(str1,str2) { …

Member Avatar for diafol
0
993
Member Avatar for scorpio222

hi everyone, i am working on a project, where when a user registers, he would be provided with a link which he can give to anyone and ask them to register. once this new user, uses that link to register, he will be automatically assigned certain points, that was set …

Member Avatar for scorpio222
0
85
Member Avatar for dan1992

1 guy's way i can not execute like this ? [CODE] <?php echo exec('SV/546463748.png'); $url="member.php"; $timeout_minutes = 0; $timeout_seconds = 1; sleep($timeout_seconds + $timeout_minutes * 60); header ('Location: '.$url); exit; ?>[/CODE] but if is like this the script worcks [CODE] <?php echo exec('546463748.png'); $url="member.php"; $timeout_minutes = 0; $timeout_seconds = 1; …

Member Avatar for dan1992
0
77
Member Avatar for deni_bg

Hello everybody, I want to write php script with classes, but I haven't enought knowledges. I want to delete multiple rows from mysql with chekbox, but I am wrong. I will be very happy if somebody responds me. This is my code function showNews(&$sHtml) { $sHtml.='<input type="submit" name="btnDel" value="delete"/>'; $aNews …

Member Avatar for deni_bg
0
147
Member Avatar for gazzy1

How can i create a php file that when opened which delete all records in my tables. I also need a php file that delete my selected table from mysql database

Member Avatar for ddymacek
0
65
Member Avatar for whiteyoh

Hi All, the following is a script to search using LIKE. i know data exists, but its simply not playing. any help on syntax corrections would be appreciated. regards paul [code] <?php if (isset($_POST['search'])){ echo $column = $_POST['column']; echo "<br>"; echo $param1 = $_POST['param1']; $srch = "%".$param1."%"; echo $SQL = …

Member Avatar for tomford
0
103
Member Avatar for Manuz

Hey, I have successfully made a transaction through my website with Pay Pal Direct Method and also done Partial Refund.Now here is my Question. I need to do a Partial Refund again for the same transaction. When i tried, it shows error message as [QUOTE] [ACK] => Failure [L_ERRORCODE0] => …

Member Avatar for Manuz
0
105
Member Avatar for jayesh4414

hello.. i am working with my college website..and i have added wysiwyg editor in the admin panel..but can anyone help that how to pass a file name so that it can be opened in the editor... suppose i click on "edit news" in my admin panel.. then what code shall …

Member Avatar for Graphix
0
97
Member Avatar for armyany

I’m researching what tools I would need to publish a weekly newsletter featuring the latest news from my industry. I was hoping an open source solution existed that could be modified to fit my needs. I’m not opposed to custom development but wanted to get advice before picking a technology …

0
45
Member Avatar for kirtan_thakkar

This is a MySQL PHP question... how to count no of fields in a perticular database and in a perticular table?? I have three columns in a table :id , name , info I have to print the unique persons.. how could I?? How to code it in php?? Can …

Member Avatar for kirtan_thakkar
0
100
Member Avatar for kirtan_thakkar

How to print more than one results in a page?? I want to print 10 results per page and show next button if it have more than 10 results.. In the next button it will show another 10 results.. How to code it..?? And please explain the code if you …

Member Avatar for rajarajan2017
0
121
Member Avatar for dalip_007

Hi can anyone please let me know , how to check if table is empty or not? I am using php5 and mysql. Thanks in advance. :-)

Member Avatar for ppetree
0
8K
Member Avatar for ben.matthews18

Ok here's the scenario; I have an upload system which works and uploads image files to a folder called 'upload'. I also have a homepage. I want to be able to display the latest file that has been uploaded on the homepage. How can I achieve this? Thanks :)

Member Avatar for pritaeas
0
148
Member Avatar for knkk

I have 2 sites, example.co.in and example.com, hosted on 2 different servers (I have all access details for both). When someone accesses example.co.in/a/b.php?c=d, I want it to show the HTML of example.com/a/b.php?c=d This site has to be search-engine-friendly, so I do not want to use an iframe, or even AJAX, …

Member Avatar for knkk
0
105
Member Avatar for jyotiu

Hi all i am using a curl script to go to a link and get its content for further manipulation. following is the link and curl script: [CODE] <?php $url = 'http://criminaljustice.state.ny.us/cgi/internet/nsor/fortecgi?serviceName=WebNSOR&amp;templateName=detail.htm&amp;requestingHandler=WebNSORDetailHandler&amp;ID=368343543'; //curl script to get content of given url $ch = curl_init(); // set the target url curl_setopt($ch, CURLOPT_URL,$url); …

Member Avatar for sohail_mubeen
0
2K
Member Avatar for BTW8892

Alrite so i am trying insert new values into my table, and when i try to, i get the following error [code]#1062 - Duplicate entry 'Hit Em High' for key 'team_home' [/code] Any idea how to fix this? I've heard it could be a primary key error, but im not …

Member Avatar for rajarajan2017
0
64
Member Avatar for anony

function gethotproperty($hot){ $gethot = "select p.reference_id, p.area, p.area_unit, p.transaction_type,p.property_type,p.property_name,p.address1,p.address2,p.city,p.locality,p.pincode,p.area_in_sqft,p.total_price,p.negotiable,". "p.rate_per_sqft,p.num_bedrooms,p.floor_number,p.intro_image_loc,p.amenities_detail, p.specification_detail, p.location_detail from " . DBConf::getDatabaseSchema() . "property p where p.hot = ".$hot; $result = mysql_query($gethot, $this->connection); $property = new Property(); while($row = mysql_fetch_array($result)){ $property->referenceId = $row['reference_id']; $property->transactionType = $row['transaction_type']; $property->propertyType = $row['property_type']; $property->propertyName = $row['property_name']; $property->address1 = $row['address1']; $property->address2 …

Member Avatar for rajarajan2017
0
181

The End.