39,320 Topics
| |
First, wasn't sure where to put this so I stuck it here because of the PHP files involved. Any way, what would need to be written into my sites .htaccess file to "ping" a php file when an image is called ? So if I type mysite.com/image.jpg into my browser, … | |
hi, i have a form with a few fields including 3 image fields: the problem that i am having is that on the 3rd images upload it just does nothing. i can upload using any 2 of the image inputs and it will work fine but as soon as i … | |
Good Morning, I'm not really sure where to go with this line of thought, so decided to bring it here where the logical thought processes reside... ;) What I have is this... A new membership program that has multiple levels that members can be paid on. Each level is tracked … | |
I am creating a visitor messages system on a member's profile, here is my code so far.. I am using it as an include in the profile page, here is the error I get: [CODE]Error: You have an error in your SQL syntax; check the manual that corresponds to your … | |
Hey, this is my first post here, so greetings lol. Back to the topic, Is it possible to make a text box that can put the text into html code and if so how? Sort of like the box you type your post's with on forums or blogs. | |
If I have an event which consist of 100 tasks, how to rewrite the below code,so i can show all the dealine of each task into <table>? Thanks! [CODE] <?php require("connect.php"); $deadline = mysql_query("SELECT * FROM events WHERE taskid='1001'"); $row= mysql_fetch_assoc($deadline); $deadline2 = ($row['deadline']); //dealine for this task(1001) is 2011-3-10-5-45// … | |
Hi, i would like to send data from a C++ application to a php script i am creating that will then put it into a mysql database after manipuating it a bit. If you don't get what i mean then think of it like this. An HTML form can be … | |
| Hi, I'm trying to somehow download all pictures on a website FIRST before anything else happens... the problem I'm experiencing is that when a user comes to the site - none of the images are loading, sometimes they show, sometimes they don't... I believe that if the client downloads all … |
Hi all I want to create following payment gateways with only php paypal visa bank transfer master card but the problem is I only want to use simple php in other words without frameworks like magento. How can I do this.that would be really nice if you can provide me … | |
well I am having a problem with my class I made to connect to my DB ok here is the class[CODE]class database { private $db_host = 'localhost'; private $db_user = 'root'; private $db_pass = 'McSteel8'; private $db_database = 'cmte'; public function connect() { $this->link = mysqli_connect($this->db_host, $this->db_user, $this->db_pass); mysqli_select_db($this->link, $this->db_database … | |
i have a form on submit.php, with method post to the same page($PHP_SELF). If i made a mistake i want to be able to press 'Go Back' to the previous page(same page) and have the values in their textfields. [code] if(isset($_POST['new'])) { <a href='#' onClick='history.go(-1)'>Go Back</a> } else { // … | |
I'm doing a project and would like to hear your opinions. I want to make Integrated library system and I want to have these folders 1. classes - where all classes will be stored 2. templates - where all templates will be stored 3. admin - where admin files will … | |
Hi, I was reading a few articles about secure login systems without SSL, as it looks a bit difficult to set up a server to accept HTTPS connections, create a certificate etc. Anyway, the main problem would normally be that when a user logs in, the password is sent to … | |
Hello, I have been developing a cms system using php and for some reason it has suddenly started printing a Æ’ character at the top of the page. There are no errors returned, and the page has all expected functionality but it is pushing my layout down, skewing the design. … | |
Im trying to right my first php script. Im trying to get the script to look at a defined site's source to see if a length of code is present. Ive been given this by a friend but im not sure its working as I get this error, and it … | |
hello every one i was looking for some help in this php code i have php code for gallery flash required file >> data.php to show pic and thumbs and categories can any one help me in the code if there was some thing wrong [CODE]<? include('init.php'); define('LF', chr(10)); print … | |
This is my code [CODE] <?php $ebits = ini_get('error_reporting'); error_reporting($ebits ^ E_NOTICE); mysql_connect("localhost","root","") or die(mysql_error()); echo"Connected to MySQL<br /><hr/>"; mysql_select_db("college") or die(mysql_error()); echo "Connected to database<br /><hr />"; $query = "select student.Rollno, departments.Dept_name, student.Name, student.PercentsgeSoFar from student inner join(departments inner join studentdept on studentdept.Dept_id = departments.Dept_id)on student.Rollno = studentdept.Rollno "; … | |
Hello, I have a problem that I'm trying to figure out. I'm trying to come up with a solution where I have multiple links in a form... Let me give an example : [CODE] <form name='newForm' method='post' action=''> while($row .....) { <input type='hidden' value='".$id."' name='selBillAdd'/> <a href='#' onclick='document.forms["newForm"].submit();' >Use This … | |
I can't find the forum section for Apache here in daniweb so I just posted it here in PHP because we typically use Apache with PHP. The problem is not concerning with my PHP program but with the settings of apache. The domain of my website is "www.whatever.com" (this is … | |
When I execute my php script with this sql code: [CODE]$key = "aaaabbbbccccddddeeeeffffgggghhhh"; $con = mysql_connect($sql_host, $sql_user, $sql_pass) or die ('Error connecting to mysql'.mysql_error());; mysql_select_db($sql_db, $con) or die("Could not select $sql_db"); // To work in "utf-8": $query = "set names 'utf8'"; $result = mysql_query($query); // Query: $query = "UPDATE personaldata … | |
Greetings everyone i'm working on small php project and you help me a lot so far , what i want to know is how can i know the name of last column in a table i found away to know the last record in a column thats SELECT LAST(column_name) FROM … | |
Hey all, new to this site but i'm trying to call multiple values from multiple mysql databnases to show up in one table, but its throwing up an error at line 55, or [CODE]while($row = mysql_fetch_array($result));[/CODE] so i was wondering if I'm causing havoc with this statement here, im new … | |
Hello, If a user logs in with an email address and I have a session to save its email address so I can pass it along to other pages, how does it work if the user decides to update their email address in their account page? Will the session that … | |
Hey Guys... Brain is kind of dead on a late thursday afternoon in Cape Town, Can anybody please assist... what i am trying to do is: 1) in a table i have a column that is an array, its all in plain text 2) i have a table that has … | |
Hello! I have tried using this line of code: [CODE]$output = array(); exec('grep "some_keyword" some_file.txt',$output); echo "<pre>";print_r($output);echo "</pre>";[/CODE] Upon looking for a keyword that I was sure was in the file, the output was: [ICODE]Array ( [0] => [1] => )[/ICODE] Otherwise if the keyword was not in the file, … | |
Hi frens.. I have a requirement, where the user selects a option from dropdown, depending on the option selected, the next 2-3 fields must get populated from data coming from db(this must happen without refresh) so i decided to use ajax. I am getting a error which i am not … | |
Hey Guys, I have downloaded the [url]http://www.swis.nl/ga/[/url] google analytics class and it is working just fine. It shows a graph of things like pageviews and visitors in a graph per day. What I want is just a solid number like: Visitors Last 30 days: 1,2043 | Visitors This Month: 1,434 … | |
Hi everyone, I strongly believe that this topic will not just help me but everyone else using php. My question is how to manually change the settings where in the storage of the sessions is set to the database tables that we will create in the phpmyadmin (mysql)? I have … | |
Hi im new to php, so can some body help me out with this code? "Parse error: syntax error, unexpected $end in E:\EasyPHP-5.3.2i\www\Survey\register.php on line 79" [CODE]<html> <?php if (isset($_POST['button'])) { if ($button) { // get data $username = $_POST['username']; $password = $_POST['password']; $retypepassword = $_POST['password']; $email = $_POST['email']; if($username … |
The End.