39,316 Topics

Member Avatar for
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
867
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
Member Avatar for abhisriv
Member Avatar for thomasbe

Hi everybody I need a help. codes below are written by someone else. I have a mysql database, html form to login to this database: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>1</title> </head> <body> <h4>Please provide correct username and password:</h4> <form enctype="multipart/form-data" action="login.php" method="post"> Login: <input …

Member Avatar for thomasbe
0
118
Member Avatar for Tenaciousmug

Ok, I have all my functions working along with the real_escape_string(). Now I just need to find out WHY the password check isn't working properly. Whenever I try to login with the username: Dyl and the password it was signed up with, it says "Dyl is an existing username, but …

Member Avatar for ppetree
0
134
Member Avatar for baudday

Attached is a picture of the database layout I'm talking about. I would like to list out all the shirts in the database along with which categories they are in, and which textures and colors they come in. These are all many to many relationships, and hence the linking tables. …

Member Avatar for ppetree
0
124

The End.