39,323 Topics

Member Avatar for
Member Avatar for mmcdonald

Hi all, the following PHP MysSQLi query works in XAMPP but not in WAMP: <?php include('../../inc/config.php'); $mysqli = mysqli_connect($config['host'], $config['user'], $config['pass'], $config['db']); $responseQuery = "SELECT tr.id as trid,tr.topicid,tr.usersid,DATE_FORMAT(tr.date_added,'%b %d, %Y %H:%i') AS format_date_added,tr.date_added,tr.response,tr.status, t.id, t.usersid as creatorid, u.id, u.authuser, u.memtype, u.fn,u.ln,u.avatar FROM topic_response tr LEFT OUTER JOIN topic t ON …

Member Avatar for Atli
0
888
Member Avatar for patk570

Hello everyone, I am trying to update a database as well as insert information into the database and this is what I created to do so. Only, I am getting the email and its not updateding the database...any ideas? <?php if ($_POST['submit']) //if the Submit button pressed { $con = …

Member Avatar for patk570
0
138
Member Avatar for Sandra_1

Hello, How can I pass a root directory to variables? I am working between two servers (dev, and live) and would like an dynamic solution. I tried several flavors of this (below), but keep getting errors (unexpected T_VAR...). class myClass { var $currentDir = __DIR__; var $my_xml_file = $currentDir."data/my.xml"; . …

Member Avatar for diafol
0
127
Member Avatar for logicslab

Dear friends, I am using Wordpress 3.6 for my current development . But my client need a system which has independent layers i.e 3 layers such as * Service Layer * DB Layer * View Layer from my analysis I can found that Wordpress has a **Theme ---- View+DB layer …

Member Avatar for gusano79
0
419
Member Avatar for lewashby

PHP Parse error: syntax error, unexpected end of file in /var/www/ET/password/changepassword.php on line 27 Can someone please tell me what I'm doing wrong in the following code to get the error above? <?php $db = new SQLite3('./users.db', SQLITE3_OPEN_READWRITE); if(!$db) { echo "Could not open/access DB"; } else { $userPsswd1 = …

Member Avatar for lewashby
0
521
Member Avatar for kenleycapps

Ever feel the default session handling is insecure? Or do you just want some originality to show off? Well, here you are. A custom, MySQL-based session handler. It supports base64_encoding and MySQL storage. Note: I haven't tested this thing in months so I don't know how well it'll work : …

Member Avatar for pritaeas
0
446
Member Avatar for mmcdonald

Hey hey! I'm about 70% into completing a web application that will allow our clients to white label our service. They can then in turn resell the service to their audiences without any involvement from me or my colleagues. Now, something I need to figure out is how to allow …

Member Avatar for JorgeM
0
240
Member Avatar for logicslab

Dear pals, I am using the tutorial code of "xmlrpc in wordpress" in URL [Click Here](http://wp.tutsplus.com/tutorials/creative-coding/xml-rpc-in-wordpress/) , but it shows result as blank in my local wamp but it work fine on another local pc. I attach the code and preview of the problem. Please check and help me. code …

Member Avatar for logicslab
0
343
Member Avatar for gil857

Howdy All, I have a wordpress website where the featured image is being used as a thumbnail on the front index page. Here is the code I'm using: <?php the_post_thumbnail( array(100,75), array('class' => 'alignleft' ) ); ?> It works fine on a specified category post where I'm using the same …

Member Avatar for bradly.spicer
0
208
Member Avatar for kosar latif
Member Avatar for pritaeas
0
8K
Member Avatar for Priti_P

Hello, I have done code for scheduling the event in php. As I schedule it, it goes to user's calender as an invitation. If I reschedule it, then new invitation goes with same matter with new values. But I found it is not overwriting the previous one. How can I …

Member Avatar for Priti_P
0
119
Member Avatar for php_php

0 down vote favorite i want radio buttons remain selected across all pagination. For taht I have collected the checked value in pagination at the top of page. But it is not working well. What is wrong with this code ? This is how i get selected value of radio …

Member Avatar for pritaeas
0
191
Member Avatar for Donima4u

Please help, i get this error when i run my script on my testing server Notice: Undefined index: id in index.php on line 5 Notice: Undefined offset: 1 in index.php on line 8 but on my actual website, it displays a blank page, with the background colour, how do i …

Member Avatar for cereal
0
522
Member Avatar for dannybarh

Is the error i get trying to connect to my db. Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2005): Unknown MySQL server host 'http://www.fleethabari.com/' (1) in /home/www/fleethabari.com/inc/config.php on line 2 Unable to select database: Unknown MySQL server host 'http://www.fleethabari.com/' (1) Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in /home/www/fleethabari.com/inc/config.php on line …

Member Avatar for pritaeas
0
668
Member Avatar for Ramakrishnan.L
Member Avatar for chrisschristou

hello fiend i need help i have create a lot of pages with same methode and work fine on local but never work online i want know if oder way exist when i have data in form and i clic on submit data insert into table and users directly navigate …

Member Avatar for broj1
0
394
Member Avatar for NitsPatel

hello, How I can not display Uncategorised category from post when not select any category in Wordpress Thanks in Advance nits**

Member Avatar for NitsPatel
0
296
Member Avatar for boney

Hello, My HTML+JS : <head> <script type="text/javascript"> function passList() { var p=[]; $('input.first').each( function() { if($(this).attr('checked')) { p.push($(this).attr('rel')); } } ); $.ajax( { url:'process.php', type:'POST', data: {list:p}, success: function(res) { $("#result").html(res); } }); } function passType() { var q=[]; $('input.second').each( function() { if($(this).attr('checked')) { q.push($(this).attr('rel')); } } ); $.ajax( { …

Member Avatar for boney
0
225
Member Avatar for gogs85

I have problem with css when use this htacces code RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /index.php?id=$1&page=$2 [L] mode_rewrite work ok but css is not :( How to fix?

Member Avatar for cereal
0
3K
Member Avatar for shasta90

What option for cURL needs to be changed in order to retrieve the XML content, as I have added the curlopt option for xml content but all that happens is the JS error of "no data received" <?php $agent = $_SERVER["HTTP_USER_AGENT"]; $timeout = 5; // set to zero for no …

Member Avatar for shasta90
0
406
Member Avatar for lewashby

In the following program the first strpos() function is working just just fine when searching for a matching email address in the text file as long as it's on the first line but the second entry it jumps streight to the else clause and echos "Unknown user name" even though …

Member Avatar for pixelsoul
0
172
Member Avatar for lewashby

(Linux) In the following program I'm trying to process the file accounts.txt line by line searching for a match to the form supplied variable '$email'. The function fgets() is stepping though the file line by line correctly but my attempts at using preg_match() and or strpos() to determine if that …

Member Avatar for lewashby
0
151
Member Avatar for cussel

hy all, how to compute eigenvector from array bellow? I am confused in make nested loop and temporary for compute eigenvector please help me!!! $data = array( array(1,-0.52836,0), array(-0.52836,1,-0.19845), array(0,-0.19845,1) ); $data2 = array( array(1), array(1), array(1) ); echo "<pre>"; //print_r($data2); echo "</pre>"; for ($i=0;$i<count($data);$i++) { for ($j=0;$j<count($data[$i]);$j++) { $R2[$i][$j] …

Member Avatar for cussel
0
247
Member Avatar for lewashby

(Linux) In the following code all I'm trying to do is open a file but evertime I run this script the fopen function jumps right to the die() function. Any ideas? The file accounts.txt does exist in the same directory, and I also tried refrencing the file via ./accounts.txt . …

Member Avatar for lewashby
0
161
Member Avatar for shrikanthnk

hi kindly help me here..... i have written code like this to display **hi** when page gets loaded. please correct it this code so as to display message. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#b").load(function(){ alert("hi"); }); }); </script> </head> <body> ......... ...... .... </body> </html>

Member Avatar for JorgeM
0
127
Member Avatar for PerplexedB

Consider my method : static public function mysqldate($c,$f = 'd-M-y'){ // date is supposed to be in dd/MMM/yyyy format. // returns a date in mysql form try { $result = "'" . DateTime::createFromFormat($f,$c)->format('Y-m-d') . "'"; } catch (Exception $e){ $error = "error in mysqldate <br />" ; $error .= "date …

Member Avatar for PerplexedB
0
129
Member Avatar for chrisschristou

hello my Daniweb friend i'm trying to get data from database where only users is connect so i user this code i get a errot on navigator i got this errot on navigator : Parse error: syntax error, unexpected '=', expecting ',' or ')' in /homepages/0/*/htdocs/domainname.com/*/*.php on line 145 this …

Member Avatar for chrisschristou
0
103
Member Avatar for chrisschristou

hello Dear friend i can't explain cause i dont' know why, i'm using the code below to insert data into a myql table but i work fine ust today i get a error colum subtotal can't be null... i' have try too much thing but still same i delete the …

Member Avatar for chrisschristou
0
219
Member Avatar for patk570

I have a database and I have 3 different values that I want to count, to say that You have x amount of tickets open. I am created an array $array = array( 'Pending', 'Waiting on parts', 'Waiting for customer response' ); and a query string $result = mysql_query("SELECT COUNT(*) …

Member Avatar for diafol
0
182
Member Avatar for shrikanthnk

Hi All, Below code gives me exact result which I want.. output gets displayed at div # result which is as per design. Now i wouldlike to know is there any method to display result in textbox? if so please help me. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> { …

Member Avatar for diafol
0
581

The End.