39,402 Topics

Member Avatar for
Member Avatar for sigvewinter

Hi guys! I have a website where users can follow each other. I want to create a stream/feed where posts and updates releated to friends will show. So in "theory" something like this: if friend1 and friend2 == true - > show posts from entries database else - > don't …

Member Avatar for diafol
0
113
Member Avatar for gogs85

I need websites for ads people put some free ads in my website. Example: sell car or mobile. Do you know some php script or opensourse?

Member Avatar for TonyG_cyprus
0
62
Member Avatar for Dani

We use CodeIgniter custom session data to handle our login (among many other things). Our settings are as follows: $config['sess_cookie_name'] = 'danisession'; $config['sess_expiration'] = 0; $config['sess_expire_on_close'] = FALSE; $config['sess_encrypt_cookie'] = TRUE; $config['sess_use_database'] = FALSE; $config['sess_table_name'] = 'ci_sessions'; $config['sess_match_ip'] = FALSE; $config['sess_match_useragent'] = FALSE; $config['sess_time_to_update'] = 300; ... $config['csrf_protection'] = true; …

Member Avatar for Mark_k
0
2K
Member Avatar for coolrosy

it is possible to write more than one ajax request on a single page?can any one help me?thanks in advance

Member Avatar for diafol
0
123
Member Avatar for ajay09payal
Member Avatar for IIM
0
181
Member Avatar for gogs85

