39,321 Topics
| |
hi im following a tutorial for a system running on PDO and i have encountered a error can anyone check this out Fatal error: Call to a member function count() on a non-object in /home/matureco/public_html/classes/User.php on line 21 user.php public function find($user = null) { if($user) { $field = (is_numeric($user)) … | |
I'm experiencing an issue deleting data via PHP/MySQL query. The following is the error message: Delete product category failed. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 This is … | |
I have enabled the Facebook re-authentication for my site (done in codeigniter) when the user is visiting a specific page. Here is my code : $(window).load(function() { $("a.facebook_reauth_login").on("click", function(e) { var t = $(this); e.preventDefault(); FB.usingButton = !0; var n = base_url; FB.login(function(e) { if (e.authResponse) { FB.api("/me", function(e) { … | |
hello i have an online gallery i used blueimp plugin to get the good features in it like lightbox and touch support ... you can look on it here : [www.aburaga.com](http://aburaga.com/en/gallery) as you see its a big cakes gallery with many categories and pagination ( i built it with codeigniter/php … | |
Hello guys i want to ask how can i update my website, i want to make website for random posts updates but im confuzed in creating it. My question is how can i add new posts, do i need to create html files everytime i write new post and update … | |
How how do you change a value inside a variable, i'm having trouble executing this but can't find any examples for dummies. | |
hi all, I am trying to make an array that looks like this: Array ( [status] => [MERGE0] => removed@email.address [merge_fields] => Array ( [MERGE1] => James [MERGE2] => doe ) ) In my code, there is an undefined number of [merge_fields], so I am using the code below to … | |
Hi everyone, am trying to display the next record with next button and previous record with previous button from 2 tables. But when i click next there is no record displayed eventhough there are records in the database. The same thing happens with previous button. Please advise. Thanks a lot. … | |
hello, i need your help i have problem with my code php. i want to call and display data from database but this coding cannot working. this's my code php. **searchform.php** <?php mysql_connect('localhost','root','') or die("Connection Failed"); mysql_select_db("profil")or die("Connection Failed"); $query = "SELECT * FROM tblreport"; $result = mysql_query($query); ?> <select … | |
i have problem to delete a data using checkbox ..please help me this's coding dataprocessor.php <?php @ $db = mysql_pconnect('localhost','root',''); if (!$db) echo'Error: no connection database. Cuba.'; exit; } mysql_select_db('profil1'); $query = "select * from tblprocessor order by Name "; $result = mysql_query($query); $num_results = mysql_num_rows($result); echo "<center>"; echo "<table … | |
Hi All, I want to know wheather I can update (add new data) to a row in mysql database table without replacing existings data. Ex : There is a row that contains, ID Name City Groups 1 John Colombo gamers I want to add 'programmers' to John's Groups. ID Name … | |
Hy there... I have this problem and I don't know how to fix it....I didn't get help from the theme creator and I am asking your help:) In product list - list mode, I have the product with the ingredients and on the second row I want to put the … | |
Hi i am trying to execute .java file through php. please any one help. | |
Hi All I have some doubts while coding in java for the xml reading below is my xml format : <?xml version="1.0" encoding="UTF-8"?> -<ab_rsp status="ok"> -<itm title="United States" guid="04570A9A-6066-11E2-BB55-FF519035903F" type="country"> -<itm title="Arizona" guid="A83274AC-901A-11DF-A622-0C319DFF4B22" type="authority"> -<itm title="Academic Standards" guid="9935C580-C0DA-11DA-80AA-DCC515614119" type="document"> -<itm title="Technology" guid="E3E0AD06-FC32-11D9-8407-9AE6FB2C8371" type="subject"> <meta name="year">2000</meta> -<itm title="Readiness (Kindergarten)" guid="001DCFCC-2A74-11D8-A1A9-EB97E8AED672" type="grade"> … | |
I have a page running scrolling nav bootstrap theme which essentially means for me that I have multiple forms on one page. The problem I am having is whenever someone submits any of the 3 forms it sends data from all forms on the page. The code is below, I … | |
i am trying to fetch only image from database.In database the table (post_content) have image along with description i only want image.is it possible?Keep in mind that $row['post_content'] has image and decription. <?php $sql = "select * from wp_tableposts;"; $res = mysql_query($sql); while ($row = mysql_fetch_array($res)) { echo'Post Contant:'. $row['post_content']. … | |
I included my mail attachment code in php But it is not working correctly, Please give me a alternate solution which works in online <?php //define the receiver of the email $to = 'demo@gmail.com'; //define the subject of the email $subject = 'Test email with attachment'; //create a boundary string. … | |
Hi, Ive been follow the tutorial in the youtube . I need to upload images to my webpage but the code seem not working. It also doesnt not appear any errors from the code. Can someone please have a look at my code, please? <!-- dbase.php to connect between php … | |
hi all, i m working on the email validation i ve to check email id either it is correct or not but i cannt send mail on them. ie when i validate all email id client send newsletter and they should not bounce. thanx in advance | |
problem in getting live data in my web page search_ajax.js $(document).ready(function() { // Icon Click Focus /*$('div.icon').click(function(){ $('input#search').focus(); });*/ // Live Search // On Search Submit and Get Results function search() { var query_value = $('input#search').val(); $('b#search-string').html(query_value); if(query_value !== ''){ $.ajax({ type: "POST", url: "search_ajax.php", data: { query: query_value }, … | |
Hi, I'm trying to read a cookie that I've set with php with javascript. The cookie is for storing the username when logging in to a site. If the cookie has been set I want the focus in the inline popup to target the password field so that the user … | |
this is js code i am calling "is_loggedin" from ajax in php folder in login.php but it always gives undefined index action $(document).ready(function(){ $('.carousel').carousel({ pause: "false" }); }); $("#loginId").click(function(){ $("#modalLoginId").modal("show"); }); $("#registerId").click(function(){ $("#modalRegisterId").modal("show"); }); $("#login-btn").click(function () { var loginpasswordJSON = JSON.stringify({ "username": $('#login_username').val(), "password": $('#login_password').val(), }); alert(loginpasswordJSON); console.log ("Login Started"); … | |
this code doesnt save data in db as 1 when i click on yes button.. <table id="main" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Date</th> <th>Amount</th> <th>Approve</th> </tr> </thead> <tbody> <?php $i= 0; foreach($purchaseorder as $tdata): $i++; ?> <tr> <td><?php echo $tdata['pay_date']; ?></td> <td><?php echo $tdata['amount']; ?></td> <td><td><?php if ($tdata['approve']=='1') { ?> … | |
Hi all, my boss want me to send an calendar invitation event to Microsoft Outlook i have tried many time already and it still give me the result "This is no a valid internet calendar file" and here my code: [CODE] $vcal = "BEGIN:VCALENDAR"; $vcal .= "VERSION:2.0"; $vcal .= "PRODID:-//CompanyName//ProductName//EN"; … | |
Hi, It is a new for me. In a site, I have 10 to 15 menus. I want to know a user what are the menus he accessed , how many times he visited a particular menu from he logged in, and from which IP Address. How to know these … | |
hi guys i had a brig problem last night and i had to delete xampp and this then decided to delete all of the file for the website that i was creating...... (yes i know i need to back up!!) ive just re-installed xmapp but now it wont show the … | |
In local, mail works perfectly. But in online I got error like: SMTP->ERROR:Password not accepted from server:534-5.7.14 Please log in via your web browser 534-5.7.14 then try again. Learn more at 534-5.7.14 https://support.google.com/mail/answer/78754z190sm15009353oig-25 - gsmtp Message was not sent.mailer Error:SMTP Error:Could not connect to SMTP host. | |
Hy there! I have the following thing that I need to solve: In the Menu I have the Parrent Category Name and inside are 7 categories for food.... If I click on the menu on the parent category name it send me to the home page and open the menu. … | |
Warning: mysqli_query() expects parameter 2 to be string, object given in E:\xampp\htdocs\cadastro\cadastrar.php on line 46 Alguem pode me ajudar? <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Cadastrar</title> </head> <body> <?php include "config.php"; $nome = isset( $_POST['nome'] ) ? $_POST['nome'] : 'valor_padrao'; $sobrenome = isset( $_POST['sobrenome'] ) ? $_POST['sobrenome'] : 'valor_padrao'; … | |
Hi all, I am trying to select single record from each year of last ten year. Given below is the code what I am using now. But its taking too much time to get the result. Is there any way to make it fast? $sql_cond ="SELECT Close_Price FROM (SELECT Close_price … |
The End.