39,316 Topics

Member Avatar for
Member Avatar for omesanni

Hi, I am currently in my final year doing an eportfolio system as my final year project and this system will allow students to do things such as upload images, academic documents in say word,pdf files. Also it would allow students to set privacy issues to each document in their …

Member Avatar for cnwanjah
1
2K
Member Avatar for reco21

Hey. Im wondering how I would style the bottom row in a while loop. Can someone please help. How do I find the highest count and then if statement on my posts div. [CODE] <?php $query="select * from posts order by id desc"; $result = mysql_query($query); $i = 0; while($row=mysql_fetch_array($result)) …

Member Avatar for simplypixie
0
92
Member Avatar for asif49

I have a form with a text field where some text is entered and is sent across using the GET method. But instead of a traditional submit button I'm using an image and I want that to do the function of the submit button. A simple <a href="file.php"><img src="image"></img></a> can …

Member Avatar for simplypixie
0
582
Member Avatar for khess

Programming in PHP is fun and easy. It is a very powerful scripting language that takes simple HTML and turns it into a fully-interactive experience for the web user. Let's get started! Note: These tutorials assume that you have a working web server that's capable of displaying PHP code and …

Member Avatar for cwarn23
-8
1K
Member Avatar for geneh23

Hey everyone, So I've looked and tried to figure out how to get the user to "log in" before accessing a page. However I've seen where you send the user to the log in page if he or she has not log in but what about if the person has …

Member Avatar for geneh23
0
1K
Member Avatar for geekman92

i have this code here (simplified it a bit for this but you get the idea!) and i have assigned the name field of a select tag with a value of a variable so that when i click the Update button i can use _POST[name_var] to get the value of …

Member Avatar for geekman92
0
189
Member Avatar for mkab

I have a problem making a select tag in php code dynamic. I'm creating a website (homework) using php and connecting to an oracle database which has all the info needed. Each agency has a list of vehicules. I created a select option tag for agencies and for vehicules. I …

0
171
Member Avatar for luweegee

Hi Guys! I have a category name and a post_title in different table. i fetch all category and the post_title in my index let say my category name is "sport" then my post_title is all about sport now proceed to the code i used the query of inner join for …

Member Avatar for luweegee
0
371
Member Avatar for narekm

Hi there. I am developing an application in which I am using AJAX and PHP. Lets say from my initial.php files I am making request via AJAX to ajaxResponse.php file where I execute some code and interact with MySQL .Since I am handling with dtabase I am using my written …

Member Avatar for narekm
0
193
Member Avatar for martin11ph

Hi guys, I'm wondering if there is a way to solve this problem. Currently, I have an SQL statement that goes this way: [CODE]SELECT distinct name,id from list [/CODE] My understanding is that it selects the things that are distinct on both tables. Example: id name 1 Joe 2 Joe …

Member Avatar for martin11ph
0
152
Member Avatar for rohit.k2903

