39,326 Topics

Member Avatar for
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
290
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
145
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
170
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
269
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
181
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
222
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
893
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
248
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
428
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
245
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
547
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
919
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
129
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
414
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
290
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
159
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
62
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
87
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
33
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
245
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
275
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
275
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
604
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
248
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

The End.