39,388 Topics
![]() | |
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..... | |
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']; … | |
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. | |
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 … | |
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. | |
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 … | |
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 … ![]() | |
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="**********"; // … | |
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 … | |
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. … | |
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? | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 | |
<?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 … | |
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 … | |
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 … | |
<?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 … | |
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 | |
Is it possible to create web-based instant messenger written in PHP? I heard python would be appropriate for it. | |
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...... ![]() | |
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 = … | |
<?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 … | |
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 … | |
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 … | |
i'm just very new in php & its my 1st post here.. having a small problem to pass the login error msg to LOGIN.PHP from check login page. here is the code of **checklogin.php** file: if($count==1){ // Register $myusername, $mypassword and redirect to file "welcome.php" session_register("myusername"); session_register("mypassword"); header("location:welcome.php"); } else … | |
I am trying to add a input box that has the phone section in it. I did add it in.. But it doesn't load in the message that I get in the email.. if i change around the code. I can get just the phone number to show in the … | |
Hi, i have successfully made my registration and login page. Now i need help. When i click on login by using specific username and password that i had created, i want my next page to show details about that person, this details are stored in Mysql when they register and … |
The End.