52,566 Archived Topics
Remove Filter ![]() | |
I have a .htaccess file. I have two RewriteRule's that do the same thing. This one works perfectly, and can handle a huge query: RewriteRule ^p/(.*)(/?)$ index.php?p=$1 [QSA,L] This one will only handle a query up to 255 characters. RewriteRule ^(.*)(/?)$ index.php?p=$1 [QSA,L] How do I fix this, and make … | |
How to make Month and Celebrants change its color to yellow? Thank You echo date('M'). " ". ('Celebrants'); Web Development php | |
function productview(view) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("product_view").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","product_ajax.php?result="+view,true); xmlhttp.send(); } Web Development image javascript | |
<html> <head> </head> <body> <table border='1'> <tr> <th>Agent_ID</th> <th>Address</th> <th>Bedrooms</th> <th>Price</th> <?php $connect=mysql_connect("localhost","root",""); mysql_select_db("ong_assesment',$connect); $query = mysql_query (SELECT Agent_ID,Address/Suburb,Bedrooms/Bathrooms,Price FROM suburbs); { echo '<tr>'; echo '<td>'. $row[Agent_ID].'</td>'; echo '<td>'. $row[Address].'</td>'; echo '<td>'. $row[Bedrooms].'</td>'; echo '<td>'. $row[Price].'</td>'; echo '</table>' mysql_close(); } ?php> </body> </html> Web Development php | |
Hello. I have this below SimpleXMLElement Object ( [item] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => plid_2 [name] => Playlist [ro] => ro ) [content] => SimpleXMLElement Object ( [name] => Playlist ) [item] => Array ( [0] => SimpleXMLElement Object ( [@attributes] … | |
<!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> <meta name = "description" content = "Wellington Real Estate"/> <meta name = "keywords" content = "home, housing, Karori, Mirimar, Te Aro, Thorndon, Farcourts, Jonnys, Relax"/> <title> Agents </title> <link rel = "stylesheet" type = "text/css" href = "assessment.css"/> </head> … | |
![]() | |
I have resorted to everything I can think of and I can't get a PHP variable to go into a form that is onclicked with a Javascript Function... Here is my attempts thus far: 1. Give the div that contains the onclick function the php variable as an id, and … Web Development javascript php | |
I trying to learn HTML by studying code from a downloaded web site. In the HTML code is the following snippet of Javascript. I am so new to Javascript and HTML and have no clue what this snippet is for. Any ideas? function gID(name) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS … Web Development javascript regex | |
I would like to split a txt file that i use as a log in a comment system after each 10 comments how can i do that? Here is my code, Sorry for the bad indentation: <?php $act = $_POST['act']; if ($act == "post") { $name = $_POST['name']; $area = … Web Development file-system php ![]() | |
hello, im tyring to change script from another page. i would like to change (a > true) to false and back if need be. As a dropdown or radio selection, maybe using variables but everything i have tried i have no luck. <?php if (a > true ) print "a … Web Development php | |
what are the benefits of Layers in ASP.NET ? are they important ? | |
Rather than write a huge list of properties used by a class I want to know if I can dynamically generate them when needed. I have looked and __set and __get but I am not sure how (or if) I use them with what I am trying to do. The … Web Development php | |
How can i reload `$file` with ajax or javascript each 5 seconds? <?php if ('' == file_get_contents($file)) { echo '<div id="shadow">Nobody has commented yet. Be the first? </div>'; } else { include($file); } ?> Web Development php | |
*by the name of Allah, .... only when you don't know how to compelete , just you have to ask others how shall i do ??? i really don't know ho to do or with the right words by what ??? books , or videos .. tutorials or training at … Web Development php | |
in database i have added the random and activated with boolean type and the defaul was set to As defined with 0 value.when i click log in it must desplay this: your accoun si not activate.Please check your email. but i show you are in click here to click here … Web Development php | |
![]() | Hi all. AM having a little issue with regex. Not one of my strongest skills! I'm trying to produce a simple translation system that doesn't require arrays, gettext etc. It basically has this structure: $content=<<<CONTENT <p>{{Dyma destun||Here's some text}}</p> ... CONTENT; So the page content is held in a var … ![]() |
![]() | So all a person needs Is a home server in his office or house? and programming language to build a website and make a blog website for example or a game website. So i just get a server and start building my blog website for example... Like for example Facebook … Web Development web-design |
After I press edit on the previous page, it will carries me to this page: http://localhost/RustoleumCustomCMS/administrator/input_berita_static.php?id=2 //Load berita if (!empty($_GET['id'])){ $result = mysql_query("SELECT * FROM static_page WHERE id =".$_GET['id']) or die(mysql_error()); $data = mysql_fetch_array($result); $id = $data['id']; $page = $data['page']; $judul = $data['judul']; $news = $data['isi_berita']; echo "variable"; echo $id; … Web Development php | |
Hello, I am trying to print the thumbnail out how? I still have error on the thumbnail. Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\RustoleumCustomCMS\administrator\image_gallery.php on line 147 <table id="admintable" border="1" cellpadding="2" cellspacing="0"> <tr> <th>Image</th><th>Path</th><th>thumbnail</th><th>Action</th> </tr> <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; echo "<tr bgcolor='$result2'>"; echo '<td>'.$data['image'].'</td>'; echo '<td>'.$data['path'].'</td>'; … Web Development php | |
i have added the $random in line 53 and '$random' ,'0' in 57 line inside the (),in the database i have added random and activated with boolean value which is 0 or 1,and when i click the previu/debug in browser button it show me this: Warning: mysql_num_rows() expects parameter 1 … Web Development php | |
Hi , I googled a lot and couldnt derive a proper picture. 1. How is sendmail, SMTP related? 2. Is it required to have SMTP relay configured for sendmail to function? 3. Would sendmail have a standalone existence irrespective of OS flavor? Please suggest me on the above and it … | |
I have a URL shortner script which works fine until I submit a link containing "http://", which gives me a 403 error. I'm new to PHP so you're going to have to go easy on me. My site is http://newurl.us First I tried using str_replace() to stop people from submitting … Web Development php | |
This is my code on html. I don't know to to process in my html code in PHP. Can anyone help me?Thanks in advance. <div align="right"> <form action="search2.php" method="POST"> <table> <table border="0"> <h2 align="right" style="Verdana"> Statistic Survey Search </h2> <tr><td>Select Statistic:</td><td><select name="stat"> <option>--Select One--</option> <option value="Yes">Yes</option> <option value="No">No</option> <option value="Undecided">Undecided</option> … Web Development php | |
I have a script that is requires a cron job. The script has the option to run a manual cron job which works fine and the option of seting up an automatic cron job which is where the problem is. The support from the scripts authors is poor as they … Web Development | |
guys i wil be glad if someone can explain how i can go about handling binary data, like parsing an image to be dispaly on a browser. Web Development php | |
Is it possible to retrieve a text from a URL or page content by using something like ImageUrl property on the Image Control? Ex in image: <asp:Image runat="server" id="Image1" **ImageUrl="getImage.aspx?id=2"** /> Let's say I have this code on getText.aspx Imports System.Data Imports System.Data.SqlClient Partial Class getText Inherits System.Web.UI.Page Protected Sub … Web Development asp.net vb.net visual-basic | |
Hi there, Just wondering if there is a way of inserting tuples into a table without specifying the primary key id. insert into myTable (username, password) values (value1, value2); Ok. When I use the above mentioned statement, it complains about duplicate keys. Anyone know why? shouldn't the key be generated … ![]() | |
This suppose to load my existing data to the form for editing. Yet, this is not the case, I still see the form empty why is it? The present url: http://localhost/RustoleumCustomCMS/administrator/input_berita_static.php?id=0 //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM static_page WHERE id =".$_REQUEST['id']) or die(mysql_error()); $data = mysql_fetch_array($result); $id … Web Development php | |
Notice: Undefined variable: confirmation in C:\xampp\htdocs\RustoleumCustomCMS\administrator\admin.php on line 126 if (!empty($_REQUEST['id']) && !empty($_REQUEST['mode'])){ if ($_REQUEST['mode'] == "delete"){ $id = $_REQUEST['id']; $result = mysql_query("DELETE FROM static_page WHERE id =".$id) or die(mysql_error()); $confirmation = ($result) ? "Data telah terhapus." : "Gagal menghapus data."; } } ?> <div align="center"> <div style="width:700px;text-align:left;padding-top:5px;"> <?php echo … Web Development php | |
![]() | I have this rewrite setting: RewriteRule ^([a-zA-Z0-9_'-]+)$ /index.php?action=$1 but now I need for example to return an error to a register page by $_GET /?action=register&error=1 but with the rewrite rule I can't get a PHP script to work with this URL: /register&error=1 What rewrite rule do I need to make … Web Development php |
Hello, Cek this out: [webpage](http://www.rustoleum-indonesia.com/aerosol-produk.php) It's a static image gallery. I am trying to convert it to CMS and trying to create a CMS for the image gallery. I do not know how to. I have all the images and thumbnail in one folder. Any clue how to? The front … | |
I'm trying to do a php-mysql project that can make phone calls from the computer. The concept is - My call list is stored in a mysql database and when a tele-caller login in to their account. The call list is displayed and a call button is placed beside every … | |
Hi there, I'm currently rewriting my dynamic urls using mod_rewrite which is working fine. I'm just wondering how best to handle pages that don't exist. Right now it works by getting the page id and displaying the content, if the pageid doesn't exist it displays a custom 404 message. What … Web Development php | |
I have written a mysql query- SELECT questions.id,questions.date,questions.title,users.user_name,subjects.subject FROM questions INNER JOIN topics ON questions.topic_id=topics.id INNER JOIN subjects topics.subject_id=subjects.id INNER JOIN users ON subjects.id=users.sub1 OR subjects.id=users.sub2 WHERE users.id=8; which is giving error- #1066 - Not unique table/alias: 'topics' .i am unable to understand the problem. | |
when i send email from php mial funtion it working best in yahoo and gmail acounts but images and background images is not showing in outlook 2007,tell me what is solution and better way to show image in oulook <?php // multiple recipients (note the commas) $to = "zohaib@sikone.com, "; … | |
hi guys, i am making a new app in cakephp (and i am new to the framework.. learned how to use it last night).. and i am supposed to make a signup system and login system but i am stuck in the signup. i Worte the models and controllers and … | |
i have the folowing code <?php $datumeind = date("Y-m-d");// current date $datumverleden = strtotime(date("Y-m-d", strtotime($datumeind)) . " -99 year");//current date -99 years $datumbegin = date('Y-m-d', $datumverleden); if(isset($_POST['zenden'])) { if($geboorte_datum <= $datumbegin && $inleven_dood == 'In leven' ){ ?> <script type="text/javascript"> <!-- var r=confirm("Klik ok als In Leven."); if (r==true) ("<?php … Web Development javascript php | |
hallo there i read an excel file using excel_reader library. The excel file contains greek characters. i get the data and store it into arrays (it is a common xls file that contains names, lastnames and fathersnames) using characters set utf-8. the code works fine //i uploaded the xls file … Web Development microsoft-office php | |
What is meant by it being a "framework"? I'm reading and trying to learn ASP.NET and basically what I'm seeing is that you either use C# or VB.NET as the programming language for web development. But where is the ASP.NET aspect coming in? Is it just the name of the … | |
Hi I am unable to retrieve values from json object.The json data as coming like this when observe from firebug : [{"PROJECT_ID":"CASEENO"},{"PROJECT_ID":"DARKROOM-2"}] This is my ajax code: $.ajax({ type: "POST", url: "getdata.php", dataType: "json", data: { 'dataString': projectid }, cache:false, success: function(data){ alert(data); for (var i = 0; i < … Web Development javascript json | |
Hi! Anyone can please tell me the best online tutorial of Ajax for Java Programmers. Thanks Web Development javascript | |
I am not new to OOP I am tidying up a very large site of mine and trying to create a much better structure (more in keeping with the whole point of OOP). I have decided to use mysqli (please don't suggest PDO as I have decided againast it) which … | |
I use 4 radio button with the same name , and with same className, When Ever I try to get the value by using JavaScript it gave an value "Undefind" ,How to over come this???? alert(document.getElementsByName(m1).value); this is used by me to get the value of m1 name radio button … Web Development javascript javascript-jquery ![]() | |
hi guys, need your help on this. had a form on html and saving data to mysql but it's not working here's the html code: <html> <body> <table width="300" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td><form name="form1" method="post" action="insertac.php"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td colspan="3"><strong>Insert Data Into mySQL Database … | |
Hello, I trying to post a string, but ihave a problem When I post the string in chrome, the string length that i post it is more than the realy string that i send, but in firefox and IE the post is working correctly, what is the reason for this … Web Development php | |
Hope someone can help he because I'm at a loss. I'm trying to set up a PHP local server on my new machine using ISS7 and Windows 7 I seem to have PHP installed correctly and it's linked with the ISS Manager. All of the necessary Window Features are turned … Web Development microsoft php window-manager ![]() | |
**I have a fairly simple script, but I'm having trouble sizing up my randomly displayed images. I want them all to have the height of 150px. Any help would be great. Thanks! code below:** <script type="text/javascript"> window.addEventListener?window.addEventListener('load',function() { ray.rand('thisCell'); },false): window.attachEvent('onload',function() { ray.rand('thisCell'); }); // FF : IE1 var ray= … Web Development image javascript | |
Hello everyone, I have a website with admin panel...the admin can upload news and I want the users to be able to submit news like me but after theyr news are reviewed and approved from me how can I do this I will show my upload script from the admin … Web Development php | |
Hi, I am used to HTML. What is Coldfusion? Why do people use it? What are the circumstances you would use it. Does it require proprietary software? What are the advantages and disadvantages to using it over HTML? Is it compatible with CSS,Javascript, PHP, and MySQL? What are personal opinions … Web Development coldfusion html-css |
The End.