39,326 Topics
| |
I have a problem with mysqli syntax. I really can't see what the problem is in this code. I dont know much about it. When i use it on a function like this public function Somefunction() { $query=mysqli_query($this->db,"SELECT title,url,img FROM table WHERE status='1' ORDER BY id DESC")or die(mysqli_error($this->db)); while($row=mysqli_fetch_array($query,MYSQLI_ASSOC)) { … | |
hi, I am creating a form for user to update their details which is saved in the database. So far i can show their details in the form where i have a submit button but the updating part doesnt work(it doesnt update at all). here is the code: [CODE] <html> … | |
Hello everyone, I have been using xampp for my web app developments for quite a while now. Usually after the app development is done, I upload my files to paid hosting. Now, this is the case I'm designing a school's accounts managements software which will be used on an intranet. … | |
Hi there, I follow this tutorial for my web app. link: http://www.thesoftwareguy.in/creating-multi-user-role-based-admin-using-php-mysql-bootstrap/#comment-4583 Can anyone give me idea to do this same app using codeigniter.? Thanks. | |
I was wondering if anyone could tell me how I would approach building a music search engine using php and mysql. I have a design for my Music search engine which I did using html css on Dreamweaver and I have some mp3/audio files on my computer and all i … | |
There is a problem with static variables and functions in how it is used by apps and frameworks in PHP , they are used as global functions or parameters while this is by far what they mean. It is easy to write the same functional or even procedural code in … | |
Here is my php code. It is working fine. <?php ........ $cdt1 = Date("Y-m-d H:i:s"); $last_seen = "2015-05-20 12:15:20"; $datetime22 = new DateTime($cdt1); $datetime11 = new DateTime($last_seen); $interval1 = $datetime11->diff($datetime22); echo $interval1->format('%y years %m months and %d days %H hours, %i min and %s sec '); ......... ?> It is … | |
Anyone can create bigbluebutton class by php. If no then you can get help from me. | |
hi all i have following a tutorial for a groups system for my site and if i click on groups link nothing happens if someone can see whats happening Sorry for all the lines but im stuck :( see code below for that # php code # <?php $thisPage = … | |
Hi friends i am facing some url redirection issue in my .htaccess. please help me to fix it. **my url is** domainname.com/article.php?url=test.html **my expected URL is** domainname.com/test.html **.htaccess** Options +FollowSymlinks RewriteEngine On RewriteRule ^([a-zA-Z0-9-/]+).html$ article.php?url=$1 RewriteRule ^([a-zA-Z0-9-/]+).html/$ article.php?url=$1 **Server** nginx | |
hi ive followed a w3 schools form works fine for submission but if i refresh browers i get the following error Error: INSERT INTO userprofile (postcode, town, firstname, pfirstname, sexuality, psexuality, height, pheight, bodytype, pbodytype, tattoos, ptattoos, piercings, ppiercings, drinking, pdrinking, race, prace, smoker, psmoker) VALUES ('', '', '', '', … | |
hello danifriends. i'm developing my website with php and i want to make dynamic header, so i create i file header.php with logo and menu and the page had all html doctype and and head tag for link with css and js..., i include the header in my page using … | |
Hi, Reading CodeIgnitier documentation I saw some statements having this form: $this->someword->somefunction(); and I don't know what is that. Is someword an multi-dimensional/associative array? I know that if I create an instance of a class I can access its properties and functions with a single -> operator or with :: … | |
I have a PHP class file A with a static variable, I have one class file B that uses that class A and instantiates its static variable. i wish to access Class A's ststic varibale from another class C in another file. How do i do this. I tried this … | |
I am trying to force log out an inactive user from my CMS. The timeout value is stored in a value called PREF_TIMEOUT in my database. Ive borrowed this code and modified it a little. The code does not seem to be doing anything. Does anyone know of a better … | |
I see in phpbb template system it has <!-- PHP --> code <!-- ENDPHP --> tags in template and you can include php code inside them <!-- PHP --> = start tag of php <?php <!-- ENDPHP --> = ?> I want to use something else in mustache php, like: … | |
Hello, I have a little problem , I am currently developing an application with PHP and MySQL , this application should show me more persons, each person must have one or more services and each service can be inversely associated with several people, for this I have 2 tables, one … | |
Iam doing a website in wordpress and i want to send registration data of frontend users to my database. Please assit. | |
Executing Code upto insert users: <?php require('session.php'); require('encrypt.php'); require('mail.php'); $username = $_POST['user_name']; $password = rand(10000, 99999); $name = $_POST['name']; $password = encrypt($password, 'ganesh'); $email = $_POST['email']; $terms = $_POST['terms']; $address = $_POST['address']; $mobile = $_POST['mobile']; $dob = $_POST['birth_year'] . '-' . $_POST['birth_month'] . '-' . $_POST['birth_day']; $ip = $_SERVER['REMOTE_ADDR']; $url … | |
Hi, I have a string that can look a little different from time to time. String Example 1: ((823584X80X998.NAOK == "1")) String Example 2: ((823584X80X1001.NAOK == "1" or 823584X80X1001.NAOK == "2" or 823584X80X1001.NAOK == "3")) And I have this array with matching key (i've shortened the array for readability) ( … | |
Good Morning All, I have a question that I touched on a couple years ago, but then determined that I didn't need, so never followed up on it. Now I need it... (of course) I've searched on the subject of creating PDFs in PHP, but haven't been able to locate … | |
Hi, For a dropdown , I display from one table, While Editing How to show the selected value in that dropdown. <select name="dropdown"> <option value="">--Select--</option> <?php $a=mysql_query("Select * from student whre status='0'")or die(mysql_error()); $b=mysql_num_rows($a); if($b >0) { while($row=mysql_fetch_array($a)) { ?> <option value="<?php echo $row['st_id']?>"><?php echo $row['name'] ?></option> <?php } } … | |
I am having trouble getting my file upload to work. Up to now it has been working good, I recently had to upload a backup version of my website to the online server, but now the upload script does not work and, I suspect it may be a file upload … | |
I'm relatively new to mediawiki and has just started last week. Anyone can point me to the correct direction of getting the top article (based on number of likes) in mediawiki? I've already implemented the fblikebutton extension on every article and managed to retrieve the number of likes for each … | |
Hi I am trying to redirect a url in the htaccess file. RewriteEngineOn RewriteRule ^wakins.co.uk$ http://www.watkins.co.uk [R=301,L] and I have also tried this RewriteEngineOn RewriteRule ^/wakins.co.uk$ http://www.watkins.co.uk [R=301,L] Thanks in advance D | |
Dear iam new in PHP , i have downloaded a free code template which has a <div class="container"> with heading <h2>Featured Projects</h2> it show the featured pictures i want the same as Featured properties below it ,but when i copy the code it dont work please help me out how … | |
I have DB s_id sn_id sec_id 1 1 1,2,3 Based on sn_id i want to display sec_id and sec_name. I want to convert into json array format like this [{"sec_id":"1","sec_name":"A"}, {"sec_id":"2","sec_name":"B"},{"sec_id":"3","sec_name":"C"}] Any body helo to get json array format | |
I have function to generate activation key when user creates new account. How to check generated key is not generated in the past for other user **Database fields** username password email activationcode **Function** function random_string($length) { $key = ''; $keys = array_merge(range(0, 9),range('A', 'Z'), range(0, 9), range('a', 'z')); for ($i … | |
Hey, all I've got this script that runs a simple 'select' query: function set_selectAssoc($usernumber) { $this->execute = $this->connection->query("SELECT * FROM `link-UsersToGroups` WHERE userID = ".$usernumber); $this->num_rows = $this->execute->num_rows; $this->results = $this->execute->fetch_assoc(); if ($this->num_rows == 0) { $this->response_code = 2; $this->response_msg .= "You don't currently seem to belong to any groups … |
The End.