39,316 Topics

Member Avatar for
Member Avatar for ratanji

hi i want to upload and post my pdf material in my site and its my personal institute material so i dnt want to give the download option for that file so how it is can anybody help me ???

Member Avatar for ratanji
0
153
Member Avatar for newbie26

hey..can someone help me?? i have a html/php file with a command button and when i clicked it, it will run the exe file of a vb6 application. how can i do this?can i have sample code?? thanks in advance.

Member Avatar for newbie26
0
453
Member Avatar for mionazraelmiranda

How can I avoid negative numbers from being inserted in my database table? i have a code that works but will not prompt until the value itself in the table is below 0. $nega = mysql_query ("SELECT * from `bgl` where product_code = '$product_code' and stock > 0"); $row = …

Member Avatar for mionazraelmiranda
0
226
Member Avatar for code739

Hi guys, Im just confuse...heres the situation Im having photo uploads in php.., before uploading temporary file will be created my question is where can you find the temporary file, @the web server(where your php app is runnin) or @the client PC(where the uploading session is done) thanks in advance.....

Member Avatar for code739
0
227
Member Avatar for darl.liew

Hi, I need help with this... can anyone help me?? Plssssss Im getting Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in line 10 What's wrong with it... can't seemed to find the error. Im trying to make my blog display the video. <?php $file = $_GET['file']; $image = $_GET['image']; …

Member Avatar for darl.liew
0
5K
Member Avatar for edsweng

Is it possible to embed variable in longtext data field? **For instance:** the field name is "description" and it contains... The date is $date_var. **In PHP/MySQL Query:** $date_var = date('m/d/Y'); echo $row['description']; **The output should be:** The date is 10/14/2012. please advise.

Member Avatar for edsweng
0
106
Member Avatar for davBro

Hi can someone help me out, please. I have been using the same file upload script on three websites that I manage, with great success. But recently I have encountered some errors when accessing the file upload form on my locahost server on my own computer server. This has never …

Member Avatar for davBro
0
408
Member Avatar for andyy121

i have create a html page with log in,log out,register ect... i wont to create a admin page for this,for example if i wont to change images colors border color add image or something else can somebody suggest me what i have to do,give me some ideas.

Member Avatar for andyy121
0
127
Member Avatar for colorockies1975

Hello experts, I'm new to PHP/Javascript. I am working on an Online examination system for prospective candidates. This is so as to learn object-oriented programming for my improvement. Story So far: I have the mechanism in PHP/Javascript/Mysql to create an online test. This lets the user select the kind of …

Member Avatar for sukhoi1027
0
558
Member Avatar for Clanstrom

Hi guys. It's been a third day now, I am having problems with header. I have many included files which output echo before the header, so since I can't output them after the header, I used ob_start(); and ob_flush(); but still I am getting header problems. If you wanted to …

Member Avatar for diafol
0
148
Member Avatar for vishalonne

Hi Every Body I am facing problem in retreving the data from my mysql table I want to use prepared statement with mysqli for security reason. Here is my code Please give a guidance - <?php $host="localhost"; // Host name $username="**********"; // Mysql username $password="**********"; // Mysql password $db_name="**********"; // …

Member Avatar for adam.adamski.96155
0
220
Member Avatar for anna.piperides

Dear community, May I ask you for your help please. I have two pages: item page, where customer selects required size and basket page, where this size is displayed alongside other information. All the data is passed OK, but 'size' data is not. Here are the pieces of code that …

Member Avatar for anna.piperides
0
161
Member Avatar for squeak24

I am currently in the process of creating a open source dating script. I am nearly there. Just one thing that I can see that is an error now. When a user completes there profile, other users can see the answers, but the person who the profile belongs to can't. …

Member Avatar for squeak24
0
209
Member Avatar for vizz

I have 12 field form One field is file (How to validate for **.doc**, **.docx**, **.pdf**) How to send all information and file as email? I found complicated codes. Can anybody help with simple one?

Member Avatar for vizz
0
151
Member Avatar for marvolo1300

Hi. This code should be functional but I can't seem to figure out why this won't work. Thank you in advance. <?php function e($f){ echo ($f); printf("\r"); } e("setup"); $user->setup(); /* globale variablen setzen */ global $phpbb_root_path; global $phpEx; global $db; global $config; global $user; global $auth; global $cache; global …

Member Avatar for diafol
0
578
Member Avatar for dalilice

Hi, I'm rather new to php so...I use simplepie to parse rss feed but i want to filter them by keywords i made this code : $feed = new SimplePie(); $feed->set_feed_url(http://website.name/rss); $feed->init(); $feed->set_cache_duration (3600); $feed->set_timeout(30); $feed->handle_content_type(); $countItem = 0; foreach ($feed->get_items() as $item){ $checktitle = $item->get_permalink(); //Regex keyword filter $pattern …

