39,393 Topics

Member Avatar for
Member Avatar for billah_norm

Is there anything or keawords in PHP from which I can break or continue from a LOOP in PHP?? in C for(i=0;i<=100;i++){ statement1....; statement2....; if(condition1) break; else continue; statement3....; statement4....; statement5....; } I need something like this in PHP.. Can anybody Help me?

Member Avatar for johnsquibb
0
156
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
73
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
92
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
124
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
204
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
318
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
86
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
346
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
153
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
117
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
513
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
106
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
733
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
124
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
271
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
71
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
117
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
96
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
71
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
163

The End.