39,316 Topics

Member Avatar for
Member Avatar for veledrom

Hi, Let me explain with an example. I have a postcode `NW1 5LR` and its `LATITUDE:51.546069024064 LONGITUDE:-0.235949008191785` coming from user entry. I also have many other postcodes and their Latitide&Longitide values in database. What formula should I use to get only those postcodes which are in 1 mil away maximum? …

Member Avatar for veledrom
0
96
Member Avatar for dwlamb

Good day, I am working on atomizing a template creating includes in a sub-directory called includes and calling them like this <?php include 'includes/head.php'; ?> I have also tried <?php include('includes/head.php'); ?> My page won't load. All I get is a blank browser window. I tried tailing the error.log and …

Member Avatar for Squidge
0
233
Member Avatar for Sorcher

Why is widdit loading on my website? it never stops loading and i havent used widdit before in any codes...etc. The widdit load is ruining my site.

Member Avatar for Widdit_Support
0
93
Member Avatar for mbarandao

Hello: I need to obtain the text value of the select list instead of its numeric value. <select name="categories[]" class="categories" ><option value="0">--Select One--</option><option value="2">BRAKE SYSTEMS</option>.....</select> Based on the code above, I need to be get text Value "BRAKE SYSTEMS: rather than "2". Making the value equal to the text value …

Member Avatar for mbarandao
0
200
Member Avatar for salii

hello, I have a problem with database. there is a syntax error unexpected T_variable. could you please tell me what is the error in this script? thank you

Member Avatar for salii
0
1K
Member Avatar for dgibbons82

I am currently working on a simple survey system for educational purposes. I know it is subject to SQL Injection, but I am new to PHP/MySQL and wanted to learn something basic so I have something to build upon later. Basically, I have an HTML form that processes the PHP …

Member Avatar for broj1
0
5K
Member Avatar for jacob21

Hi, hindi kruti 13 font is not working in form. I also installed again but getting same result. Need advice

Member Avatar for |-|x
0
1K
Member Avatar for PF2G

Hi, i'm working on a website where i select some text from DB according to the language selected: Here's where i define the language (where default = 'pt'): <?php //array $lang = array('pt', 'en'); //iniciar sessao -> array session_start(); //verificar var lang no url -> pagina.php?lang=pt if(isset($_GET['lang']) && in_array($_GET['lang'], $lang)) …

Member Avatar for diafol
0
141
Member Avatar for HTMLperson5

Hi, I am trying to install PHP and have had no sucsess; the steps I have taken are shown below. 1. Download .msi PHP installer 2. Run Installer 3. Download .msi APACHE installer 4. I don't have a webserver! 5. Open PHP 6. Console comes up. 7. Try following code: …

Member Avatar for broj1
0
197
Member Avatar for LastMitch

