38,150 Topics
| |
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'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 … | |
Hi Guys. Please help me.. I am familiar in passing form values to another page using submit button.. But what i need now is to pass the values of the form using the href link. please help me. thanks a lot. <form name="pass" action="validate.php" method="post"> <input type="text" name="Form1"> <a href"revalidate.php">revalidate</a> … | |
i have a forum wherein a user can create a topic,delete and edit a topic. and i have a admin panel that can delete a topic,edit and locked a topic or closed. I'm done in delete,edit and create what I'm looking for is how can i lock the topic if … | |
Hello, I want to ask how to retrieve the value of javascript variable in PHP, like this: [code]<script type="text/javascript"> var data = "12345"; </script> <?php $phpVar = $data; ?>[/code] thanks | |
Hi, I've finished fixing a website for a client. However, he has a form that is not validating and I'm not exactly sure why. Here are some of the errors - Missing Fields Your form located at does not work because you forgot to include the required "rec_mailto" field within … | |
Hi iam using CI 1.7 and doctrine 1.2 and trying to make some search. But default search with indexes for me is not enough, because search keywoard must exect with indexed word. Is there any chance to make that more flexible where doctrine will detect with similar meanings not the … | |
Hi friends, In one of my project I had a text box and I want to store its content to database. I blocked mysql injection with "mysql_real_escape_string" command. But I need to add some formating button in that field. ie italics, bold, font size and link field. From a site … | |
Dear ajax expert, [URL="http://www.w3schools.com/php/php_ajax_php.asp"]http://www.w3schools.com/php/php_ajax_php.asp[/URL] Refer to the link, using the sample, I'm able to use php ajax to populate 1 text box which I've already pre-define (not using "echo '<input type='text'..") -- the info came from a table e.g. Search: [jo ] Name: [John doe] sql --- select name from … | |
Dear All, I have a question again with my very old PHP project code(it was very dirty code) :-). It is a simple Dictionary Search program. Currently when the Search Data not found in the mysql database, it just show the blank result. How can i add some String for … | |
Hi, I am trying fsockopen in localhost. I am trying to access live server file. I have created two files in live server. 1) Dynamic PHP file which produce XML 2) Static XML file Now, Once the fsockopen connection is success and i am trying to get the dynamic xml … | |
Hi, I have two questions 1. Is it possible to add short cut keys in my php application, show that the user can access different menu items using them? 2. How can I print something directly to a printer without showing them on screen using php? |
The End.