39,320 Topics
| |
Hello, I have a page where i can upload images. Now i need to copy the uploaded images to a third party server. I have the details of that page. so can anyone help me. Thank You. | |
can it is possible when i upload my avatar successfully in upload.php page then auto refresh my mainpage.php after uploading. | |
Hi, I need help with PHP/javascript/mysql I am fairly new to this so excuse me for my bad programming skills. I have PHP page which has to update mysql table and HTML table onclick. It updates HTML table ok but as soon as I refresh page it updates all data … | |
please can you help me for define image size and width on this code [CODE] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])){ echo "Welcome ".$_SESSION['MM_Username']; echo "<img src="; echo mysql_result($userg,0,"avatar" ); echo "></img>"; } ?> [/CODE] | |
my code for show avatar but image not display . how to correct the code [CODE] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])){ echo "Welcome ".$_SESSION['MM_Username']; echo "<img src="; echo $userg; echo "></img>"; } ?> [/CODE] | |
Once again foreach lops are driving me mad. I have a simple multiple select list, where ther user can select one or all of the options [CODE] <form name="checkdata" id="checkdata" method="post" action="test.php"> <label> <select name="sport[]" size="6" multiple="multiple"> <option value="FOOTBALL">Football</option> <option value="CRICKET">Cricket</option> <option value="TENNIS">Tennis</option> <option value="SWIMMING">Swimming</option> </select> </label> <input type="submit" name="submit" … | |
Hi, I am working on a website and I am having trouble with the index bar. Perhaps this is the way it's supposed to be but I though a PHP meant only having to have one file for all the pages. So, When I click to a link that gets … | |
Hi folks, I have an existing shopping cart for a print company that allows users to proof labels select qty and send them to a cart. We'd get an email and we'd contact the client for an over the phone payment. We want to use Paypal and I'm curious if … | |
Hello, I'm fairly new to web development and I need a quick start to getting my website up. I'm planning on hosting the site and I don't expect much traffic as it's just for a start up company that I'm starting and I'm just using it as way of saying … | |
Hi. I'm not sure if this is possible or not, but I need to be able to SELECT * FROM all the tables in the database. Is this possible? Thanks! | |
Any chance the wonderful people here on daniweb could help me again with a loop? My apologies, loops are not my thing :| Basically what I'm trying to do is add a condition where on the last tweet (that is where the loop = $nooftweets), that tweet gets a different … | |
I'm looking for a good vanity url for my website... i wish to have the following type of url for my website:- [B][url]http://www.myweb.com/topic_name/123[/url][/B] where the original query string is [B][url]http://www.myweb.com/topics.php?title=topic_name&id=123[/url][/B] I tried to get the scripting from many websites, but none gave me want I wanted... So i've approached daniweb. … | |
[CODE] <?php include("connect.php"); echo "<h1>Register</h1>"; $submit = $_POST['submit']; $name = strip_tags($_POST['name']); $email = strip_tags($_POST['email']); $password = strip_tags($_POST['password']); $confirmpassword = strip_tags($_POST['confirmpassword']); $level = 0; if ($submit) { $namecheck = mysql_query("SELECT email FROM users WHERE username='$username'"); $count = mysql_num_rows($namecheck); if ($count>0) { die("Email address is already taken!"); } else if ($email&&$password&&confirmpassword) { … | |
Hello, I have installed a site locally (apache 2.2) and I am now adjusting the settings. I have set my include_path like this : [CODE]set_include_path(get_include_path() . PATH_SEPARATOR . PATH_LIBRARY);[/CODE] When I try to include files from directory beneath the include_path, I get a fatal error, and I get the include_path … | |
Hi all, I've pulled most of my hair out over the last few days and need some help. Description: I am creating a db application with dreamweaver and using php and mysql server behaviour. My database consists of losts of many to many tables that are necessary. I have created … | |
So I'm trying to create one central file for my navigation which is used across my site; however, some of the pages are in different directories. So, for example , let's say I have the following directories -- domain.com/ domain.com/dir1/ domain.com/dir2/ If I wanted to use the same include between … | |
Can someone present me an example which implements the three tier architecture in PHP. Let's say I have a class student with the fields ID and Name. I want to enter the student ID and Name through a web form and save it to the database. Could someone show me … | |
Nowadays i'm working very hardly on one prohect - mini social network with some advantages: You can generate tree style map ([url]http://goo.gl/ZP5yc[/url]) of all relationships of user. For example B, C, D are friends of A. On profile page of A when you click on "generate" button it shows A … | |
Hello friends, Well i just realized onmouseover on select options not working in IE/Chrome/safari. i think bec. IE/chorme doesnot support onmouseover. Can any one tell me the alternative of onmouseover? Thanks | |
upload profile image but upload only ram user pic .other user not able to upload there image .how to define every user has upload there prof. image . anyone help me for this problem [CODE] // Upload Form <?php include("connect.php"); $_SESSION['username']= 'ram'; $username=$_SESSION['username']; if(isset($_POST['submit'])) { //get file attributes $name=$_FILES['myfile']['name']; $tmp_name=$_FILES['myfile']['tmp_name']; … | |
Hi, I am using this drop down list.Loop started from 1920 to 2012.I am trying to put 1st value --select-- not 1920. Need suggestion [CODE]<select name="year" id="year" style="height: 22px"> <?php for($y=1920; $y<=2012; $y++) { ?> <option value="<?php echo $y; ?>" <?php if($y==$_POST["year"]) echo "selected"; ?> > <?php echo $y; ?> … | |
Hello all! I'm pretty much clueless as to how to write code. I saw the following script from [url]http://thinkdiff.net/facebook/users-demographic-data-from-facebook/[/url] so I decided to play around with it but I just can't get it to work. I created the table shown and also a file bd.php where it has the info … | |
I want to know where and when I have to use single quote and double quotes in PHP ? | |
hello, few days back i attended one interview. he asked write a query for get the results from these tables. there are two tables. one is for 'USER' and another is 'Properties'. in the user table there is 3 feilds user_id,name and subscription_id. in properties page property_id and user_id. here … | |
So I'm trying to figure out the best way (if possible) to combine these two stored procedures. Basically these are the same, the only difference is one is looking at a 'Spot' table, the other is looking at the 'Retail' table. However, in both cases the column count is the … | |
Hello, im in this domain: [url]www.mydomain.com[/url] i want from this domain to get the referer of the [url]www.myotherdomain.com[/url] there is some way do that? without write abit code in myotherdomain.com | |
How to automatically move an uploaded file to a new location and rename it just after upload | |
Hello guys! How to load content into the ckeditor? Pls look [url]http://ckeditor.com/demo[/url] for example. My code is below: [CODE] <textarea class="ckeditor" name="pagecontent" cols="100" rows="20" id="pagecontent"></textarea> <?php include_once "../Misc/ckeditor/ckeditor.php"; $CKEditor = new CKEditor(); $CKEditor->basePath = '../Misc/ckeditor/'; $CKEditor->replace("pagecontent"); ?> [/CODE] I want the content automatically loaded from MySQL database to the CKEditor … | |
Hi, How would i make something like on google maps where you type in an address/location and it will show you how to get there, and give you directions. I dont need a full code butwould like to knw what something like that is call/how to start off with it. … | |
So I've developed some code to pull the latest 8 images from my flickr feed; however, I'm having trouble with figuring out how to do what I'm trying to do. Essentially, I need each 4th image to have a different <div> class (this helps with margins and what not). Any … |
The End.