52,566 Archived Topics
Remove Filter ![]() | |
![]() | Hi Guys I want to write a program that extracts links from a url and then adds them to a mysql database. I have found some nice examples ie [CODE=php]<? function getlinks($url) { $data=file_get_contents($url); preg_match_all('/(href|src)\=(\"|')[^\"'\>]+/i',$data,$media); unset($data); $data=preg_replace('/(href|src)(\"|'|\=\"|\=')(.*)/i',"$3",$media[0]); return $data; } //now to use the function echo "<xmp>"; var_dump(getlinks('http://www.google.com.au')); echo "</xmp>"; … Web Development php ![]() |
Hi, I want to make a php validation for textbox which limit user to enter only character. i using following code [CODE]function validate_alpha($val) { return eregi("[^0-9]",$val); } [/CODE] if i type 123 it will give error. that is ok. but when i type keval123 it doesn't produce error. how to … Web Development php | |
am showing a report in a table, after fetching data from mysql. my client wishes to have this html report into an excel file too.. Suggestions required.. Either * button click call another php page and save to a predefined location * create xls file everytime i generate report. plz … | |
How to store password in MYSQL ? i created the new page, [B]index.html[/B] [CODE]<form action="calc.php" method="POST"> Username: <input type="text" name="username"> Password: <input type="password" name="password"> <input type="submit" name="submit" value="Submit"> </form> [/CODE] and clac.php, [CODE]<?php $username = $_POST['username']; $pass = $_POST['password']; if ($username == "a" && $pass =="abc") /* here i set … | |
How to do this? Some said I need to use requiredfieldvalidators for this. Will these affect my other validation with no requiredfieldvalidators? Web Development asp.net | |
I have a radion box that has the values private public and friends but i cant't seem to get it to reset to the default value using javascript?? [code] document.getElementById('emailsetting').checked='private'; [/code] Web Development javascript | |
Hello,i want to hide my actual download link from my website. when anyone click the contents they got direct download link. here is my code [CODE] $get_path=explode("/downloads/",$path[0]); $filename=$get_path[1]; $download=$get_path[0]."/downloads/".$filename; echo "<a href=\"".$download."\">Get File</a>"; [/CODE] they got direct link like this [QUOTE][url]http://localhost/downloads/cpanel.gif[/url][/QUOTE] i want to make it like [url]http://localhost/downloads/6885a6c38d6e9bcc201326902269658a[/url] (its md5) … | |
Is this possible, and if so, how do I get this working? If datetime from table is greater than another datetime from table, then run query. so pretend its: $date1 = $row["date1"]; (june 19th) (i have a query on the page were it updates the day everytime you visit, NOW()) … Web Development php ![]() | |
i am writing an application on my pc considered as client, to insert record on a microsoft access database on another pc that u can consider it as server, that has static ip address remotely.i can ping the remote address of the pc that i want to access without problems.the … Web Development asp asp.net client-server dataset microsoft-access open-source vbscript web-server | |
I am making an enrollment system. My database table for the enrollment has 30 columns. I wonder which datapresentation suits this kind of multiple columns. Do you think gridview is suited for this? If I would have an edit function then do you think it's kinda long? I also made … Web Development asp.net | |
Help please, I want to make a system so that when a thread hasn't been viewed by you, or if there are new posts in a thread that you haven't read, it will show "Unread", but when you view the new posts, or view the thread, it will show "Read" … Web Development php | |
Hi I'm a Javascript newbie. I am displaying list of things in my Jsp page. each row has two drop down menus and a radio button. When the submit is clicked it sends the index of the radio button clicked as a hidden parameter. I need to get the drop … | |
Hi, I have Oracle 10g installed in my laptop. I have currently inserted a Gridview and in this Gridview when i choose "Oracle Database" as my Data Source, I come across a form where I have to fill out the server name, username, and password. I do not know what … | |
Hi, i have a submit button which adds data to a DB, id like a pop up window to open after the user clicks the button and the submit operation has been completed... (the pop up window will display the submitted data) while tesing on a local host i (naively) … Web Development asp.net | |
hi myself jaipal deshwal my problem is that i am not find proper value in dropdownlist the coding is as folow using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DropDownList1.Items.Add("-Select-"); DropDownList1.Items.Add("+"); … | |
can anyone tell me what code should i use to print when i click the button it'll automatically print the page? or any other suggestion? Web Development asp.net | |
hi i was wondering how i can show my site bar on a external link my site sends a user to. A good example of this is how digg shows a bar at the top after being sent to a different site. Please let me know steps on how i … Web Development php | |
Hi everyone. I've run into another problem :( I have 3 JS files I want to include in my page. The first one is defined statically in the html file. The other two are loaded into the DOM using the following function: [CODE] function loadJsFile(pathToFile){ var headID = document.getElementsByTagName("head")[0]; var … Web Development javascript | |
Hi, I'm new to this forum and wanted some advise on finding a .Net development job. Having been an Access developer I have recently moved into .Net development with my present employer and now have around 1 years commercial development experience. However, I am looking to broaden my knowledge in … | |
Hello DW Forum, i am a new member between you and this is my first post i am building a website mostly uses Stored Procedure, but now i am facing a problem such that i want to call the SP more than one time from the .vb page this is … Web Development asp.net | |
I'm new to using Temporary Tables in PHP/MySQL. I wrote a very simple test script just to see if it would work, but the SELECT query is giving me a [B]mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given[/B] error on the last line, and I'm not sure why. $dbc … | |
Hi community, I have a PHP page with a table in it that I want to export to Excel. I have seen multiple ways to export an entire PHP page to excel, but I only want to export the table within my page. Is there anyway to specify what content … Web Development php | |
[CODE]<a href=\".\/(viewtopic.php\?f=15&t=[0-9]+)\" class=\"topictitle\">([#\w\s_\-!$%&()?.,'\":;{}\/\\|’=\[\]+\–\â„¢ ]+)<\/a>[/CODE] i have this regex ina ction when i use it in software like regex buddy its ok but when i use it in php it just dont work it .throw no error at all..but it produce zero result. it is made to match this [CODE]<a href="./viewtopic.php?f=15&t=119871" … | |
I need to make a form with a few options could be radio or drop down, ex a, b, and c.. and when one is selected I would have a if command that would give you another set of options like if option "a" is selected then in the same … | |
Below you will find my three codes. I am trying to make an order form that submits an order and writes the text in the black box. But the black box needs to be within the last red box, not sure why its not going in there. Also my alert … Web Development html-css javascript | |
Is there a way to create a div or some container in which there will be an image such that the image fills the container but retains its aspect ratio? So if the container is 100px x 100px and an image is 200px x 100px it will be resized to … Web Development image javascript | |
I'm trying to create the edit form for book (with id 1), I want the selection list to select the existing author which retrieved from database. That book with id 1 has an author with id 1, but the HTML does not show selected author with id 1 for that … Web Development asp.net | |
im testing a sendmail function in PHP. The first, i used mail() function, this is my code: [CODE] <?php $to="meo.spt@gmail.com"; $subject="This is test mail"; $message="Hello, this is test mail from Viet May Cor. \n Best regards!"; $from="meo_spt@yahoo.com"; $headers="From: $from"; mail($to,$subject,$message,$headers); ?> [/CODE] and i got an error: [COLOR="Green"]"Warning: mail() [function.mail]: … Web Development php | |
what kind of error is this? my page was just running fine. i did not change anything neither the location of the requested file. Warning: require_once(../php/main.php) [function.require-once]: failed to open stream: No such file or directory in.................... line 7 Fatal error: require_once() [function.require]: Failed opening required '../php/main.php' (include_path='.;C:\php5\pear') in..........................line 7. Web Development file-stream php | |
![]() | Hi All. I am currently designing a photo sharing website. I need to make a script that deletes the image from the folder it is stored in and also from the database. I have done the database bit but i cannot work out the deleting from the folder bit. Any … |
for example if I have two arrys arr1[10,20,30] arr2[40,50,60] can I get help on how to merge them to get arr1[10,20,30,40,50,60] Web Development javascript | |
For some reason, selectedindexChanged vb.net code is no longer firing. autopostback and enable viewstate are sill true. Enabled is set to true in code behind. Using VS2008. Any idea on what can cause this? Thanks, Randy [CODE]<asp:DropDownList id="ddlEmpName2" style="Z-INDEX: 138; LEFT: 192px; POSITION: absolute; TOP: 32px" runat="server" Width="152px" ForeColor="DarkBlue" DataValueField="EmployeeId" … | |
Hi there. I'm trying to figure out how to make this JS work with nested divs. Right now it looks for TagName 'div'. I have multiple nested divs and that seems to mess things up pretty good. I'm not sure how to add more detail to this code, like look … Web Development html-css javascript | |
hey guys, i was wondering if it is possible to edit the contents in a iframe to match your sites needs, like for example css/html. Is there any way this can be done in javascript or regular html? Web Development html-css javascript | |
hi this is my code. I want to validate new password with repeat password befor user press submit. [CODE]<p align="center">To reset your password, provide your current password</p> <form id="form1" name="form1" method="post" action="pcq.php"> <table border="0" align="center" class="mytable2" style="margin-left:175px" > <tr> <td>Current Password</td> <td> <input type="password" name="oldpass" style="width:150px;" /> </td> </tr> <tr> … Web Development javascript | |
I am working on a code which will send users reminders like 10 minutes,2 hours, a day, one week before their event is due. I will like to get the datetime after the reminder has been removed from the startdate [CODE] $startdate = "2010-07-10 01:00:00"; // date chosen by the … Web Development php | |
i have written an html document webpage in a form of (calculator)and have connected it with java so i want to create an event so that when i press the button(1) it will appear on the screen.i have already created an event for the "clear"in way that when i press … Web Development javascript | |
hello, can somebody tell me why when i use a link on <form action="http://www.mysite.com/login.php" method="POST"> the login script won't work :( first i used only action="login.php" but now i need to use the link because i want other login forms on diferent pages (directory) like [url]http://www.mysite.com/news/[/url] and i can't put … Web Development php | |
Hey all, I'm having a problem with my WordPress contact form. It is a script I edited from a tutorial I found, and it should be working right. I have a jQuery script that is supposed to help validate it and process it without page refresh. The problem is that … Web Development javascript-jquery php wordpress | |
hi friends i made a web application using php and working fine. and i also developed the same site for mobile also. For that i made it as imageless and optimised. and i uploaded in a folder. now i just want to divert user who is using mobile to mobile … Web Development http-protocol php | |
Hi guys would like to know if there is any benefit in learning how to code in asp.net? I am a alright coder in php but is there anything asp.net can do that php cant? please let me know, thanks. | |
Hi, When i'm click on the web page, the page turn off to balck color. is it possible? Help me.......... Web Development javascript | |
All, I've recently installed Apache version 2.2, MySql version 5.1, and PHP version 5.2.13 and am using Windows as my OS. I've gotten PHP to work on the Apache server, and MySql is working properly on its own. However, when I try to connect to a mysql database, I get … | |
Hi I am trying to print out the output from linux command in php. from the command line i am able to view the output, but when i run it from a browser there is no out put. anyone who can assist? [CODE] $ex1="ssh myname@server tail -10 /mnt/data/stat/status-rx.log"; $output1=`$ex1`; echo … Web Development php | |
[CODE] <select name="item2" id="item2" onchange="getPrice(this.id)" /> <option value="">Select medicine</option> <?php $sql = "SELECT ItemID, ItemName, Price FROM itemavail ORDER BY ItemName"; $rs = mysql_query($sql); while($row = mysql_fetch_array($rs)) { echo "<option value=\"".$row['Price']."\">".$row['ItemName']."</option> \n "; } ?> </select>[/CODE] this is selection menu to get item name. Here i need to get Item … Web Development php | |
I have thousands of pieces of HTML code that I want to take a screen shot of and save as an image. I'm no programming genius, but I think I can make this happen. I have a dedicated Linux server running Ubuntu with PHP5. I've found tons of links about … Web Development github html-css php ubuntu web-server | |
Hey, I got a little problem with the jQuery AJAX thing, the function(data) part doesn't seem to get called I don't have idea why I've been trying to solve this, but with not luck.. Here is my checklogin function [code] function checkLogin() { var username = $('#name').attr('value'); var password = … Web Development javascript javascript-jquery | |
I have an asp.net web page that a user is loading a file to that I want to parse data out of. The following text is some sample data (I'm told that it's supposed to be .csv but as you can tell, it's really not.) Resource:Wills MD, Robert P; Ward … | |
Let's say, user input on prompt is 1 so JavaScript will create one textfield. We'll test Assess() if its working. Type "1" on textField and click "Assess" button. No alert message appears. Please help. Thanks in advance. [CODE]<html> <head> <title>JavaScript</title> <style type="text/css"> font{ color:#663300; font-variant:small-caps; font-family:calibri; font-size:15; } </style> <script … Web Development html-css javascript | |
hi i m trying a code to execute in order to generate a xml file at runtime. it execute well. but the xml file gives a error as The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the … |
The End.