41,412 Topics

Member Avatar for
Member Avatar for levsha

[CODE]if($firstname == '') {print "You have not entered your first name, please go back and try again.";}[/CODE] How do I make the text look like the entire site? Or even better - is it possible to get a popup window on this instead of opening a full sized page? Thank …

Member Avatar for Member #120589
0
181
Member Avatar for NoID

Hello, Any way of when a customer goes to [url]www.domain.com/testtest[/url] it stores the IP and then it automatically block that? or give me the opertunity to block it by htaccess? Thank you

Member Avatar for hashinclude
0
104
Member Avatar for WoW Me Web Girl

im trying to install my youtube clone script i brought from Vshare.com on my server and this is the error message i keep getting. Warning: fopen(../include/config.php) [function.fopen]: failed to open stream: Is a directory in /home/poetryba/public_html/install/install_collect_info.php on line 86 Warning: fputs(): supplied argument is not a valid stream resource in …

Member Avatar for WoW Me Web Girl
0
162
Member Avatar for keepbusy

I'm looking to display only 1 line of text from a source where characters range from 0-255. I do not want the text to exceed 1 line, and if it would, I want to truncate and display "...". What is the best way to determine if text will exceed 1 …

Member Avatar for Member #120589
0
115
Member Avatar for pizzipie

I am fairly new to PHP-MYsql and HTML programming. So Please bear with me, I'm trying to create a function which will produce an array of 'Fields in a Table' and combine that array with an array of 'Column Headings' to produce an associative array like this; $labels= array('IDno' => …

Member Avatar for pizzipie
0
119
Member Avatar for drowsychaperone

Hi guys, I recently bought a template for a site that has an e-mail alert option. But I can't seem to figure out where I'm supposed to put my e-mail address so that I receive the e-mails. The code below is the only file associated with the e-mail form that …

Member Avatar for drowsychaperone
0
68
Member Avatar for drewpark88

Hey Everyone, I am getting an error with a PHP script made using the Authorize.net AIM (Advanced Integration Method) API for my donation form. I have gone over the code dozens of times and still do not know why it is not working. Everything works except the most important part...it …

Member Avatar for drewpark88
0
320
Member Avatar for Tekkno

Hello DaniWebbers, I've got several href's that take the user to different forms. However, in order to have access to the forms, they have to log in. So when they click the link, they are redirected to a login page if they have not already logged in, otherwise they are …

Member Avatar for Tekkno
0
222
Member Avatar for arunajasmine

Hi, i have just opened the control panel of joomla 1.5 . [url]http://localhost/joomla/administrator/index.php[/url] i am getting the following error. I am using this more than one month .. But now suddenly its showing me the error . Warning: Unexpected character in input: '' (ASCII=28) state=1 in /home1/**/public_html/***/administrator/components/com_jaclplus/jaclplus.class.php on line 73 …

Member Avatar for whiteyoh
0
112
Member Avatar for cali_dotcom

i have 3 form on a page and unfortunately i am not allowed to change that. the problem is when the third form is submitted, i would need to grab the data displayed from the second form to update the database incase the user changed anything on it. does anyone …

Member Avatar for Member #120589
0
71
Member Avatar for cwarn23

Hi and this function I wrote as part of a larger project and acts exactly like the php explode function. Although there a few slight differences between this function and the php explode function it can easily be tweaked to act identical. Also with this function it does not use …

Member Avatar for tetron
1
704
Member Avatar for ursrathika

hai experts i am a beginner in php....how to create autosuggestion box in search page..and how to create search box... pls give me the solution....

Member Avatar for mrcniceguy
0
90
Member Avatar for xolmc

Hello All! How can I automatically change permissions just for files in current directory and not for other directories. I suppose that 'chmod -R 664 .' will change permission to all current directory content..

Member Avatar for hashinclude
0
129
Member Avatar for mattias78

Hi I wanted to get some data from a file on the web that is updated every 12 hours or so and store it as variables so I can then display the information elsewhere. Is this something I can do with PHP? Here is an example of the file: [URL="ftp://polar.ncep.noaa.gov/pub/waves/latest_run/akw.46001.bull"]ftp://polar.ncep.noaa.gov/pub/waves/latest_run/akw.46001.bull[/URL] …

Member Avatar for hashinclude
0
89
Member Avatar for niths

hai i am new to php. i am getting this as error ---You have an error in your SQL syntax; check the manual that corresponds to your MySQL--- can anyone tel wher is the error. Thank u..!! <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> …

Member Avatar for hashinclude
0
119
Member Avatar for Pooja J.

Hi guys, I have one form contains img title and img name, also in database named as gallary. my prob is i cant store the name of img with extension using file field. plz, guide me. //admin.php <?php $con = mysql_connect("localhost","root",""); $db = mysql_select_db('admin'); $title = $_POST['title']; $file = $_POST['file2']; …