I have error i have web site where want to users register this is code from index.php : <?php include ('include/header.php'); if (isset($_GET['id'])){ switch ($_GET['id']) { case "wallpaper": include ("include/wallpaper.php"); break; case "ringtones": include ("include/ringtones.php"); break; case "themes": include ("include/themes.php"); break; case "apps": include ("include/apps.php"); break; case "aboutus": include ("include/aboutus.php"); …

Member Avatar for gogs85
0
700
Member Avatar for fheppell

I need to connect to the wikipedia search API. Here is an example response <api> <query-continue> <search sroffset="10"/> </query-continue> <query> <searchinfo totalhits="169717"/> <search> <p ns="0" title="Intelligence quotient" timestamp="2013-04-04T05:15:12Z"/> <p ns="0" title="Test" timestamp="2013-02-23T01:15:05Z"/> <p ns="0" title="TeST Gliders" timestamp="2012-09-22T11:05:05Z"/> <p ns="0" title=".test" timestamp="2013-02-25T14:48:22Z"/> <p ns="0" title="Test cricket" timestamp="2013-04-02T18:49:54Z"/> <p ns="0" title="Test (assessment)" …

Member Avatar for fheppell
0
189
Member Avatar for rolanduk

Hy All I run a PPD website, so the members have to complete a survey before they can download a file. But after the survey they got this error, please see the pics. http://filemonster.org/images/97f448bf6398174f45e04ffc8ac964bb.png I didnt edit anything and check the file structure and didnt see any bad coding. I …

Member Avatar for rolanduk
0
445
Member Avatar for B0716L

Does anybody know any good websites to learn PHP? I design websites in html, css, and javascript... but I want to be able to do more by working with PHP.I have checked out Codeyear, and w3schools. So if anybody could just help me out that would be great =)

Member Avatar for sandeepek
0
106
Member Avatar for EmilyJohnson

Hello Everyone, Recently I have made a e-commerce site by using woocommerce (Wordpress plugin). I want to know how to integrate google checkout in the project. I have successfully integrated google checkout for single product manually. But I want to enable google checkout for whole site product. Any type of …

Member Avatar for EmilyJohnson
0
910
Member Avatar for sagisgirl

hi everyone, i've got quite similar with displaying user's information. i've 2 form(K8 Form and K9 Form). To displaying user's information in K8 Form, i used the method with the way you guys taught me. and then after the user fill up the K8 Form, the K8 Form information will …

Member Avatar for masterjiraya
0
361
Member Avatar for eltonpiko

hi all i have a script on an account on my server. i need to get access to phpmyadmin to retrive its database. the problem is that the domain for that account has expired. the only way for me to get access, is to log in with the root account …

Member Avatar for eltonpiko
0
172
Member Avatar for momonq1990

</head> Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <body> <script type="text/javascript"> function show_confirm($uid) { var r=confirm("Press a button!"); if (r==true) { <?php header(location: sample.php?id=$uid)?> } else { alert("You pressed Cancel!"); } } </script> </head> <body> <input type="button" onclick="show_confirm($uid)" value="delete command " …

Member Avatar for masterjiraya
0
291
Member Avatar for brainfo

how can i create multiple files into multiple zip at once. For eg : I have file1, file2 file3.... etc. to file1.zip, file2.zip2 file3.zip..... at once..is it possilbe..

Member Avatar for masterjiraya
0
149
Member Avatar for kiLLer.zoh_1

i having these two annoying errors plz help me out how to fix these. Warning: array_push() expects parameter 1 to be array, boolean given in D:\xampp\htdocs\simple_blog\inc\functions.inc.php on line 31 Warning: array_pop() expects parameter 1 to be array, boolean given in D:\xampp\htdocs\simple_blog\index.php on line 20 <?php include_once 'inc/functions.inc.php'; include_once 'inc/db.inc.php'; $db …

Member Avatar for masterjiraya
0
174
Member Avatar for Daniel Claff

hey everyone, actually i am creating a website in which data is queried from mysql. in mysql table one of the attributes is in form of hyperlink. When i am displaying the result it is in normal text but i want a hyperlink as the result is displayed so please …

Member Avatar for masterjiraya
0
271
Member Avatar for skliz

I am generating time with a sql script $query = "select current_timestamp as time"; When my system time is in 24 hrs format it returns a 24 hr format time. but when it is 12 hrs format it returns a 12 hr format time. But I want my time to …

Member Avatar for diafol
0
184
Member Avatar for branding4you

Ok so I saw the few posts here, none do what I need mine to do, and for some reason it does not work. I upload CSV files to webserver (bank statement) 5 fields - it inserts into a MYSQL DB. Numbers dates are all formated correct etc etc. This …

Member Avatar for branding4you
0
224
Member Avatar for Jfunch

I was hoping to find someone with shopping cart and paypal experience. I'm learning how to integrate paypal with my website, but I'm having touble getting logging in my mock buyer paypal account from the paypal checkout page. My payment button on my site seems to work fine and takes …

Member Avatar for LastMitch
0
898
Member Avatar for Daniel Claff

hey please help me actually i have used the command as part of program <?php echo "<a href= echo '$Geneprocess'>$Geneprocess</a>";?> getting a hyperlink bt when i am clicking over it it gives an error for all the hyperlink.... the error is Object not found! The requested URL was not found …

Member Avatar for Squidge
0
251
Member Avatar for pritaeas

Here's my base class and class for the unauthenticated DaniWeb API calls. Not every method has all features implemented yet, and it's not been fully tested either. Here's how to start using it: include 'DwApiBase.class.php'; include 'DwApiOpen.class.php'; $dwapi = new DwApiOpen(); $result = $dwapi->GetMemberActivityPoints(94719); $result = $dwapi->GetMemberEndorsements(94719); $result = $dwapi->GetMemberReputationComments(94719); …

Member Avatar for pritaeas
2
435
Member Avatar for hbm11

How would I add a birthday section to this section of code? $tbl_users = "CREATE TABLE IF NOT EXISTS users ( id INT(11) NOT NULL AUTO_INCREMENT, username VARCHAR(16) NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, gender ENUM('m','f') NOT NULL, country VARCHAR(255) NOT NULL, avatar VARCHAR(255) NULL, ip …

Member Avatar for Squidge
0
146
Member Avatar for AARTI SHRIVAS

is it possible to show alert box when mouse is on start button or on task bar or on menu bar means other place except website if any one have any idea about this plz reply me my client want this functionality in exam website

Member Avatar for LastMitch
0
246
Member Avatar for diafol

OK, as promised, here's an updated 'quick(!) and dirty' class for retrieving and setting data via the Daniweb API. It allows the extraction of data based around: # DATA RETRIEVAL & SETTING # ## non-OAuth ## * forums * articles * posts * members * activity points * endorsements * …

Member Avatar for LastMitch
2
563
Member Avatar for jessicam93xx

Im developing a web chat and was wondering, when Im displaying recent messages how do I get individual usernames to display. For example: when i log in as a user and send a message, it shows that its from me, but when I log in as a different user, all …

Member Avatar for skliz
0
924
Member Avatar for kiLLer.zoh_1

$e = retrieveEntries($db,$id); i m passing db connection and entry id to function and function returning mein one when i check with print_r $e is not returning please help me out here is the function function retrieveEntries($db,$id=NULL) { if(isset($id)) { $sql ="SELECT title,entry FROM entries WHERE id =? LIMIT =1"; …

Member Avatar for skliz
0
131
Member Avatar for cssweb

hello, how are you, i have an idea and want to apply it. i have two tables the first one is called topics and the second is sections these sections contains these columns sections: section_name | sec_id topics: topic_name | topic_id and i want to select every section with their …

Member Avatar for cssweb
0
428
Member Avatar for jessicam93xx

Hey, I was wondering how do I add foreign keys in php MyAdmin? I tried changing the storage type to innoDB, but the option is not available to me ? any ideas ?

Member Avatar for IIM
0
291
Member Avatar for skliz

In my project I have a folder called library. the folder contains essential scripts that other php files call from so I am trying to secure this folder so that no body would be able to access the directory from the url. But I dont know how to do this. …

Member Avatar for diafol
0
162
Member Avatar for skliz

Please can any body help me with a simple script on how to write an ajax longing in php. I doing some on chat and have been using the old polling. so I want to switch to long pooling. so the browser would only display messages when there is a …

Member Avatar for pritaeas
0
1K
Member Avatar for Wailintun

Hi! everyone, Can someone tell me about this in drop down menu? http://www.siteexperts.com/dhtml/ch9/chapter/samples/map1/switch.htm Thanks for your time.

Member Avatar for diafol
0
65
Member Avatar for Gloak

I am designing my very own first web page. It's a real estate page where some users will add open house information while others can pull the info out. The code for the database and the web is very good (after two months...) and inserting and getting data is sweet. …

Member Avatar for LastMitch
0
1K
Member Avatar for civirol02

<?php $startdate = date('Y-m-d H:i:s'); echo $startdate."</br>"; $offset = strtotime("+1 day"); $enddate = date("Y-m-d H:i:s", $offset); echo $enddate."</br>"; $newamount = $availablequantity - $quantity; if($enddate > $startdate) { if($availablequantity != 0) { $sql = mysql_query("UPDATE size SET quantity ='$newamount' WHERE id ='$item_id'") or die (mysql_error()); } //$sql = mysql_query("UPDATE size SET …

0
89
Member Avatar for CHELKAL

i want to know phonegap to php connection. example $ajax({ } with json then php form return result i need a code for both phonegap html and php

Member Avatar for LastMitch
0
37
Member Avatar for tpickett

I have created a function that creates .xml files from input from a form provided in another script and saves the file in a network location. I got this working correctly, however, when i tried to convert it into a wordpress plugin (creating the .xml file from post meta data …

Member Avatar for LastMitch
0
2K
Member Avatar for hbm11

Hi I'm having got a problem with some of my code and can't figure out what it is. I'm receiving the following error: Parse error: syntax error, unexpected T_STRING in /home/a1907007/public_html/index.php on line 11 This is my code: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>31seconds</title> <link rel="icon" href="Images/Favicon.ico" url="image/x-icon"> <link …

Member Avatar for hbm11
0
247
Member Avatar for shahai.ali

hi i wan to add my `.xml` files into `database` and into the directory `uploads` . i have following done into the `php` if(isset( $_FILES["f_name"]) { $path = ""; if(file_exists("uploads/" . $_FILES["f_name"]["name"])) { echo $_FILES["f_name"]["name"] . " already exists. "; } else if($_FILES["f_name"]["type"]!= "text/xml") { echo "invalid type is tried …

Member Avatar for Daniel Claff
0
276
Member Avatar for ACRDepos

Hello, I'm trying to validate specific fields in my PHP form, such as FirstName, LastName, etc. I've tried several techniques so far from various articles to confirm these fields and nothing seems to work at the moment. Here is the code: <?php $host = "xxxxxx"; $username = "xxxxxxx"; $password = …

Member Avatar for Octet
0
276
Member Avatar for phoenix_2000

Heya all, I'm using a special cakePHP plugin for displaying a fully fledged calendar. ([CakePHP full calendar plugin](http://bakery.cakephp.org/articles/silasmontgomery/2011/03/02/cakephp_full_calendar_plugin_2)) By clicking on an appointment in the calendar, the user is redirected to an edit screen, where he or she can change the date, time and a lot of other related data. …

Member Avatar for LastMitch
0
610
Member Avatar for pomy

Hello you all, I'm new here.. Hope it will become a good place for me. People are asking questions on bbPress support forums, but bbPress support looking inactive after 2.0 announcement. That's why I moved to DaniWeb. Let's see how developer community of DaniWeb will help me :) -- If …

Member Avatar for dstzloi
0
1K
Member Avatar for aisha.edris1

hi everuone i have website but i cant connect to database for login & register how can i connect? here my code <?php $connect=mysql_connect("184.154.164.202","ahmedhay_royal","xxxxxxx") or die("couldnt connect to data base:".mysql_error()); mysql_select_db("ahmedhay_login",$connect) or die ("couldnt find data base"); ?>

Member Avatar for aisha.edris1
0
249
Member Avatar for joeyliew7

I want to display pdf file in browser. odo1.php has the file to select the date. read.php will read the date from odo1.php. i have this files 2013-03-26_SAP.pdf, 2013-03-05_SAP and more to come. the name of this file is combination of date and outlet. when i change the `readfile($filename);` to …

Member Avatar for dorco
0
2K
Member Avatar for hindu times

Hi there, I'm wanting to display Tweets as blog posts in my website. I'm currently using a Wordpress plugin called Twitter Tools ([http://wordpress.org/extend/plugins/twitter-tools/](http://wordpress.org/extend/plugins/twitter-tools/)) to do this, and it works to an extent. So far I can get it to pull my tweet into the content of a post and publish …

Member Avatar for hindu times
0
259
Member Avatar for dalilice

Hello, I'm tring to develop a mysql news scroller for my website. The problem that i'm facing is that i need to have multiple mysql querys joing together beceuase i have multple categories like: select * from news where category LIKE '$cat1' order by id desc limit 1 select * …

Member Avatar for diafol
0
323
Member Avatar for amith_ami

hi all pls help me... im trying to display categories and its sub categories... but i dont know how to display subcategory.. ijust only know to display the category.. i created two tables in the database named tbl_category and tbl_subcategory in both table the field cat_id is common.... here is …

Member Avatar for amith_ami
0
6K
Member Avatar for daniel36

i have created a contact form in which captcha is inplemented.the captcha value is stored in session.i am storing value of session in a hidden input field due to ajax.but when i reload the page the session value in hidden field comes ,old value.here is my form- <?php session_start(); ?> …

Member Avatar for Webville312
0
174
Member Avatar for abhi10kumar

What kind of security measures I have to take to develop Core PHP and MySQL projects ? I used session and encruption, which are basics, there are any security technologies for Core or advanced PHP ?

Member Avatar for broj1
0
225
Member Avatar for Venter

<html> <head> <script> function change(x) { var str=x; <?php $name=?>str; } </script> <?php echo $name; </head> <body> <form> <select name="customers" onchange=change('this.value')> <option>Varma</option> <option>Phani Varma</option> <option>Prabhas Varma</option> <option>Kishore Varma</option> </select> </form> </body> </html> so when ever user change the select,the value should be passed to php & it must be echoed …

Member Avatar for minitauros
0
262
Member Avatar for Martin C++

Hello, I made a class to connect with database but now I have run into a little problem. I need to get the id of last inserted row, but I dont know how to accomplish it. Here is my connection class: <?php class Connection{ public function __construct($config){ $this->mysqli = new …

Member Avatar for Martin C++
1
155
Member Avatar for Venter

<html> <head> <script> function change(x) { var str=x; <?php $name=?>str; } </script> <?php echo $name; </head> <body> <form> <select name="customers" onchange=change('this.value')> <option>Varma</option> <option>Phani Varma</option> <option>Prabhas Varma</option> <option>Kishore Varma</option> </select> </form> </body> </html> so when ever user change the select,the value should be passed to php & it must be echoed …

Member Avatar for radhakrishna.p
0
248

The End.