Hi I have a few questions. **1) I want to put the a text editor in the admin section so I can edit the 'home page' context from the admin section which is in php language (I have no context in the admin created yet, this will be my first …

Member Avatar for dannette
1
4K
Member Avatar for omoayan

I have tried to use this code but I can get it to work well in my server. When I run the mysql query in mysql it gives me the result that I want but within the code it does not output anything. It just gives a blank page. What …

Member Avatar for omoayan
0
140
Member Avatar for phoenix_2000

Hello, For my current project, i'm supposed to write a statistics page that shows data about the presence of persons (or lack thereof) per profitcenter. (To put it roughlu, a profitcenter is a group of persons within this company, a bit like a department) in order to generate the statistics, …

Member Avatar for phoenix_2000
0
128
Member Avatar for mwansari

Hi, I want to know how to replace variables of RTF file using PHP language. Please help me....

Member Avatar for diafol
0
2K
Member Avatar for omoayan

I need someone to assist in finding out the error in this or correct the codes. I want the codes to give me years in the publicationdate from my DB. However, though I am getting the years, I am getting a particular year repeated. If I put journals in for …

Member Avatar for diafol
0
165
Member Avatar for mayreeh

i nid your great help in getting the logic to use in automatic assigning tasks to a given list of individuals...

Member Avatar for diafol
-1
70
Member Avatar for JayVNL

Hi All ! After a few hours of googling around i found this community. I am not sure if i am in the right place, sorry if i am not. I want to build a form with a drop down menu and a few text fields. On load, they are …

Member Avatar for diafol
0
801
Member Avatar for hwoarang69

it keep on printing 1st image from database. but i want to print all the differenct images. $id = $_SESSION['user_id']; //select images from database $sql = "SELECT * FROM image WHERE user_id = $id ORDER BY image_id DESC"; $result = mysql_query($sql); while($row = mysql_fetch_assoc($result)) { <img src="image.php?id='.$row['image_id'].'" /> } image.php …

Member Avatar for xungo2000
0
153
Member Avatar for Kniggles

``this code keeps kicking out the error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a2595218/public_html/login.php on line 49 with the out-put " The username you enterted was not found " I should be seeing the error " You must active your acount to play. $form";" …

Member Avatar for |-|x
0
285
Member Avatar for muralibobby2015

I am accessing images from another website. I am getting "failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request " error when copying 'some(not all)' images. here is my code.[CODE]$img=$_GET['img']; //another website url $file=$img; function getFileextension($file) { return end(explode(".", $file)); } $fileext=getFileextension($file); if($fileext=='jpg' || $fileext=='gif' || $fileext=='jpeg' || …

Member Avatar for pritaeas
0
857
Member Avatar for arcticM

Hello, I learned Java few years back, and later learned PHP and built a website/application using php. my website had a database and 98% of the code was not in OO (the other 2% I copy pasted fromt he internet).. when I needed to display some data I made a …

Member Avatar for pritaeas
0
148
Member Avatar for yongj

So I've been dealing with this issue for about 5 hours and I'm just about desperate now. I'm trying to create a LOCAL mysql database on my computer using IIS 7. I've already created one on another computer without any issues but I'm having issues configuring it on this laptop …

Member Avatar for yongj
0
121
Member Avatar for DaveyMoyes

Hi everyone, I have been using strcmp in a website I am helping with, we use this to check against passwords when a user is resetting thier password. The problem I have at the moment is, when ever i try to use the strcmp to check against numbers It always …

Member Avatar for broj1
0
143
Member Avatar for jacksantho

Hi, How to store while data result set into the session variables and how retrieve the appropriate the session values of the hyperlink on test.php(on another page)... please help me out...thanks Hi, session_start(); $query="select id,name from test"; $result=mssql_query($query); while($row=mssql_fetch_assoc($result)) { $pid=$row['id']; $pname=$row['name']; echo "<tr>" echo "<td>"; ** echo "<a href=test.php>$pid</a>";** …

Member Avatar for broj1
0
4K
Member Avatar for Subless

How can I take the below array and make it an in-line array? // Store user-data in array $USER = array(); // first user info $USER[1] = "username"; $USER[1] = "password"; $USER[1] = "rank"; $USER[1] = "session id"; // second user info $USER[2] = "username"; $USER[2] = "password"; $USER[2] = …

Member Avatar for Subless
0
192
Member Avatar for omoayan

Hi, I am trying to build an archive for a website that will be publishing journals. However, I am having challenges building the archive where past journals will be stored and retrieved for future references and reading. My major challenge is how to retrieve the datetime from the DB and …

Member Avatar for omoayan
0
86
Member Avatar for Sanchixx

How can i upload an image in my php comment box here it is: <?php $act = $_POST['act']; if($act == "post") { $name = $_POST ['name']; $area = $_POST ['area']; @$fp = fopen("comments.php", 'a'); if (!$fp) { //The file could not be opened echo "There was an error! Please try …

Member Avatar for diafol
0
188
Member Avatar for Squidge

Hi all, Does anyone have a good rss class? i am looking to use one where i have a list of feeds in a database and you can select which feed to display via CMS

Member Avatar for siteky
0
110
Member Avatar for Albert Pinto

Hi people, got some weird issue. My update query isn't working once I upload my files on server, It works perfectly on localhost and delivers what its intended to do. I echoed my update query On local host it gave me: UPDATE displayusertrip SET displaytripmnth='JAN', displaytripyr='2012', displaytriptrps=' Goa Trip, Bengal …

Member Avatar for sasankasekhar
0
1K
Member Avatar for clydiex

Hello and Good day. I wanted to create a simple login / logout script in php. I have tried/copied all the available tutorials here in the web but I seem to have the same problem to all the scripts. Everytime I hit the login button i get redirected to a …

Member Avatar for clydiex
0
227
Member Avatar for seblake

Good evening. I've never used php before... I tried... A simple query told me to use this syntax: <?php include 'Max-TechFooter.php'; ?> Another one showed the div's around it, so I tried that, too That's the way it is now: <!-- Footer --> <div class="footer"> <?php include 'Max-TechFooter.php'; ?> </div> …

Member Avatar for sasankasekhar
0
135

The End.