Member Avatar for hashinclude
0
116
Member Avatar for WoW Me Web Girl

I started a comments page on my website and the comments work fine and go through. But after you submit the comment the out put displays like this on my webpage: comments: "heartbeaker" by: jamika @ 12:30:00 am on March 11, 2010. Fear<br /> There are two flip sides, to …

Member Avatar for liamfriel
0
81
Member Avatar for mcastu

i m trying to make login page ... while runing that i got one Fatal error i m not able to understand even i tried .......... guide me plz here is :---- Fatal error: Call to undefined function: mysql_real_escape_string() in c:\apache\htdocs\newhr\checklogin.php on line 14 plz help me to solve it...... …

Member Avatar for mcastu
0
10K
Member Avatar for prem2

Hi DaniWeb Team, I want to read the value of the below array, but i do no how to get the values. Array ( [0] => Zero [1] => One [2] => 9884127128 [3] => 98841254554 [4] => Four [5] => Array ( [[0]] => Delimiter ) [6] => 9554565545 …

Member Avatar for prem2
0
80
Member Avatar for 56oldbrown

I have a login page on the site I am building, it works fine but what I am trying to accomplish is: I have a number (10) of football clubs who require login access to their page by their members only. For instance, Club A has its own page, only …

Member Avatar for cwarn23
0
126
Member Avatar for itisnot_me

ok so what i have going right now is a little system that takes a value of %address% and turns it into what is stored on the database. and i am using a str_replace example (note there are more in the array) [CODE] $searchArray = array("%address%"); $replaceArray = array($address); $content …

Member Avatar for itisnot_me
0
316
Member Avatar for teajayo

Hi people... ran some asp code thru a php translator and the php page displays nothing but this error message. I take out the php code and it displays. I've checked and rechecked and read tons of possible scenarios... but I don't see anything. Sometimes another set of eyes and …

Member Avatar for teajayo
0
175
Member Avatar for FredMcwoozy

I am trying to incorporate an existing php design into dreamweaver so I can work on copy and graphics. I have gone through and set up MAMP along with the ftp info and remote info for a local/php. The problem is: 1. I can't get all the PHP files to …

0
70
Member Avatar for rpgwebsolutions
Member Avatar for tamtal

Dear all im working on a time table schedule for a universityusing php, this time table distributes the tutors on the classes and thier courses ofcourse giving priority to major courses the elective ones, and the tutors enters their available time in the uni from the web page and then …

Member Avatar for Member #120589
0
88
Member Avatar for Exploded Fiber

Hi all, After some time pulling my hair my brain has turned to mush on this senerio. I'd appreciate any help offered as my PHP skills are still limited. Here is the senerio: I am creatings a voting website. I am currently creating an admin page that creates local election. …

Member Avatar for Exploded Fiber
0
127
Member Avatar for mtroute

I m trying to create a table using the results of a SUM on separate tables within a single DB. I have tried various join scripts but can't seem to get it right. As a work around, I have created a single SUM table for each Table and run the …

0
100
Member Avatar for tryphy

Hi, I have a javascript function to disable and enable a textbox. [CODE] <SCRIPT LANGUAGE="JavaScript"> function enable() { document.form1.tmphone2.disabled=false; document.form1.pmphone2.disabled=false; } function disable() { document.form1.tmphone2.disabled=true; document.form1.pmphone2.disabled=true; } </SCRIPT> [/CODE] I need to call the function in a php code, on condition Heres my code: [CODE] <?php $cc = $row['company_country']; $s …

Member Avatar for EvolutionFallen
0
2K
Member Avatar for eenceo

Can anyone think of a reason why a PHP // comment cancels the execution of a file? Here's the setup: I have an index.php file that loops through different commands. [CODE]if(in_array($act2, $a2)) { if($act2 == "prods") { require('prod.php'); } else if($act2 == "stats") { require('stats.php'); } else if($act2 == "cust") …

Member Avatar for eenceo
0
213
Member Avatar for darrylpatterson

Now that Perl is losing its popularity, which one the these languages will be the next to go: PHP or ASP? Which one of them do you like best? and why?

Member Avatar for digital29
0
160
Member Avatar for fobos

hello all, i have a problem. First off, i am able to upload 200mb to mysql database; so im good there. I changed the values in "my.ini" to 700mb. The problem is, when i try to download it, i get a error 404 or something like that. Its like the …

Member Avatar for cwarn23
0
113
Member Avatar for rpgwebsolutions
Member Avatar for rukshilag

hi im working on a search field in drupal for a system that maintains student information. i have one interface that has the search student info box and the other which is search results i wrote some php code to search the and there are no errors yet still its …

Member Avatar for rukshilag
0
164
Member Avatar for dillyfresh

getting this error: Parse error: syntax error, unexpected T_VARIABLE in index.php on line 3 here's the code: [code] <?php include("budget.php"); include("user.php"); ?> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div id="container"> <a href="user.php?action=register">Register</a><br/> <a href="action.php?function=transaction" id="add"><img border="0" src="img/plus-icon_small.jpg" alt="+" width="30" height="30"/> </a><br/> <?php if(isset($_GET['month'])) $month = $_GET['month']; else $month …

Member Avatar for OS_dev
0
84
Member Avatar for famousb

Greetings all, I've been programming local applications in Delphi quite awhile, but i only consider myself a so-so programmer... and i've never done anything server based. I also do a fair amount of web/PHP programming. That said, i'm trying to create a small program i can run on my Windows …

0
79
Member Avatar for SCoder1
Member Avatar for Member #120589
0
96
Member Avatar for mrjoli021

what is wrong with this form????? i can see the name and email but not the msg?? [code] <?PHP echo $_POST["name"]; //works echo $_POST["msg"]; //nothing prints out ?> [/code] [code] <form method="post" action="form.php" style="margin:0; padding:0"> <b>NAME:</b><br> <input name="name" type="text" class="form" id="name"> <br> <br> <br style="line-height:8px"> <b>E-MAIL:</b><br> <input name="email" type="text" class="form"> …

Member Avatar for Member #120589
0
126
Member Avatar for litlemaster

I need to select certain the rows from a table but need to show only just five of them. For example select * from table where user = $user; but i need only top five results

Member Avatar for litlemaster
0
113
Member Avatar for abhish2005

HI my project involves reverse geocoding and therfore i ve embedded the google maps api in my web site and am using their geocoder to get location names from coordinates. The geocoder and its functions are written in php. Now the problem is that i need to store the values …

Member Avatar for Member #120589
-2
124
Member Avatar for Excizted

Hey. I'm having an annoying problem, that I can't seem to figure out. In my page when I echo long messages, I do an in-code linebreak at around 100th character, to keep at all in my view. But when I do that I also get the line breaks and indents …

Member Avatar for almostbob
0
173
Member Avatar for NoID

Hello Guys, I have found this counter, but i want it to refresh the number every 1minute, so for example it says "19" and the end user keeps refreshing the page, he wont see the number changing untill its been 1min. [code] <?php function randomGen($min, $max) { // setup our …

Member Avatar for BeachyUK
0
115
Member Avatar for jazz_vill

I have this table forum and topic and i want to query forumname, description, total topics in the Forum idk how to do this i tried an sql statement like this SELECT f.forumname,f.forumdesc,max(t.forum) as total_topics from Forum as f INNER JOIN Topic as t WHERE f.forumid = t.forumid; of course …

Member Avatar for urtrivedi
0
245
Member Avatar for amy_rockville

I am new to php/MySQL, so I apologize in advance for any stupidity on my part. I have a MySQL database for events, and the main table ("Brochure") has multiple Trip Leader fields, e.g., "Leader," "Assistant Leader," "Leader in Training," etc. All of these leader fields get their data from …

Member Avatar for amy_rockville
0
129
Member Avatar for s_kanika

Hello everyone I have created a basic chat window in that i used textarea to enter message but by default it is taking a tab i.e., initially cursor isone tab ahead instead of being at initial position of textarea . Can anyone help me??????

Member Avatar for s_kanika
0
122
Member Avatar for tejateja

here is my code ajaxtest1.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript"> function getXMLHttp() { var xmlHttp try { //Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch(e) { //Internet Explorer try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { xmlHttp …

Member Avatar for Member #120589
0
556
Member Avatar for Alena112001

I have a php site with around 12 pages - where I wish to put a nice song from the index to the all pages without be interrupted by a click outside from index page. How I have to do or where I can find the script? Thank you for …

Member Avatar for Member #120589
0
251
Member Avatar for ya.basha

Hello All, Is there a way to print the http header? I want to print realm parameter from the header. Regards,

Member Avatar for ya.basha
0
166
Member Avatar for Technerd_Shawn

Well I have 3 Database tables I am working off of 1 is for Users, It contains IDs, Names, ect, ect 1 is for the skills they are trained in, it has 2 columns, One for skill_id and one for Description (portal_userSkills) The last table is a joiner it joins …

Member Avatar for Technerd_Shawn
0
140
Member Avatar for selvasoft

Am using wordpress for web hosting. Stil now am using mysql database. But now i want use oracle is it possible or not please reply me any one... Thank you..

0
50
Member Avatar for brijendra1

hello how to open resume in php or javascript or ajax or how to open .doc file in php or how to read .doc file in

Member Avatar for chrishea
0
248

The End.