38,023 Topics
| |
Hi All, I have the following scrip that uploads a image to a destination folder on my server. What I am trying to do is "rename" the uploaded file and update the link in the back end database. The file uploads and stores in the correct folder, but what it … | |
I have a php foreach loop that displays a span element with a name in it, and an associated input field for each item in the array being iterated through. There is an onclick so that the value is passed to the associated input field: <span onclick="setAuthor(this)">name</span> Here is the … | |
//time Am $a=$_POST[am]; $a1=$_POST[am_min]; $tmeAm=$a.':'.$a1; //time AM //time Pm $p=$_POST['pm']; $p5=$_POST['pm_mins']; $s=':'; $times=$p.':'.$p5; $ttime=$tmeAm.'-'.$times; //days $days=$_POST['days']; for($i=0;$i<count($days);$i++) $dd=$days[$i]; mysql_query("insert into tc_handle set sid='$_POST[ass]', sub_id='$_POST[lvl]', secid='$_POST[secs]', section='$g_sec[name]', year='$g_sub[year]', code='$g_sub[code]', date='$cur', acad_id='$now[acad_id]', time='$ttime',room='$_POST[rm]', ** days='$dd'-------------------------- having problem here, it only saves the last checkbox in my form, why is it???** ")or die … | |
Hi, i have i site where you can get points when you click on an image. I need to have a code that automatically gives points to the user that clicks on the image. this is the mysql query to give the points. mysql_query("UPDATE `members` SET `points` = '$points1' WHERE … | |
Hello people, I am future web designer and want to learn PHP and javascript, i already know a little javasctipt but i have never touched PHP. I need 2 books: one for PHP and one for javascript, money is not a problem... I saw some books "PRO JS for web … | |
#I need a php script that fetches a registered users info from the Mysql database and prints them on the page when a user visits his/hers profile page via a link showing his name, like facebook # * Heres the code that id like to show as the profile pag … | |
Hi, How do I prevent my user from submitting an empty form? When I do that, I'm getting a HTTP 404 not found error in IE and a blank page in Firefox. None of the validation errors are showing up. I even tried putting an else stmt in the StudentsController's … | |
Hi all If anyone can provide some light on this one it would be very much appreciated! I have spent a few hours on this one trying to figure out why, when i try and submit a form via HTML to a PHP script it seems to fail and not … | |
Hi all, hey guys could you please help me in this issue: i get warning message whenever i try to run my login form Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\db.php on line 10 unable to connect to the database i am using xampp, … | |
Hi all, I have small problem regarding my student registration form. When i enter data and submit always below message is displayed irrespective of whether the admission_id is exist or not. "Admission numberThis student has been already entered to the system" **newStudentRegistrationForm.php** <form name="form1" method="post" action="newStudentRegistrationFormvalidation.php"> <?PHP $con=mysql_connect("localhost","root",""); mysql_select_db("student_management",$con); ?> … | |
Hi all I have created a dynamic signatre system for my site and i would like to add the members avatar based off sig.php?username=USERNAME but when i output the file the avatar is massive how can i resize the image from say 100 x 80 to likes of 24 x … | |
Hi guys, How can i read a specific line of the text file for example: user1 : johnson number of parts1 : 5 number of parts2 : 10 user2 : andy number of parts1 : 10 number of parts2 : 10 and i want to get the total number of … | |
Hi, I am facing a problem in transferring session.I am developing a website and I want to integrate a forum in the website.I need to take the session of the user from my website to the forum. Is there any way of transferring my session values to the forum. Thanks … | |
Hi, I am trying to setup a cron job on my web hosting server. I want the php file to run every 15mins. Can some one tell me if I set it up right or not? Also, since there time is 3 hours behind me I want to use my … | |
Hi, I've been reading into testing my PHP code particularly unit testing using PHPUnit. The problem I have is that most of my code is procedural with not even many functions. I have read that unit testing is more suitable for OO PHP however i have seen that many people … | |
Hello all, so I was tasked with looking into a way to rewrite our dynamic url's to something more user and seo friendly. I have absolutely no exprience in this area so it's been a lot of googling and trial and error. However; I've reached something of a wall in … | |
I am a new user in PHP and currently developing a blogging web-site using PHP. I have designed a simple design of Create Blog page using HTML syntaxs, created database fields in MySQL as 1) Blog-Id 2) User-Id 3) Blog-title 4) Blog-text. Now if I am supposed to give interface … | |
Hi everyone, I need a wee bit of help with the following. I am calling all country names from a db table and echo-ing out each country name in a list format. $query = "select * from countries order by Country Desc"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ … | |
Please what is the best programming language and IDE that can be used in the development of WML web applications for mobile phones? | |
Hi all i am working on a third party recruitment site in wordpress. Site basically acts as intermediary between candidate and employee. Is there any plugin to manage employees and employers in wordpress?? | |
Hi I've read through the posting regarding 'actions on a link' but as my function is not in javascript I didn't want to confuse the conversation. I was wondering how/if it is possible to call a function from a text link, button, image etc via something like this: <?php if … | |
Hello I'm not sure how this is possible but I want to enter a wildcard(?) into a php variable.. like this, <?php if($_SERVER['HTTP_HOST'] == '*.domain.com') { //do something } ?> Notice the * I basically need it to match if its any subdomain of domain.com Possible? | |
Hi, I'm getting this error Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Adult\index.php on line 155 Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\Adult\index.php on line 261 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Adult\index.php on line 301 … | |
Alright everybody! Here's a whopper for you. I've looked over this for the longest time and just can't figure it out. I want to update my database with the user's information when they save the html form. I'm guessing there's like a quotation mark or comma misplaced or something, and … | |
Hey guys, i need Your suggestions(help). i created a social network website not long time ago,now i want to put the News feed in the home page like the Facebook one. That is if a friend posts status,add friends,uploads photos,video,join groups,Commented something etc to appear in the home page. Please … | |
I am working on a website where users can post items. I would like to provide them a custom analytics for ther items. So that the item owner can figure out how many people visited their item. I did some research in Daniweb, most of suggestion were made about google … | |
okay....my cookies and session varibles are not working on my handheld...but its working on my computer...i have checked my handheld using phpinfo(), it does accepts cookies...in desperate need to idea...kindly guide me please invoice.php <?php session_start(); //starting session $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password … | |
I am writing a site where I will have a news feed of updates on the front page. I have a table that will store the posts. Its fields are post_id, topic, body, and dateposted. I would like for it to search through the table and get the ten latest … | |
I am new in PHP developing a site,Online Graduate Curriculum Vitae System, and a have the following forms to complete with PHP,: -Personal infomation -Desired employment -Occupational field -Work Experienc -Education and Training -Languages -Personal skills and competences -Additional information and aennexes ...then you save your complete CV that can … | |
well Guys i am not sure if what i want is atleast possible or not. what i want is to write a script in php, which will crawl through all my hard drive for all files and folders irrespctive of the file type and pick the emails address up and … |
The End.