52,566 Archived Topics
Remove Filter ![]() | |
Hey Guys, How would I go about echo'ing a large amount of symbols (#"'~/\|*&^%!) in an echo statement without having to put a backlash at all the clashing ones, specifically " and '? [CODE]\"`+w\"`2x'`!_\"`%&+` S%`1a&`&Y+`%\\4`(&+`$N!1`+n(`&&\"`$#\"9`#1#`$R&`\"H6`2+#`)9!`\"C#`(;\"`/x!`0^)`+k\"`,T'`.w4`.>%`';(4B`!{!F`!-!` B!64`&U#42`\"6$`\"e\"`02%`-i'`#4#`)]$`$.;`+B*`3d)`#u0`)@#`#o*`#4&`$6!5`)Z-`\"k\"`&>+`)X#`&h\"`$S\"`) %`!x!`0;%`//\"`$j,`*?!`#k(32%3` 6!48`+U&73`\"\"#61`&u!`(J%` ,\"`%P\"`+_%7%6D`\"p#7`-W'3`,P\"`*?$`,,\"`3C#4`#!$`$l$`+w\"`3s/1`%]*`),%`*q\"`$T!`%w+7`! \"`/W'6F`#-!9`!u$`28\"`%!'`!()`-&\"`)/\"`%G(`&i$6C`$x$`'S\"7`%3!`\"8%`-8%`-t+`%!!6C` Q!`,o$`(J\"6D%7` V\"`'8\"`%n\"`)*$6A`!K!`2D\"`-t\"`!8\"`,?$`!1#D`\"i!`&2%` 9!`$S\"`#C)`# \"`\">\"7`)Q$`+Y\"C`!B!`%2\"`(e\"`($-`&M(`&C#F`$Q$`-P(`$P\"`#Q-`\"A\"`$CA`1e1` 5(`2GC0%2`&x!`'\"#`,i$`%D\"77`\"W!`%K!`$A.`/q+`(V\"`!J\"`,/\"`//%6E`$:#`.%)`\"u!`.d&`,K$`&F#`#V%`!z%`#2\"` &\"`&0!`3.&`2V%`)#+`\"t\"`.,\"` E!`(m&`3P(7`%l*`#q\"`-Q!`(#\"``1)\"` kC`#P+`$I2`-#\"`3<66`0H!`,|&6`#d#`$}.`)7#`#k%`&A\"`$t\"`#z\"D`1^#`,&%`*e%`$R2`\"K'74%1`%J%`\" %`&V%8`2c$`*Q'`%\\+`\"()`%J4E%3C%62`\"+#2F%3E%3C` \",`3A1`%D+`+V1`+7&`*6!`\"e\"`\"|#A`*)`-F#D`\"o!`*_\"`*D\"`% … Web Development php | |
I am not sure where to begin with this code or how to go about it. I was wondering if anyone could give me some ideas as to where to start or ideas on how to accomplish this (If you want to help with sample codes I'd love that too, … Web Development php | |
I have a log in system and upon logging in, I cannot get the page to redirect to the members section. I've tried a bunch of different methods, and none seem to work. Here is my current code, can anyone offer some suggestions please? [CODE]{ $username = mysql_real_escape_string($username); $password = … Web Development php | |
I'm having trouble redirecting a form via JS. This code (accidentally) works fine as long as there is only one variable: [CODE]<SCRIPT language="JavaScript"> <!-- function Page(thisform) { with (thisform){ var page = thisform.p.value; } } //--> </SCRIPT>[/CODE] [CODE]<form class="box" action="/user/fave.php" onsubmit="return Page(this);">[/CODE] Which just adds the variable to the URL … Web Development http-protocol javascript | |
Ok I created some flash rotator-onclick event to change swf files. But this won't work in IE because the javascript isn't able to create a closing embed tag. Here is the script: [CODE]<script type="text/javascript"> var flashNumber = 0; var items = 3; var i = 0; films = new Array(items) … Web Development flash javascript | |
That's all of my code and you can see at the end there's a die function can you tell me what I did wrong? It's this die function.... [code] if(!$Query) { die("There was an error creating your product!"); } else { echo "Yes! Your product was created I hope " … | |
in the update query its giving an exception as [B][COLOR="Red"]Operand data type varchar is invalid for subtract operator[/COLOR][/B] so pls help me how to solve this [code] da7 = new SqlDataAdapter("SELECT item_name, item_quan,item_cat FROM c_item WHERE (item_name = '" + fname + "') AND (item_cat = '1')", con); da7.Fill(dt7); string … | |
demo.php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My First Project in PHP</title> </head> <body bgcolor=tan> <h1><font color="firebrick">PHP MySQL </font></h1> <form action="success.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="box" value="100000"> <table width="500" border="1"> <tr><td><b><label for='name'>Name :</b></label></td> <td><input type="text" name="Uname" size="20" /></td></tr> <tr><td><b><label for='mail'>Email :</b></label></td><td><input type="text" name="mail" size="20" /></td></tr> <tr><td><b> <label for='Updated_file'>Attachements:</b></label></td> … Web Development php | |
I want to download multiple files (file is in zip format ) from server to client machine to specific path with unzip format please give me the code for it......... please tell me....... (Technology : JSP) Web Development client-server java-jsp | |
So I am new to PHP but I have put forth a lot of effort to research my answer before taking it to the community. So far this what I have: [CODE=php] <?php $id=$_GET['id']; include("config.php"); include("openDB.php"); $table = 'vendors'; $sortBy = 'Company/Name'; $query=" SELECT * FROM `$table` WHERE id='$id'"; $result=mysql_query($query); … Web Development php | |
Hi guys, Can anyone refer me to some very basic and simplified MVC tutorial? Yes, I googled, and read a lot, also did try frameworks, but my goal here is to be able to write and understand the MVC code myself. I'm also new to OOP, so even with tuts … ![]() | |
i have code [CODE]<html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $('#<%= btnTest.ClientID %>').click(function () { var checkedControls = $('#<%= CheckBoxList1.ClientID %>').find('input:checkbox:checked'); if (checkedControls.length > 0) { alert('Valid'); } else { alert('Please select atleast one checkbox'); } return false; }); }); </script> </head> <body> … Web Development asp.net gui javascript javascript-jquery vb.net | |
Hello, thanks for reading my thread. I'm still new to web development so I appreciate your help in advance. I am having a problem that I am sure many people have run across in the past. In my project, I have sidebar menus loaded based upon the user permission level … Web Development javascript javascript-jquery php | |
I know there are many other threads about this same error, but none have helpped me, here is my code: [CODE] <?php $mysql_id = mysql_connect('mysql3.000webhost.com', 'a2778852_556875', 'pendolino390'); mysql_select_db('a2778852_555676', $mysql_id); $result = mysql_query("SELECT personalexperience, sex, age, sexuality, FROM Personal_experience"); while($row = mysql_fetch_array($result)) { echo $row['personalexperience'], $row['sex'], $row['age'], $row['sexuality']; } mysql_close($mysql_id); ?>[/CODE] … | |
i have a field in my database with numbers like this....... ,27,,277,,4277,,677,,678,,6688,,8754,,123478, each number was updated (added) like this .. ,27, all numbers updated are unique, when i try to match ,27, i get ,27, ,277, ,4277, not just ,27, my code is like this... [code=php] $id = 27 $string … | |
I really want this echo to not include people not listed as 1 in the row "activated" in my database. So if its 0 they wont show. [CODE] // Print each user while($row = $result->fetch_assoc()) { echo " <tr> <td>{$row['username']}</td> <td><a href='{$row['website']}' class='example7'>{$row['website']}</a></td> <td align='center'>{$row['disabled']}</td> </tr>"; } // Close table … | |
Has anyone written code that allows Javascript to communicate with mod_wsgi using Ajax? I'm looking for a very simple example that I can build off of (e.g. uppercase a string and return it). The examples that I've seen use PHP/ASP. When I substitute wsgi for 'php' or 'asp', the program … Web Development javascript | |
![]() | I have a php script displaying muliple pages of records which has problems with the pagination of the web pages. When it loads for the first time I get 2 Notice: Undefined index messages - as shown below: Notice: Undefined index: start in /customers/swaag.org/swaag.org/httpd.www/SWAAG-DATABASE/VIEW_in_STEPS5b.php on line 210 Notice: Undefined index: … Web Development php ![]() |
Hi, Trying to build my own simple-ish forum script, and i want to display 2 forum posts snippets inside each category on the default page. I thought i knew the code for it but when i do [CODE="php"] $cat = mysql_query("SELECT * FROM forum_cat")or die(mysql_error()); $catresult = mysql_num_rows($cat); for($count = … Web Development php | |
good day, i'm new to programming but i'm eager to learn, i have a problem, after i submit the number of quantity, the product will add, but then when i search again for another item, the page refresh.. i wanted to output all of the items in sales table so … Web Development php | |
Hello - I am trying to get a looping date repeater to work but it is driving me crazy! It works for most dates but breaks for dates that originate in early November. I created a page that shows the code and the output for anyone to see what is … Web Development php | |
Hi All, I am making website in php. I want to add funds to my account using paypal api. Please help me how i can do that? Regards | |
Hello, I'm totally out of luck with creating a working patternt to match for my preg_match. What I would like to do is, create a pattern that will match sentenses in a bunch of text.. It should recognize a word that has a capital letter and take it as the … | |
Hello I want to change date format to insert date in mysql. I tried as below code [CODE]<script type="text/javascript"> $(function() { $("#datepicker").formatDate('yyyy-mm-dd'); $("#datepicker").datepicker(); }); </script> [/CODE] but its not working form me. can anybody suggests me how to do it? Web Development javascript javascript-jquery | |
hello i m using update pannel and required field validator is working properly but the problem is that red * dont appear with required fields after post back its stops till i enter required fields i want to see red * with that fields how can i??? Web Development asp.net | |
I need to know the code to login into a basic authentication popup. Web Development asp.net | |
Hi I am recently trying a rating concept in php. The project is, peoples will post the images of house and ask everyone to rate it as which is beautiful home. I've placed a 5 rating stars and doing all the vote captures. But i am confused in picking the … Web Development php | |
Following is my url [url]http://www.teamsingapore.com.sg/content/major_games/asian/16th_asian_gamesguangzhou2010/photo_gallery/cheer_on_team_singaporeasiangamesbannercontest.html[/url] Click on the first image. then navigate through the ligthbox using 'Next' button. Sometimes the images appears distorted. Is is due to the Lightbox ajax rendering of the images? Web Development image javascript | |
Hi there, I'm a newbie, and I would really like some help regarding this issue I have with my menu. First the code: [CODE PHP] 01 function public_navigation($sel_subject, $sel_page, $public = true) { 02 $output = '<ul id="sidebar_tags_ul">'; 03 $subject_set = get_all_subjects($public); 04 while ($subject = mysql_fetch_array($subject_set)) { 05 $output … Web Development php | |
I'm trying to take normal, plain Jane drop-down boxes to choose a time, and replace them with a nicer DHTML version. I followed this tutorial [URL="http://www.javascriptkit.com/script/script2/dhtmlcombo.shtml"]http://www.javascriptkit.com/script/script2/dhtmlcombo.shtml[/URL] but now my buttons are stacked on each other, the selected="selected" variable isn't pre-selecting anything, and if you click on a number (5), it … Web Development html-css javascript | |
I have a page at the following url: [url]http://streetkids.zuka.net/sandbox/map-new.html[/url] Pick a continent, select a country ( orange if in Asia, green if in Africa) click on one of the bullets and some info pops up. Works fine in FF and Safari but in IE, it works (almost) once, but then … Web Development javascript javascript-jquery | |
![]() | Here is the script I'm using: [CODE] $(function () { $('#nav a[title=toggle]').click(function() { $('#user').slideToggle(); }); }); [/CODE] [B]However[/B], when I click the Toggle link located on the nav bar, it slides the #user up, and immediately slides #user back down. Here's the CSS for #user: [CODE] #user { z-index:1; position:fixed; … Web Development javascript javascript-jquery ![]() |
hi people how can i create a system that creates a mailing system that allow my websites members contact each other throught a private messages . please tell me how to do it step by step , if there is code it will be fine but you can also tell … Web Development php | |
i need to bounce a problem off you guys that is driving me crazy i made a php login with sessions it logins in fine then as soon as i switch pages it loges me off and i did echo the ssid out and the session id does change on … | |
Hello Friends, I've around 1000 records in mysql database. in content table im using image source url like 'img.mydomain.com' so today I've registered new domain. so i want to find replace following domain and update my new domain in image path url. so please let me know how to find/replace??? … | |
I am trying to make a Measurements Units Conversion Calculater on Dreamweaver with help of Javascript. THis is my first ever javascript application and need to complete it in next 6 hours. :(( I want to have a drop box containing Length, Area, Temp etc. on top. When a user … Web Development html-css javascript | |
Hi, Can you guys help a new gut out? I'm trying to learn how to create web based database applications using MS SQL. I'm new so I'm trying to figure what design environments I should focus on. Its very importanty that I have the ability to make the final web … Web Development asp.net coldfusion database-design gui visual-basic visual-studio web-design | |
Hi, I want to give a voting option in my website. For eg. Rate "this movie " and options are good, bad.... I want to block multiple submission and my site doesn't having any login system. I am planning to store the ip address of voting computer in a mysql … Web Development php | |
How can I check if username already exists in database or not. Web Development php | |
Guys, I'm having a little bit of a problem trying to display something when the URL is a specific one. Basically purely for examples sake, if the URL is [url]http://www.mydomain.com/hello.html[/url] I want it to display "Hello", and when it isn't I want it to redirect to another page. I know … Web Development display javascript | |
I know it is possible to overload PHP functions as I have seen this done with many of the prebuilt functions. My question is how do you declare an overloaded function? Everytime I try doing this I always get some error about missing arguments (even if there exsist a function … Web Development php | |
Hello, What I'm intending to do it's an Organization chart with departments and members. Basically an organigram with different departments and different members. This is the MySQL database. And here is my attempt of doing this horizontally, but i`m kind of stuck. Could you give me some hints on how … Web Development data-structure php | |
this is my php code: [CODE]<? if ($search) // perform search only if a string was entered. { mysql_connect() or die ("Problem connecting to Database"); $query = "SELECT shoeName, shoeSize,colour,price,description FROM shoe WHERE gender='$search'"; $result = mysql_db_query("CB", $query); if ($result) { echo "Here are the results:<br><br>"; echo "<table width=90% align=center … Web Development data-structure php ![]() | |
![]() | Alright, maybe I'm having a brain cramp this late at night, but my code is not working, and I have no idea why. Any help? This is simply being used for me right now, so yes, I'm pulling straight from the $_POST. [CODE] <?php session_start(); if($_SESSION['id'] != 5) { echo … Web Development php ![]() |
Hi to all! Im having problem inserting ñ and Ñ in mysql using java. I did try to insert in mysql using CLI and it works ok but when I used it in my java it was replaced by other characters. does anyone have the same problem and have solved … | |
Hi, Im trying to run a MYSQL query to check if the input value exists first. A user fills in an input field and clicks "Add Tag" The java script on the same page checks the MYSQL table if that tag is already there and if so returns a faded … Web Development javascript mysql | |
Hi, i have two scripts, One holds the form and the other the php Query process. Im using a small piece of javascript to POST the value to my php Query process script but im finding it difficult to display a result by fading in a div based on the … Web Development javascript | |
Hi all.. I'm having a little trouble with an upload of a file.. i use asp.net with C# language.. I want to add datetime in the name of the file so that when a user uploads a file such as "test.doc" it would be saved into the server as "test-20101123-0533-milisecond.doc" … Web Development asp.net | |
Hi can anyone help me out here, I did a class working fine but i can't make objects out of it. do i need to include the file that has the class in my new file? with an include statement? say i have this. #file 1 <?php class foo { … Web Development php | |
hello to u all hi l am doing a php(using xampp) project for a website which also has an online examination.can uassist me with guidelines for my project 1.) It should have MCQ section and WRITTEN or STRUCTURED QUESTIONS SECTION and the exam project would be sitting on a website … Web Development php |
The End.