52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for coreyavis

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 …

Web Development apache php
Member Avatar for coreyavis
0
766
Member Avatar for bLuEmEzzy

How to make Month and Celebrants change its color to yellow? Thank You echo date('M'). " ". ('Celebrants');

Web Development php
Member Avatar for simplypixie
0
161
Member Avatar for chira9na9pal

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
Member Avatar for chira9na9pal
0
262
Member Avatar for dean.ong.14

<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
Member Avatar for phorce
0
293
Member Avatar for reco21

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] …

Web Development php xml
Member Avatar for reco21
0
410
Member Avatar for dean.ong.14

<!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> …

Web Development html-css php
Member Avatar for phorce
0
148
Member Avatar for sanjeewa.abeywardana

What is the best and fun way to learn MVC 3 technology that can apply to real production environment? Any web site or sample projects are always welcome. I would always like to learn quick too so any videos are also welcome

Web Development asp.net
Member Avatar for sanjeewa.abeywardana
0
127
Member Avatar for jckb188

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
Member Avatar for Airshow
0
326
Member Avatar for aiki985

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
Member Avatar for aiki985
0
186
Member Avatar for Sanchixx

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
Member Avatar for iamthwee
0
138
Member Avatar for Tko_1

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
Member Avatar for Tko_1
0
289
Member Avatar for HunainHafeez
Member Avatar for HunainHafeez
0
90
Member Avatar for simplypixie

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
Member Avatar for simplypixie
0
5K
Member Avatar for Sanchixx

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
Member Avatar for urtrivedi
0
149
Member Avatar for hopetob

*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
Member Avatar for Squidge
0
104
Member Avatar for andyy121

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
Member Avatar for andyy121
0
194
Member Avatar for diafol

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 …

Web Development php regex
Member Avatar for diafol
0
323
Member Avatar for napninjanx

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
Member Avatar for almostbob
0
244
Member Avatar for davy_yg

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
Member Avatar for davy_yg
0
70
Member Avatar for davy_yg

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
Member Avatar for davy_yg
0
86
Member Avatar for andyy121

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
Member Avatar for Atli
0
446
Member Avatar for hbmarar

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 …

Web Development email php
Member Avatar for sellccvus
0
197
Member Avatar for louie540

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
Member Avatar for JorgeM
0
199
Member Avatar for bjoy21

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
Member Avatar for coreyavis
0
129
Member Avatar for magicmarkuk

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
Member Avatar for magicmarkuk
0
685
Member Avatar for hakeemtunde

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
Member Avatar for DarkMonarch
0
110
Member Avatar for michaelzip

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
Member Avatar for michaelzip
0
263
Member Avatar for rotten69

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 …

Web Development mysql php
Member Avatar for diafol
0
115
Member Avatar for davy_yg

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
Member Avatar for davy_yg
0
217
Member Avatar for davy_yg

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
Member Avatar for davy_yg
0
320
Member Avatar for Aardwolf

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
Member Avatar for coreyavis
0
297
Member Avatar for davy_yg

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 …

Web Development cms image php
Member Avatar for davy_yg
0
198
Member Avatar for subratabanerjee

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 …

Web Development mysql php
Member Avatar for DarkMonarch
0
153
Member Avatar for dyingatmidnight

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
Member Avatar for dyingatmidnight
0
180
Member Avatar for daniel36

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.

Web Development mysql php
Member Avatar for yamahaszr660
0
165
Member Avatar for ak47carbon

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, "; …

Web Development image php
Member Avatar for Citytech.tester
0
2K
Member Avatar for Awah Mohamed

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 …

Web Development app-store php session
Member Avatar for Citytech.tester
0
153
Member Avatar for johndohmen1963

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
Member Avatar for Citytech.tester
0
206
Member Avatar for dourvas

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
Member Avatar for blocblue
0
130
Member Avatar for bo0ga

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 …

Web Development asp asp.net
Member Avatar for urtrivedi
0
240
Member Avatar for venkyb47

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
Member Avatar for venkyb47
0
248
Member Avatar for nikita.chandra

Hi! Anyone can please tell me the best online tutorial of Ajax for Java Programmers. Thanks

Web Development javascript
Member Avatar for sayyapillai
0
82
Member Avatar for simplypixie

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 …

Web Development mysql php sql
Member Avatar for simplypixie
0
2K
Member Avatar for pawan768

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
Member Avatar for iamthwee
0
212
Member Avatar for cguan_77

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 …

Web Development mysql php
Member Avatar for cguan_77
0
269
Member Avatar for titosd

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
Member Avatar for almostbob
0
146
Member Avatar for Marty1963

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
Member Avatar for diafol
0
427
Member Avatar for jonsan32

**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
Member Avatar for jonsan32
0
215
Member Avatar for bulqr4eto

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
Member Avatar for baig772
0
340
Member Avatar for PhilEaton

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
Member Avatar for arrgh
0
2K

The End.