39,316 Topics

Member Avatar for
Member Avatar for stereoworld

Ahoy, I'm having a bit of trouble executing a stored procedure using PHP's SQLSRV package thing. It's pretty much just a simple select query, with the parameters being passed through a php (it's from a property search). SqlSrv is a tough nut to crack as docuemtnation is either non existent, …

Member Avatar for stereoworld
0
5K
Member Avatar for HasNor

Hi guys, Here I got a problem that my session expired is not secure I think.. I use this code, but user can click button back and go to previous page. Means session not destroy.. May I know why its happen. Within 15 min it will be logout but user …

Member Avatar for HasNor
0
168
Member Avatar for mtho

Hi Guys Im kind of new to this and i hope i will explain myself enough for you to understand my question. I have a little dynamic blog. I have a form (called add_post.php)i use to insert my articles (blog_enrty). Unfortunately i get an error saying "you do not have …

Member Avatar for antonioazevedo
0
129
Member Avatar for laura301019

Hi i was just wondering if anyone knew how to generate a drop down menu with sql. The section of code i have that has to be changed is <div> <span class="bold">Choose a lecturer:</span><br> <?php // note how the keyword "distinct" in the following query prevents duplicate values from being …

Member Avatar for diafol
0
108
Member Avatar for DaveyMoyes

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 …

Member Avatar for cereal
0
180
Member Avatar for spivey

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 …

Member Avatar for CoursesWeb
0
169
Member Avatar for lastgame2007

//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 …

Member Avatar for blocblue
0
99
Member Avatar for djexploit

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 …

Member Avatar for CoursesWeb
0
116
Member Avatar for khajvah

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 …

Member Avatar for khajvah
0
288
Member Avatar for ratazoit

#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 …

Member Avatar for Dani
0
702
Member Avatar for vaanipala

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 …

Member Avatar for trav04
0
219
Member Avatar for a_salted_peanut

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 …

Member Avatar for a_salted_peanut
0
162
Member Avatar for ostrados

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, …

Member Avatar for ostrados
0
994
Member Avatar for heshanm

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); ?> …

Member Avatar for IIM
0
251
Member Avatar for dualzNZ

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 …

Member Avatar for dualzNZ
0
111
Member Avatar for drogba123

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 …

Member Avatar for veedeoo
0
99
Member Avatar for saadi06

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 …

Member Avatar for veedeoo
0
465
Member Avatar for programmer12

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 …

Member Avatar for programmer12
0
381
Member Avatar for BenzZz

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 …

Member Avatar for BenzZz
0
501
Member Avatar for dyingatmidnight

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 …

Member Avatar for blocblue
0
163
Member Avatar for samidha

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 …

Member Avatar for pritaeas
0
217
Member Avatar for DaveyMoyes

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)){ …

Member Avatar for DaveyMoyes
0
446
Member Avatar for imolorhe

Please what is the best programming language and IDE that can be used in the development of WML web applications for mobile phones?

Member Avatar for peter_budo
0
65
Member Avatar for baig772

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??

0
73
Member Avatar for dany12

I need to retrieve a valeu from a select in html like on this [Link Anchor Text](http://www.saxoprint.co.uk/shop/folded-leaflets.aspx/) and calculate the price can anyone help me?

Member Avatar for baig772
0
419
Member Avatar for ebanbury

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 …

Member Avatar for Biiim
0
65
Member Avatar for Clarkeez

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?

Member Avatar for Biiim
0
361
Member Avatar for HemZone

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 …

Member Avatar for pritaeas
0
440
Member Avatar for jdgieschen

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 …

Member Avatar for joshmac
0
299
Member Avatar for mrcniceguy

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 …

Member Avatar for joshmac
0
164

The End.