Member Avatar for Squidge
0
379
Member Avatar for ehpratah

Hi need some assistance here im having an error connecting my database to the server online,the thing is it is working fine in localhost but when i uploaded it just wont work.. i already change the necessary string to match the server configuration online from config.php this is in the …

Member Avatar for ehpratah
0
199
Member Avatar for mmcdonald

Hey all. All I need is to collect every `id` from `servers` where `active ='1'` and then cycle the results in a loop right until the end for each individual id. (I've written this on daniweb, might be typo's or errors. I'm not interested in code errors it's the process …

Member Avatar for cereal
0
206
Member Avatar for laxy_m

Hi!! Please guide me. How can I send variables from a PHP script to another URL using POST without using forms and hidden variables? Thanks Laxy

Member Avatar for shafiphp
0
491
Member Avatar for apanimesh061

<?php include 'simple_html_dom.php'; function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } $url = 'http://rural.nic.in'; $outhtml = get_url_contents($url); $html= str_get_html($outhtml); foreach($html->find('li')as $item) { echo $item."<br>"; } //print_r($outhtml); ?> I wish to print only …

Member Avatar for adam.adamski.96155
0
95
Member Avatar for yeeitsneo

i have a problem with editing and updating my data on my database. i cant pass or echo the data from the database into text boxes. heres the php script. // this script is for displaying the information oof the logged in member. and contains the link to edit the …

Member Avatar for mmcdonald
0
293
Member Avatar for hiyatran

How would I be able to do this? When I click on a button, it would send some text, say, "Check this out!!" to my [B]Facebook[/B] and [B]Twitter[/B] account. I checked everywhere on the web and and this forum but can't find anything on it. Can someone give me some …

Member Avatar for JorgeM
0
48
Member Avatar for kaz_devil

<?php include once('config.php'); $link=mysql_connect(DB_HOST,DB_USERNAME,DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db(DB_DATABASE); $query = "INSERT INTO".data_feedback."(First Name,Last Name,Email,Telephone,Comments) VALUES ('". $_POST['firstname']."','". $_POST['lastname']."','". $_POST['email']."',". $_POST['telephone']."','". $_POST['comments']."')" $data = mysql_query($query); if($data) { echo"Feedback is recieved"; } else{ echo"There is an error"; } mysql_close($link); ?> Ive got a syntax error …

Member Avatar for Szabi Zsoldos
0
84
Member Avatar for achiman

can anyone please tell how to write a simple php code that will convert dollar, euro and yen to pounds. im using a form that will prompt customers to enter a amount they want to convert. thanks in advance

Member Avatar for PatrikIden
-1
4K
Member Avatar for Sam367

Is it possible to create web-based instant messenger written in PHP? I heard python would be appropriate for it.

Member Avatar for rabby.chowdhury.14
0
63
Member Avatar for vinay7868

can any body explain how to manage sessions in the pages that without login no user must access any page and if tries to access using browser address bar then redirect it's location to login page.....pls do reply what to check to manage this by using session......

Member Avatar for Zagga
0
169
Member Avatar for yeeitsneo

there seems to be a problem with adding records to my database. heres the code. //this redirects the logged in user to the create php whereas the idnum of the user is already //echoed in a textbox. <?php $result1 = mysql_query("select * from info where idnum = ".$_SESSION['valid'],$conn); while($row = …

Member Avatar for HunainHafeez
0
216
Member Avatar for andyy121

<?php require_once("start.php"); require_once("myconfig.php"); require_once("db.php"); require_once("kontrollo.php"); require_once("mylib.php"); require_once("datavalidation.php"); if (!isset($_REQUEST["id"])) { exit("which category??"); } $category=$_REQUEST["id"]; ?> <html> <head> <title>GarantSig Artikull i ri</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="../css/travel.css" rel="stylesheet" type="text/css"> <link href="../css/style.css" rel="stylesheet" type="text/css"> <script language="JavaScript"> function validate() { if(document.myform.title.value==""){alert('Verini nje titull');return false;} if(document.myform.subtitle.value==""){alert('Verini nje Nentitull');return false;} if(document.myform.rendi.value==""){ alert('Verini nje rendesi');return …

Member Avatar for andyy121
0
327
Member Avatar for handry.wiranata

i've problem with login, if login always appear error 1.Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in.... 2.Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in.... coding php: <?php include ("config/koneksi.php"); include ("config/library.php"); $pass = md5($_POST['password']); $login = mysql_query("SELECT * FROM user WHERE id_user='$_POST[username]' AND …

Member Avatar for Bachu
0
211
Member Avatar for daniel36

Hello sir, In my project i need to display online user in sandbox.For it i have made a login_status field in users table.When any user login to website it becomes true and if a user logout then it's value changed to false.but if a user leaves website without logout then …

Member Avatar for daniel36
0
112

The End.