39,402 Topics

Member Avatar for
Member Avatar for indiansoil

I want to test my ASP or PHP scripts by hosting my web pages. Could anybody tell me where can I find a free web hosting service so that I can use ASP or PHP scripts and do my practice of database connecvtivity using ASP/PHP?

Member Avatar for Suetan
0
699
Member Avatar for akhoa168

Hi everybody! I have a trouble with my work. I have a file data CVS, and i want to cover to a table in mysql. But in my file CVS have some special character : /t, ", Please help me! Thank a lot! mysql>load data local infile 'price.csv' into table …

Member Avatar for subashvns
0
74
Member Avatar for tie372

I am making a website and I do not want it to have any URL extensions on it. For instance, when all links are clicked on instead of going to blah.com/bleh, the page goes to blah.com. How would I achieve this using php? With hidden forms? I will post an …

Member Avatar for MattEvans
0
93
Member Avatar for rickarro

Does anyone know if its possible to update an item on a web page by using a form. Lets say I have a web page that has several different headings with a paragraph of text under each heading. I would like the owner of each heading to be able to …

Member Avatar for rickarro
0
126
Member Avatar for drlego

I am total newb here, so bare with me. In the code below I would like to make the output of the 'url' an actual link. <td><?php echo $row_thisone['url']; ?></td> Can someone please tell me the proper syntax. I have tried many things with no luck. Thanks in advance! Here …

Member Avatar for somedude3488
0
2K
Member Avatar for zanzo

hello, i learned recently how to use hidden variables, and its features. but i have some problems when i use more than 3 values :S this is a portion of the code: [code="PHP"] <?php $hidden = $_POST['action']; if ($hidden==0) //present the form, note the value of hidden { ?> <form …

Member Avatar for zanzo
0
3K
Member Avatar for lordx78

[code=php] <?php session_start(); session_unset('YourVisitID'); session_destroy(); header("location:index.php"); ?> [/code] I've use the code above to destroy my session after login, but instead of destroying it, It creates another session called 'PHPSESID'. I'm using XAMPP localhost. Please advise.* * page redirection works fine

Member Avatar for nav33n
0
1K
Member Avatar for kings
Member Avatar for nav33n
0
164
Member Avatar for Suetan

This is just something that I'm working on for my own website. Could someone please check this over real quick to see if I have any major errors in it? [CODE=PHP]<?php /* index.php created by Suetan Start Date: Wednesday January 9, 2008 Project: RPGCMS Version: 0.0.1a */ define('IN_RPGCMS', true); $root …

Member Avatar for Suetan
0
205
Member Avatar for dami06

Hi Guys, I'm trying to create a webpage where it's meant to get some information which i put in the database and then show in the webpage but it's not getting the information. Could you please take a look at my code and tell me if there is a problem …

Member Avatar for dami06
0
180
Member Avatar for JeniF

Hello all, I have a form that contains checkboxes to update a database with either "Yes" or "No" based on the user selection. The check boxes are in an array with the values set to a "LinkID" example: [code=php] <?php //find the user's assigned links $rowlink=$row_rsUpdate['LinkID']; mysql_select_db($database_mambo, $mambo); $query_rsAssignedLinks = …

Member Avatar for JeniF
0
320
Member Avatar for lordx78

[code=php] <?php // connection to MySQL server mysql_connect('localhost','root',''); mysql_select_db('administration'); if (isset($_POST['submit'])) { $loginUsername=$_POST['username']; $loginPassword=$_POST['password']; $MM_redirectLoginSuccess = "validated.php"; $MM_redirectLoginFailed = "admin.php"; $MM_redirecttoReferrer = true; mysql_select_db('administration'); if(empty($_POST['username']) && empty($_POST['password'])) { die('<div class="error_up">Both field was blank</div> <br><br><div class="footer_padding"> &copy; Copyright Cycle Tracks <span>®</span></div> '); } if(empty($_POST['username'])) { die('<div class="error_up">Username field was blank</div> <br><br><div …

Member Avatar for nav33n
0
88
Member Avatar for Scottmandoo

