- Upvotes Received
- 8
- Posts with Upvotes
- 6
- Upvoting Members
- 8
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
52 Posted Topics
Re: [QUOTE=MDanz;1166183]i'm trying this below but it isn't working, the page is coming up blank .. [CODE]<?php $url = 'http://www.realgm.com'; function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } ?>[/CODE][/QUOTE] That all you got … | |
Re: This is a joke right? Wow, a tutorial with bad html, short php tags and worst of all starts with echo and then about 10 paragraphs down ends with superglobals. Umm, ya, I'd say you skipped around a little bit. and these quotes just tickled me: "It is a very … | |
Re: [QUOTE=tunde011;1145436]I have been reading php manual and i need to encrypt passwords for users on my site. The thing is i do [CODE] $password =md5($password)[/CODE] and store it in the database what about when they want to signin. they enter their password but it won't be the same as the … | |
Re: [QUOTE=branixis;514021][CODE=php]<?php include_once 'config.php'; class Database { const server = SERVER; const username = USERNAME; const password = PASSWORD; function connect() { return mysql_connect(self::server,self::username,self::password); } function insertUserinfo($fname,$lname,$email,$address, $drctory, $contactno, $mname, $gender, $usrdatno) { $datno = $this->getMaxDatno('userinfo', 'datno'); $query = "INSERT INTO userinfo(datno, firstname, lastname, email, address, drctory, contactno, middlename, gender, usrdatno) … | |
Re: [QUOTE=preetg;1152946]hi.. i m getting parse error ...... can anyone help me how can i remove it........... [B]Parse error: parse error in c:\apache\htdocs\newhr\attendnce.php on line 21[/B] [CODE] <?php mysql_connect("localhost","root","root"); mysql_select_db("master"); $dates = array(); $employee = array(); $attendance_record = array(); $getdates = "select * from mar10 order by Date" or die(mysql_error()); $dates_resultset … | |
When you access a url that has several anchor tags on it. You know what I mean, links at the top that navigate to a specific point in that page by adding a "#name" at the end of the url. In every other browser, if you click on a few … | |
Re: [QUOTE=star_lavender;1147256]How to use while loop to loop a set of radio button groups? I have several questions that retrieve from database and each question has five different ratings named 1, 2, 3, 4 and 5. I create radio button group for the rating and using while to loop them. I … | |
Re: [QUOTE=Designer_101;1178385]Hey I have an array which pulls in the name, artist and URL of songs from a playlist.xml file. The array prints like the following: [CODE]Array ( [0] => Array ( [tag] => PLAYLIST [value] => Array ( [0] => Array ( [tag] => SONG [value] => [attributes] => Array … | |
Re: [QUOTE=ayesha789;1154140]HI Dears all I have 2 tables in DB. [LIST=1] [*]Lease_north [*]Lims_payment [/LIST] My first query is [ICODE]Select * from lease_north WHERE LaStartDate like '%-04-%'[/ICODE] its shows 100 result means 100 payments are due and must be paid in April. My second query is[ICODE]Select * from lims_payment WHERE pdate like … | |
Not to be rude at all. I am looking for a forum that I can spend some time in and I feel that daniweb would be cool. I have actually come and gone before and felt then the same way I feel now. This site needs some optimisation and it … | |
![]() | Re: [QUOTE=DennyBubbles;1169736]i have an account with godaddy and they tell me my absolute path is d:\hosting\username\ if i have a file on my computers c: drive how would i upload it to mydata directory on the server using php. straightforward uploading is ok because i just copy and paste into [url]ftp://mysite.co.uk[/url] … |
Re: [QUOTE=prem2;1163915]Hi to all, Any suggestions.. Thank u,[/QUOTE] Bust your @$$. Don't be one of the other three people in the group through school that just rely on the work that you do. Stand out, don't buy out on the microsoft crap. Learn something not taught at school. I did with … | |
Re: [QUOTE=taieb;1162787]hello I'm new to this I have not knowledge and I want to install a php script for classified web site but I can't find the connection string? some body help please, thank in advance TD.[/QUOTE] do a find in files for "mysql_connect" or "pdo". If you still can't find … | |
Re: [QUOTE=Monster Killer;1159998]Yeah i am going to update that soon. But all the code above is being echoed out onto the page from a MySQL database. All the php code in there is being echoed out as text, so basically as it looks above.[/QUOTE] Let me see if I understand you … | |
Re: [QUOTE=sim_pack;1161729]i'm not sure if this is the correct forum to start this thread.. my apologies.. my concern is will there be an effect in my site's ranking and visibility if i change my index file from .html to .php? any tips on how to ensure the smooth transition from .html … | |
Re: [QUOTE=Phil++;1161332]Hey, I'm creating a usersystem that has a profile system. I'm stuck on a problem. I want the profile to be viewed by a url like: [url]www.mysite.com/member/phillip/[/url] So every time someone registers it automatically creates this folder. The problem that I'm having is that I need to place an 'index.php' … | |
Re: I don't know what you mean by this: [QUOTE=cane23;1160493]i tried UN setting the session variable but i was also having some trouble doing that since the $sum variable is just blank when nothing is selected. thanks[/QUOTE] It would be better if you skipped everything and unset the session variable if … | |
Re: [QUOTE=Tekkno;1155336]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 … | |
Re: [QUOTE=rpgwebsolutions;1156523]How do I find out the number of parameters passed into function?[/QUOTE] You should be prepared for all scenarios. Even if you are trying some type of function overriding using the recommendation provided by as.bhanuprakash. This is not the way to do it anyway, php provides the ability to assign … | |
Re: [QUOTE=dillyfresh;1158105]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 … | |
Re: [QUOTE=s_kanika;1157387]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??????[/QUOTE] Post your code and I will … | |
I see this question come through here quite frequently and I just happened to finish another login script so I figured I would post it and you can take what you want from it. If you have any questions, feel free to ask. [CODE=php] <?php session_start(); //include pdo mysql db … | |
Re: [QUOTE=Bubbleboy;1153962]I am really confused. I want to make a <p> tag hidden using javascript, and then, if i detect its running IE, i want to make it visible. I can't even make it hidden though. I have tried [CODE]<script type="text/javascript> document.warning.style[visibility] = 'hidden';[/CODE] i've tried [CODE]<script type="text/javascript> document.warning.style.visibility = 'hidden';[/CODE] … | |
Re: This is how I would probably do the calculation: [CODE=html]<form method="post" action="some_page.php"> // assign a page the form will submit to, it can the same page or a different one. <input TYPE="checkbox" NAME="days[]" VALUE="1" > Sunday <input TYPE="checkbox" NAME="days[]" VALUE="2" > Monday <input TYPE="checkbox" NAME="days[]" VALUE="3" > Tuesday <input TYPE="checkbox" … | |
Re: [QUOTE=dominique7;1152178]Dear programming cracks! I set up a website and thought an email form would be nice, but I thought it would be easier to get it right! I got it quite ok with the easy example below which I found at: [url]http://www.freewebmasterhelp.com/tutorials/php/6[/url] [CODE]<? function checkOK($field) { if (eregi("\r",$field) || eregi("\n",$field)){ … | |
Re: [QUOTE=lisles;1152930]I want to echo a message before redirecting.the message gets displayed but it disappears very soon.is it possible to increase the time of display before redirect.this is my code [code=php] if($result) {echo "Data has been edited"; redirect('edit.php'); } else { echo "<p>cannot update your data<p>"; } function redirect($loc){ echo "Reset … | |
I would like to be able to change the "wrap" attribute for a textarea with javascript. That is unless you can provide a cross browser solution in css2, giving me the ability to just modify the css attributes. Thank you in advance. | |
Re: [CODE=php] <?php $arrayFill = array(); $arrayFill["rambow"] = ":0:1:3:5:6:7:8:9:11:12:13:15:16:18:21:22:"; $arrayFill["popcorn"] = ":2:4:10:14:17:19:20:"; $default = "default"; $arr = array(); $totalLen = 22; for($i = 0; $i < $totalLen; $i++) { $fillvalue = ""; foreach($arrayFill as $key=>$value) { if(strpos($value, ":" . $i . ":") === false) continue; $fillvalue = $key; } $arr[$i] = … | |
Re: [QUOTE=ryan311;1150299]in my previous question i only ask how can i delete a data using checkbox i forgot to put multiple check. here's my code [CODE]<form id="form1" name="form1" method="post" action=""> <table border='1' cellspacing='0' width='612'> <tr> <th bgcolor='green'><font color='white'> <input type='checkbox' name='checkall' onclick='checkedAll();' /> </font></th> <th bgcolor='green'><font color="white">ID</font></th> <th bgcolor='green'><font color='white'>Check In</font></th> … | |
Re: [QUOTE=Wraithmanilian;1144432]Canada won in overtime, 3-2. Dangit. :([/QUOTE] Ya, but it was an awesome game though. It has been a long time since I've seen a game with that much action and talent in it, and not only that but to tie the Canadians and push the game into overtime is … | |
Re: [QUOTE=prem2;1148075]Hi, I am new to php.I want to read a word by word from a file.When I use fgets it read line by line.When i use fread then it read full contents from a file.File_get_contents read a full contents from a file. I need to read a each single word … | |
Re: [QUOTE=justinedwards;1148031]OK, Seriously...make the page in php...e.g. index.php Use HTML for the form, and set the action to the page name...e.g. index.php and the method to post... Let me go ahead and verify: in PHP, White Space doesn't count, because there are terminators... As Shown Below... [CODE] <form method='post' action='index.php'> <input … | |
Re: [QUOTE=dan4domination;1143722]Hello all, Just wondering if I could pick some brains, I'm currently learning PHP and have been messing around with a fun project, currently developing a simple login / register script. The error that I keep getting is - [b]Parse error: syntax error, unexpected T_ELSE in /home/danhumph/public_html/smithy/login.php on line 27[/b] … | |
Re: I guess what I don't understand is why would someone break up an array into other variables? you already have values in the array. I mean it's cool to know and I didn't even know it existed, I think because I've just never needed it. Unless, I am working with … | |
![]() | Re: [QUOTE=ardav;1142529]A million thanks once again CW. I shall give it a whirl. p_r gives me a nosebleed![/QUOTE] You know, as long as I have been developing I have this phobia of regular expressions. Sometimes you just can't avoid them because often times they are the best solution but they are … ![]() |
Re: [QUOTE=nevergone;1142269]Ok, I'm trying a large experiment. This would consist of large posts (in the 500-800 words) and wanted to have the post split every 200 words or so, like a book. I know I can do that by manually adding the 'nextpage' tag but then I'd manually have to count … | |
Re: [QUOTE=tunde011;1145419]i have a vanity url where my users type in [url]http://www.mysite.com/user[/url] but some users type in mysite.com/USER and it redirects them to error pages because "USER" is not the same as" user" in my database. What i want is a maybe a php or htaccess code to change whatever they … | |
Re: [QUOTE=lordinateur;1142222]I appreciate that the above reply is unclear therefore I have rewritten it. What is the post about? Users for the site advisor sites don't like the website very much [url]http://www.siteadvisor.com/sites/archive.org[/url] Or [url]http://www.siteadvisor.com[/url] Or WOT [url]http://www.mywot.com/en/scorecard/web.archive.org[/url] However WOT users thinks it is okay so whether there are viruses on the … | |
Re: [QUOTE=yuryla;1143876]According to this page ([url]http://us3.php.net/manual/en/language.variables.external.php):[/url] --- When you are using checkboxes to submit multiple choices, there is no need to use the complex method where you assign a unique name to each checkbox. Instead, just name each checkbox as the same array, e.g.: <input type="checkbox" name="names[]" value="foo" /> <input type="checkbox" … | |
Re: [QUOTE=cane23;1143998]if its not to much i just trouble can anyone offer any ideas as to how to investigate a string. i have 2 numbers first number=806000842 second number=05234578 as u can see the two numbers are of different length with the first being 9 characters and the second being 8 … | |
Re: [QUOTE=itisnot_me;1143770]ok so i was starting to make a query and thought that there could be a better way of making it. what i am trying to do it only print entries that does not have there value as null. ex: phone IS NOT NULL and street IS NOT NULL i … | |
Re: [QUOTE=azegurb;1143604]hi all i need to learn what does this mean (this style of writing) may be is there another variant to write the code [CODE]<? exit;} if($_GET['step'] == "2"){ $name_db=$_POST['name_db']; $host_db=$_POST['host_db']; $user_db=$_POST['user_db']; $password_db=$_POST['password_db']; $connect=mysql_connect($host_db,$user_db,$password_db); mysql_query("create database $name_db"); $connect=mysql_pconnect($host_db,$user_db,$password_db); mysql_select_db($name_db,$connect); $sql1 = "create table `config` ( `id` int(1) NOT NULL default … | |
Re: [QUOTE=turbodave;1142671]I have searched, promise! great site btw. I work for a small video production company and we often post work in progress to our website for clients to check out and comment on. I do this by encoding a video, uploading to our server and creating a static page, embedding … | |
Re: [QUOTE=vishalonne;1142739]I have a simple question I am developing 1 simple Job Site. 1. Where Job seekers will upload their Resume (in format of .txt or .doc or .docx file). 2. After tat if they want they can preview their uploaded resume in HTML format in different window. I just want … | |
Re: [QUOTE=cwarn23;1142285]Yes it's about loops. I have the below script and the first loop there is no problem as it mixes the variables but on the second loop I can't seem to figure out how to find the value of $c. Does anybody know because this is an annoying puzzle I … | |
Re: that is unless you are using the following form action: [CODE=html] <form action="/?mode=edit&id=whatever" method="post"> <!-- enter form fields here --> </form> [/CODE] which is completely possible. I do it all the time and it works fine. | |
Re: [QUOTE=lisles;1142558]hey,i have a login form wherein the take the username and password from the user and submit the form.im using burpsuite t check 4 threats.when i click on the submit button the password is visible.is it possible to encrypt the password as soon as enter it instead of passing it … | |
Re: [QUOTE=nychick;1142454]Thanks it works but the second page link would not work. This is probably a constraint of WordPress [url]http://testsub.thenorthfaceguru.com/blacklist-test-2/[/url] I was thinking maybe just one large page, but have a better 'chart' so lines are more visible? Do I do that in PHP or is it strictly HTML?[/QUOTE] There may … | |
Re: [QUOTE=darrylpatterson;1142424]and that would be in the near what? 10 years? 20 years? What do you think guys? or will PHP continue to have better and better versions?[/QUOTE] PHP will eventually be phased out but not as fast as many of the other languages out there. For example, .NET started out … | |
Re: [QUOTE=xuexue;1141143]hi guys, just wanna ask is there a good software which can help me plot data or draw a line graph in php? these data are dynamic, and will come from the database..just a simple line graph will do. thanks thanks.[/QUOTE] We just use google at work. [url]http://code.google.com/apis/charttools/[/url] |
The End.