39,320 Topics
| |
Hello everyone, I'm trying to write a script which accepts URL by GET and then validates the URL before processing it. for the sake of arguement lets say that the URL I'm expecting is in this format http://mysite.com/myscript.php?url=http://blahblah.blahblah.bla/blahblah/blahblah/blahblah.bla http://subdomain.domain.tld/section/category/file.ext I need to validate the part which is a link to … | |
| I do not see it! <?php //Code for Header and Search Bar function headerAndSearchCode() { $defaultText = htmlentities($_GET['keywords']); echo ' <header id="main_header"> < div id= "rightAlign"> '; //links will be here </div> <a href=\"index.php\"><imgsrc="http://www.lisa1986.com/images/mainLogo.png"></a> </header> <div id=\ "top_search\"> <form name=\"input\" action=\"search.php\" method=\get\"> <input type=\"text\" id=\"keywords\" size="\100px\" class=\"searchBox\" value=\"$defaultText\"> <select … |
I am trying to install a php script on a windows system using XAMPP, but before installing it ,I have to configure the script accordng to my xampp configuration this is what the scripts config file wants: // Begin Configuration $config['basedir'] = 'C:\xampp\htdocs\myscript'; $config['baseurl'] = 'http://127.0.01/myscript'; $DBTYPE = 'mysql'; $DBHOST … | |
Hi all, i am doing a project that need to be create email accounts without login to cpanel. I have created that and the mail is working perfectly. Now i wnat to know.. where is the email accounts, sent messages, inbox messages are saving in the cpanel.. Any help?? | |
I am trying to create a page of 8 avery labels for our users to print out. The labels are to be used for our meetups, so the users can have there name, avatar, and background. These are all dynamically pulled from the database. The user will have a link … | |
Hi every1 I am building a website using wordpress, can you show me how to create a form that allow visitor register to join a class or something like that? Thanks you much! :) | |
i just started learning SEO and and i want to know if the are free tools to see the position(ranking ) of my website... any suggestion will be appreciated. | |
Hi All, I am trying to create a page were users can edit their post. -Select subbmitted data from the database using post id, and display this information so that users can Edit. -And finally i want to update the data and continue to the preview page, where users can … | |
Hellow, i want to find location/country of visitors by IP, im looking for any site can do it for me, i want a script from other site to use it in my php file, that script will get location using other server and will return to me location... | |
i have created a php application where am using **a barcode scanner to load item name and prices from database**. the problem is that **once the barcode reader finishes reading the barcode, the details are loaded and it tabs to the next field. this means that the user has to … | |
Hi I am running the following SQL (extract shown below) INSERT INTO users (user_id, username, username_clean) SELECT member_id, username, lower(REPLACE(username, '.', '_')) FROM members The problem arises when lower(REPLACE(username, '.', '_')) produces a duplicate that already exists in username_clean as the users table does not permit duplicates. Is there a … | |
Hi, I'm developing a blog that will have categories. I want to be able to store blog posts in more than one category. My problem is i am not sure how to go about it. I have a table called posts: CREATE TABLE `posts` ( `post_id` int(10) unsigned NOT NULL … | |
I'm working with a sms gateway thing, now i have to pass a url via GET or POST. i'm tried with fopen("http://api.studentmug.com/bulksms/sms.php?Username=<something>&Password=<something>", "r"); like that. but it didn't worked. Please help me guys. i'm also used curl_init(); it is replying Bad Request. Guys please help me with this. Thanks in … | |
I need help displaying some products from a mysql database in a 3x4 table or what ever size i choose to do. An example of how I want to display it is http://www.golfcircuit.com/Golf-Drivers/13__.html. Right now I just have it displaying in a n x 1 format. Like so http://webdev.cs.kent.edu/~jfunchio/wp2/HW2/index.php. I … | |
I'm trying to understand XPath, but I've come acrost an issue I can not seam to find an answer for. In this case it seams that XPath is not returning what it should. I've got a sample html file, test.html: <html> <div> <p>1</p> <p>2</p> <p>3</p> <p>4</p> <p>5</p> </div> </html> And … | |
Hi,i have following code: if (!isset($_POST['submit'])) { <form action="" method="post"> <input type="submit" name="submit" value="Go"></input> </form> } else { if (!isset($_POST['submittwo'])) { <form action="" method="post"> <input type="submit" name="submittwo" value="Go"></input> </form> } else { } } As you can see first block of code it's ordinary form which submit to itself,and in … | |
Hi, I have tried to use pagination for my website that I'm creating, when I click on next page or last page it gives me this problem: **You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to … | |
I'm trying to store the text from my textarea into my php variable, but it seems like it is not working as i wish too. and it shows error in my textarea: <br /> <b>Notice</b>: Undefined index: ftext in <b>C:\Program Files (x86)\EasyPHP-5.3.9\www\sentiform.php</b> on line <b>20</b><br /> sorry that i am … | |
I am new to cakephp.I installed CakePHP.I wnat a simple program so as to know how to use cakephp.I tried everysite but couldnot understand how the MVC works while writing a program.I also want to know how database is created in CAKEPHP> | |
I am currently working on a project based on google maps api's. This is a website with a back-end database. I am trying to find out how to save a route that a user creates on my website map (from point a to point b), into my database, just by … | |
I'm trying to write a function that that returns an table from an array. But, for some reason, it is only displaying the first row or the array instead of all. <html> <link rel="stylesheet" type="text/css" href="week13.css" /> </head> <body> <h2>table</h2> <br> <br> <?php $table = array("440" => "cubic inch engine","truck … | |
Hi everyone, Now a days Justhost & Bluehost are putting restrictions on mysql joins. Even If there are 11 or 12 Joins the query is not running. When you will run the same query in phpmyadmin then, its giving you error message as "#1104 - The SELECT would examine more … | |
I want to submit data of my student registration form to the database. If an admission number already exists, a message should be displayed like this. "**Admission number2012/1..This student has been already entered to the system**." I have created the below coding which fulfill the above task. But i want … | |
Hello Dani Members I Have Question About My Code <?php $id = intval($_GET["id"]); $result = mysql_query("SELECT * FROM peoples ORDER BY RAND() LIMIT 1"); while($row = mysql_fetch_array($result)) { echo "$row[name]<br/> <a href='members.php?id=$row[id]'><img class='img_shadow' src='$row[image]' width='198' height='250' alt='$row[name]' /></a>"; } ?> This Code Get Me Image Of ONe Member And His … | |
Hi , I have named my databases as Week1Jan2012 for 1st week of January , (1-7 Jan 2012) Is there any way to map Week1Jan2012 to 1-7 Jan2012 ,So that I can make a drop down to select this mapped once so that it selects from Week1Jan2012 database. Thanks | |
I have a page that I wrote to upload a text file to a mysql database. The text file has thousands of lines and each line is a separate database row. An identifier at the beginning of each line tells me which table to insert the line into in the … | |
Hi, I have developed a website with a user profile page with eye_colour , hair_colour , size etc. Each item has a set range of values entered through a drop down list. I wish to allow the users to search these set range’s to find their ideal match. To this … | |
hi guys...i have this prooblem which i like to acho a window pop up...but i cannot do so...the link does not seem to work and i cannot find any error in it. I wonder if anyone can find any error here: $ancpopup = "<div id=\"anctrigger\"><a href=\"#\" onclick=\"window.open('m_ancpopup.php?page='$eid','ancpopup','width=670px,height=470px,left=0px,top=100px,screenX=0,screenY=100')\">Accident & Conviction EXIST!</a></div>"; … | |
After the form is submit, it will not echo $genderRadio Any ideas? It can select the gender but I can't display in the php file `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> Assignment 2</title> </head> <body> <h1>Please enter your information</h1> <form method= "post" action = "output_hw2.php"> … | |
I am making a online social networking site, and have messging section, i want it to make it show only 1 messge from each user, So if you have a message from for ex Username "bob" id "32" and you have 5 messages from him Then you have 20 messages … |
The End.