39,320 Topics
| |
Hi there, I got the following challenge. I have a site that is hosted on a windows 2010 server and i am trying to get the website to send emails. The site runs on Apache 2.2.9, PHP 5.2.6 and we set it up to run on port 6000. I have … | |
header is not working in iframe tag of html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <iframe src="blog3.php" frameborder="0" width="100%" height="600px" scrolling="yes" ></iframe> </body> </html> and at blog3.php there is a an header command <? ob_start(); ?> … | |
I'm trying to upload an Image to PHP. The most common method I found out to do this was using FORM/POST; But that doesn't help me for what I am about to do. What I actually am trying to do is upload an image to PHP, the PHP Script will … | |
I'm pretty sure this is done with php, but have no idea how to do it! I built a simple website for a friend that owns a reptile shop. But I need to be able to sort it so that he can change/update his own stock list. The stoock list … | |
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? … | |
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 … | |
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. | |
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 … | |
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 | |
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 … | |
Hi, hindi kruti 13 font is not working in form. I also installed again but getting same result. Need advice | |
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)) … | |
| 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: … |
| 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 … |
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 … | |
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, … | |
Hi, I want to know how to replace variables of RTF file using PHP language. Please help me.... | |
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 … | |
i nid your great help in getting the logic to use in automatic assigning tasks to a given list of individuals... | |
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 … | |
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 … | |
``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";" … | |
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' || … | |
| 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 … |
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 … | |
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 … | |
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>";** … | |
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] = … | |
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 … | |
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 … |
The End.