I have a page it is working fine but header function is not redirecting onto another page, it stuck. When I enter the url then its works.. Here is my code.. I changed my server recently [CODE] <?php include "../dbconnect/cnn_mysql.php"; if($_POST) { $doneurl=''; if(array_key_exists('doneurl',$_POST)) $doneurl=$_POST["doneurl"]; else $doneurl=$_SERVER['HTTP_REFERER']; if(true)//$doneurl=="") $doneurl="mykpojobs.php"; // …

Member Avatar for pzuurveen
0
274
Member Avatar for garyrichard

Hello everyone.. How to print web page in PHP without Header and footer when print button is clicked by user Thanks in advance

Member Avatar for KamranArshad
0
233
Member Avatar for kaosjon

Hi, i am trying to create my login script for my website, however when i enter my details it does not do anything, it just goes to the same screen. I have used the same script roughly as i used for another website of mine, but i cannot figure this …

Member Avatar for Treasurepet
0
294
Member Avatar for FBG

Hi everyone, I'm a beginner in working with PHP and I'm stuck with an annoying problem. With the help of a tutorial I've made a pagination for database results that works great. Now I'm trying to adapt the code and use the same pagination for a search-page on my website, …

Member Avatar for FBG
0
2K
Member Avatar for varoluscu_prens

Hi There; I have a problem during connection to a MS-SQL server. I copy the code there: [url]http://www.webcheatsheet.com/PHP/connect_mssql_database.php[/url] [CODE] <?php $myServer = "localhost"; $myUser = "Murat"; $myDB = "examples"; //Point 1 //connection to the database $dbhandle = mssql_connect($myServer, $myUser) or die("Couldn't connect to SQL Server on $myServer"); //Point 2 //select …

Member Avatar for varoluscu_prens
0
294
Member Avatar for andy106

Hi i have a foreach loop, but it is just showing everything in one long line, so I wanted to put it in a table like this <table> <tr> <td>data1</td> <td>data2</td> <td>data3</td> </tr> <tr> <td>data4</td> <td>data5</td> <td>data5</td> </tr> </table> here is my loop: [CODE]<?php foreach( $products as $product ) { …

Member Avatar for pritaeas
0
1K
Member Avatar for veledrom

Hi, I insert into database with Submit button in same page. After clicking submit, i want whole page to be refreshed. How can i do it? Code is below and where can i add something to refresh after insert. Thanks [code] <form name="form1" method="post" action=""> ..... <input type="submit" name="Submit" value="Add" …

Member Avatar for tarun305
0
203
Member Avatar for 1stoptutorials

Hey Everyone, hope all good. i have a problem with some php that is not randomly selecting an ip. I will try to explain my problem below. I have a state form [CODE] <select name="State"> <option value="0" selected="selected">Select a State</option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> etc..... </select>[/CODE] …

Member Avatar for samueal
0
373
Member Avatar for furlanut

i posted on this earlier and with forum help get my function code to work as I want when I test it. But when I insert it into the php document I only get errors. The function is: [CODE] <?php function fix_it($name) { $name=ucwords(strtolower($name)); echo $name; } ?>[/CODE] The document …

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for shahiduop

hi i display images from database, i want that there should be at most 4 photos in each row,when the number photos exceeds 4, it should displays the remaining images in next rows, the code i have written displays all images in the same row, i don't know how to …

Member Avatar for andy106
0
941
Member Avatar for RobotFX

Hi I'll get straight to the point. I'm using this code [CODE] $sex = @$_GET['v'] ; $sex= trim($sex); //trim whitespace from the stored variable $sex = htmlentities($sex); $age= @$_GET['age'] ; $age = trim($age); //trim whitespace from the stored variable $age = htmlentities($age);[/CODE] ... to get the age and sex credentials …

Member Avatar for Sorcher
0
250
Member Avatar for showman13

Hi All, I know this sounds like a simple issue, and it may in fact be, but I have never figured out how to give the admin of a website an easy to use ability to enter the body of an email that they want to send to their members. …

Member Avatar for showman13
0
96
Member Avatar for garyrichard

I want to create a dynamic drop down list box in which Locality is loaded on page load then Depending upon selected Locality... Sub locality , Ward will be Loaded... .. I done it by using form with 'get' method.. but I want to done it using post method.. so …

Member Avatar for decade
0
744
Member Avatar for BorisBox

I get this error im trying to setup my PTC site :S Parse error: syntax error, unexpected T_CASE in /home/a9378945/public_html/index.php on line 72 [CODE]<?php # CHECK SESSEION COOKIE if($_SERVER["SERVER_NAME"] != 'localhost'){ if($_SERVER["REQUEST_METHOD"] == 'GET'){ if(strpos($_SERVER["HTTP_REFERER"], 'google') !== false){ if( isset($_COOKIE['r']) || isset($_GET['r']) ){ setcookie('r', '', time()-3600); header("HTTP/1.1 301 Moved Permanently"); …

Member Avatar for diafol
0
136
Member Avatar for nagarjunrajen

Im using IIS7.0 for webhosting, Images and CSS Styles are not displaying in my website. P.S: Images and Styles are displayed only in my system(That too in IE9 only and not in other browsers) and not in other nodes.

Member Avatar for diafol
0
52
Member Avatar for McLaren

Hello, I am having trouble in starting apache. I had vista before and it worked well. Now I installed win 7, and have trouble. When I want to start, I get messages: Busy... Apache started [Port 80] I tried turning off skype, because it was causing problems often. But didn't …

Member Avatar for McLaren
0
3K
Member Avatar for calebcook

Hi. I'm trying to make a site where people can purchase zip files. The zip files will be made on-the-fly. My question is: [B]how do I restrict access to the files? I need to make it where the zip file can only be downloaded once, and it can only be …

Member Avatar for calebcook
0
185
Member Avatar for sammry

I have a registration form where I need to prevent people entering bad usernames. For example, people when they enter their username as virus, then the form should not be accepted. How can I prevent bad usernames in my Registration forms. Is there any function to do the same? Please …

Member Avatar for diafol
0
707
Member Avatar for bangla

Hi, [CODE]<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html> [/CODE] I have the code. Where would i save welcome.txt file. Will I save it on desktop or server side same directory as what i am currently working on? Thanks.

Member Avatar for nalini@121
0
74
Member Avatar for stanley87

Hi,pleasure to meet you all.I wanna to ask how to write a javascript code to connect with php api authentication located at my server(eg. [url]www.mydomain.com/api/index.php[/url]). 1.I wanna put a javascript code to call the api authentication function at my website server so that other people can access through the api …

Member Avatar for Stefano Mtangoo
0
352

The End.