39,320 Topics
| |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 ) … | |
[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 … | |
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] | |
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 … | |
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. | |
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 … | |
<?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; … | |
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 " … | |
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() … | |
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 … | |
[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. … | |
[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] … | |
[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. | |
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 … | |
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 … | |
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"> </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'; } … | |
Hi, I am currently using the follwing IF statement: if ($daybooked == 1){ print sprintf('<td align="center" bgcolor="%s"> %d </td>',$opts['today_color'],$day); } else{ print sprintf('<td align="center"><font color="#999999"> %d </font></td>',$day); } I would like for this statement to loop. Any ideas? Thanks, Steve | |
hi dear all give me some details for which one of best suitable server for PHP+ mysql ? Thanks | |
<!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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … |
The End.