Im quite new to php and mysql but ive figured out how to upload and display content from my database, but im still facing quite a lot of problems. - First how do you display an image uploaded in the database? - Second how do you make the content only …

Member Avatar for Scottmandoo
0
163
Member Avatar for carobee

hi is it possible to adjust the page width according to the output of the page so that the user doesn't have to scroll to see the end of the page?

Member Avatar for Suetan
0
151
Member Avatar for jino

Dear all,, I have a problem with searching and pagination... For searching i use SQL_CALC_FOUND_ROWS and Inner Join .. the problem is that when i use the $limit variable in the end of the search query.. it is not working properly... $limit='LIMIT'.($pageno-1)*$rows_per_page.','.$rows_per_page; I am giving the query below.. $query_data=" SELECT …

Member Avatar for somedude3488
0
93
Member Avatar for scorpionz

Hi this is Scorpionz Can any have an idea... How to Upload image,file in PHP and store it in Database.... and How to call it to view on Front End means to my Html Page Web page.... and How to Specify Space that Uploading File size Any Help will be …

Member Avatar for somedude3488
0
347
Member Avatar for Vai

Here are the tables in my database. [code] music ( id int(11) NOT NULL auto_increment, catid int(11) default NULL, song_title varchar(255) default NULL, artist varchar(75) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1; [/code] Category [code] category ( catid int(11) NOT NULL auto_increment, name varchar(30) default NULL, PRIMARY …

Member Avatar for Vai
0
154
Member Avatar for abhi287

Hi i m trying to get the values from database and put it into the select options.. i m using code- [code] <?php $con = mysql_connect("localhost","cdccpl","d123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("cdccpl_aus", $con); $result = mysql_query("SELECT * FROM bak_bill_cust"); while( $row = mysql_fetch_array( $result ) …

Member Avatar for somedude3488
0
118
Member Avatar for lordx78

[COLOR="Green"]admin.php[/COLOR] [code=php] <?php // connection to MySQL server mysql_connect('localhost','root',''); mysql_select_db('administration'); if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $loginPassword=$_POST['password']; $MM_redirectLoginSuccess = "validated.php"; $MM_redirectLoginFailed = "admin.php"; $MM_redirecttoReferrer = true; $errors = array(); if(empty($_POST['username'])) { $errors[] = 'You think whom going to fill up the USERNAME for you?'; } if(empty($_POST['password'])) { $errors[] = 'You think whom …

Member Avatar for lordx78
0
516
Member Avatar for kishou

ok i'm trying to know what function where you can see if it contains something. like ex. does anyone know of a function like this? [CODE]if (func_contains('a') { //action } else[/CODE]

Member Avatar for somedude3488
0
107
Member Avatar for myth3_16

Hi all, I was wondering if anyone could help with this one. I've devloped an upload form where my customers can upload their own pictures to use in my personalised gifts business, you could call it 'Create Your Own' Range of products. I want to be able to store the …

Member Avatar for myth3_16
0
735
Member Avatar for john_aa

Hey guys wondering, if you are using Adobe CS3 and do you think, if there are other alternatives to CS3. Would you recommend CS3 or wait for something else.

Member Avatar for sagedavis
0
125
Member Avatar for JeniF

Good day all! I have been working on a project that requires me to to the following: Select a user from a list, on submit go to next page. The next page contains the session variable $id of the selected user. On this page, I am assigning menu permissions. I …

Member Avatar for nav33n
0
215
Member Avatar for ultratut

<?php function extract_url($main_url){ $cek_url = parse_url($main_url); $prefix_url = $cek_url['scheme'].'://'.$cek_url['host']; $f = fopen($main_url,"r"); $inputStream = fread($f,65535); fclose($f); if (preg_match_all("/<img.*? src=\"(.*?)\".*?>/i",$inputStream,$matches)) { foreach($matches[1] as $link){ if(!eregi('mailto:|javascript:|ymsgr:',$link)){ if(eregi("http://",$link)){ $url = $link; } else{ $url = $prefix_url.'/'.$link; } if(eregi('PHPSESSID',$url)){ $url = explode("PHPSESSID",$url); $url = substr($url[0],0,-1); } $output[] = $url; } } } return $output; …

Member Avatar for nav33n
0
274
Member Avatar for dami06

Hi Guys, I have a code which seems to be working fine. I have used zend to debug it but there is nothing wrong with the code. The problem is i'm creating some webpages on my laptop and when i try to create a group the page tells me " …

Member Avatar for dami06
0
72
Member Avatar for joker40

I am working on Final year project and it is going smoothly untill i face this problem in my contact form [COLOR="Green"]Data has been submitted to [email]ibrahim_1_0@yahoo.com[/email]! Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() …

Member Avatar for joker40
0
118
Member Avatar for Auzzie

Right well i thought that seeing as i am creating a complete application i thought i would write my own db class just done a little bit of it and i am getting a nice error of [QUOTE]Fatal error: Call to undefined function mysql_connect() in *:\****************\database.engine.php on line 61[/QUOTE] it …

Member Avatar for Auzzie
0
98
Member Avatar for lordx78

[code=php] <?php # Script 9.1 - login.php // Send NOTHING to the Web browser prior to the setcookie() lines! // Check if the form has been submitted. if (isset($_POST['submitted'])) { require_once ('mysql_connect.php'); // Connect to the db. $errors = array(); // Initialize error array. // Check for an email address. …

Member Avatar for lordx78
0
72
Member Avatar for lordx78

[code=php] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Cycle Tracks Portal</title> <style type="text/css" media="all">@import "images/style.css"; </style> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss/" /> <?php $date = ('l dS \of F Y'); ?> </head> <body> <div class="content"> <div class="topmenu"> <div class="date_"> <?php echo $date; ?> </div> </div> [/code] …

Member Avatar for nav33n
0
165
Member Avatar for lordx78

[code=php] $query = "SELECT username, password FROM adminprofile WHERE username='$u' AND password=SHA('$p')"; [/code] Just wanted to know what is the function of [COLOR="Green"]SHA[/COLOR] in the code above. I took this from a book and they don't have an explanation for that particular part. Please help.

Member Avatar for lordx78
0
111
Member Avatar for jtapp

It's quite possible that this is impossible.. but here goes... I have some personnel data that is being reported in a table and in that table I have a field that holds a person's "title". Let's say the returned "title" results are "President", "Vice President", "Assistant To The President" and …

Member Avatar for nav33n
0
74
Member Avatar for gingercookie

So, I bought this script that's a bit buggy. I'm not sure if this is the only problem, but I'm getting T-String error in line 16 . If anyone could see what I'm missing, I'd really appreciate it. I'm very, very new with php... in fact I've only started to …

0
61
Member Avatar for jinchiruki

already put the validation..it will prompt user the errors..but it query into database also how can i solved it?? [code] <table width="1000" height="95" border="1"> <tr> <td bgcolor="#0000FF">&nbsp;</td> </tr> </table> <?php include("connect.php"); //this is your validation in the form,put it here.... if (empty($_POST['name'])) { $errors[] = 'Please enter a name'; } …

Member Avatar for nav33n
0
100
Member Avatar for gooky9

Hi, I am currently using the follwing IF statement: if ($daybooked == 1){ print sprintf('<td align="center" bgcolor="%s">&nbsp;%d&nbsp;</td>',$opts['today_color'],$day); } else{ print sprintf('<td align="center"><font color="#999999">&nbsp;%d&nbsp;</font></td>',$day); } I would like for this statement to loop. Any ideas? Thanks, Steve

Member Avatar for nav33n
0
127
Member Avatar for devat
Member Avatar for ian_422
0
118
Member Avatar for lordx78

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php // connection to MySQL server mysql_connect('localhost','root',''); mysql_select_db('administration'); // *** Validate request to login to this site. //session_start(); if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $loginPassword=$_POST['password']; $MM_redirectLoginSuccess = "validated.php"; $MM_redirectLoginFailed = "admin.php"; $MM_redirecttoReferrer = true; mysql_select_db('administration'); $errors = array(); if(empty($_POST['username'])) { $errors[] = 'You think …

Member Avatar for lordx78
0
73
Member Avatar for asadalim1

I am new to PHP or just not good at it lol, I have been trying to insert checkbox elements into a mysql database. I have a table called Team with two collumns. Id int not null auto increment PK team varchar 30 not null <? <body><form action="insert.php" method="post"> select …

Member Avatar for asadalim1
0
11K
Member Avatar for gopi kannan

in my page i allow the administrator to list all user records with radio buttons...and he can delete record one by one using the radio button in front of the record and clicking delete button..the radio button has the value of primary key of record to be deleted..i post that …

Member Avatar for gopi kannan
0
80
Member Avatar for BillyMako

I have dates stored for logs which has three fields February 8 2008 for example. How can i do a MYSQL querry which selects the logs between march 1 2005 to december 1 2007 for example. Thanks

Member Avatar for nav33n
0
91
Member Avatar for joker40

i want to solve thi assignment ....so if any one can help me with it i 'll really appreciate it. [B]Your group decided to play a game called rhyme. The game is simple; all of your friends must be in a circle and say the rhyme in clockwise turn. The …

Member Avatar for Auzzie
0
124
Member Avatar for Venom Rush

Hi there I'm new to php and MySQL and I'm busy trying to build a page that when the administrator selects an item from a drop-down list, that has been populated from a database, it populates multiple text fields with the appropriate information from the database. For example, if the …

Member Avatar for b_scorpian
0
189
Member Avatar for Vai

Any help would be greatly appreciated. Goals: 1: Send a username / password based on a username and not someone remembering their email address. 2: If it's possible to send an encrypted key, which would be a link to pass_update.php which would make the user change their password. This is …

Member Avatar for nav33n
0
119
Member Avatar for jtapp

First of all, please forgive my immature code.. I am a beginner and this is my first one. Could some body take a look at this and tell me why the data in my table is not populating? Thanks in advance for your time. The problem I am having is …

Member Avatar for nav33n
0
126
Member Avatar for naju

There is a another-site such as : [url]http://his-site.com[/url] there is a form on [url]http://his-site.com/submit_something.do[/url] To access this page we need to go through login from [url]http://his-site.com/login.do[/url] Now i have my site - [url]http://my-site.com/[/url] i do have the login information for his-site i need to auto-login and access the form page …

Member Avatar for naju
0
92
Member Avatar for shedii

Are C & C++ knowledge required to learn php or a person good at html, css & xml can start learning php directly?

Member Avatar for richie513
0
134
Member Avatar for cristylenjoy

Hi im Cristy lenjoy lozada, a student from philippines,,,I am currently working on a thesis,,,Our thesis is entitled "Online reservation system ",,,My Very big problem is this... Thesis requirements: 1. First, the client will have to register on our site to be able to make reservation.. 2. After filling up …

Member Avatar for joker40
0
70
Member Avatar for whoisit

I am building on a previous thread which got the user name by now asking for password as well. But for some reason it doesn't work, it jumps right to the default. Thanks for looking Here is the code [code] <?php $usern1 = Joe; $pass1 = abc; $usern2 = Jim; …

Member Avatar for richie513
0
141
Member Avatar for scorpionz

Hi this is ScorpionZ I need to get some idea regarding "Work FLOW SYSTEM" and IF I WANT TO CREATE Such system..... then What are the requirements? And on What Possible system is it Possible? Any help will be appreciated with great interest Thanks and Regard ScorpionZ

Member Avatar for richie513
0
125
Member Avatar for naju

mime_content_type is not working .. i have in my php.ini as: [mime_magic] mime_magic.debug = On mime_magic.magicfile = "C:\Program Files\xampp\php\extras\magic.mime"

Member Avatar for naju
0
3K
Member Avatar for squid44th

To begin with, I will state now that I know virtually nothing, zip, zero, zilch about .htaccess and mod_rewrite. That being said, I know it can be done. What I have is a framed site that has a header/footer plus left menu and main frame. What I have now is …

Member Avatar for richie513
0
162

The End.