No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
12 Posted Topics
Hi hope someone can can help im having a problem with how ripple is dealing with for loops when emulating an android app using html5 css jquery and jqtouch simple loop [CODE] var len = 1; for (i = 0; i <len; i++){ alert('foo'); } [/CODE] run it through chrome … | |
Re: Hi have a look on this thread I have posted something similar to your problem [url]http://www.daniweb.com/forums/thread343312.html[/url] Hope it helps N | |
Re: Hi There Have a look phpsense.com they have some good tutorials on how to go about this they also have some source code for a full but simple login system its really good for getting the basics you can download the source files at [url]http://phpsense.com/file_download/3[/url]. Also you must read up … | |
Re: Hi create a function to sanitize your input variables and then pass the string as a parameter to that function. [CODE] function clean($str) { $str = @trim($str); if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return mysql_real_escape_string($str); } // When you want to sanitize use $string = clean($_GET['whatEver']); [/CODE] What ever you … | |
Re: Hi When I use dynamic forms this is how I deal with them First create the function [CODE]function clean($str) { $str = @trim($str); if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return mysql_real_escape_string($str); // send back clean } [/CODE] Then create the form [CODE] $sql = "SELECT Q_id, Q_Disc, service FROM questions"; … | |
Re: Hi If its to format the output from the database would you not be better using css to wrap the text placed in a container?? You can wrap text using php using the following [CODE]<?php $text = "The quick brown fox jumped over the lazy dog."; $newtext = wordwrap($text, 20, … | |
Re: Hi looks like your missing a closing form tag </form> near line 185. Just a note looking at your table structure from your query's you have separate tables for fields/attributes that could all be in 1 record of 1 table just seems a very strange way of storing your data. … | |
Re: HI you can you the server variable REQUEST_URI to find the url [CODE]$url = $_SERVER['REQUEST_URI']; [/CODE] Then to split the string by '/' use [CODE] $str = $_SERVER['REQUEST_URI']; // gets the url $keywords = preg_split("/[\/]+/", $str); // puts each split into an array $i = count($keywords) -1; // get size … | |
![]() | Re: Hi Use this to see what information can be accessed and then decide what you want to use and access it like any other array [CODE]foreach ($_SERVER as $key => $item) { echo "<li><b>$key:</b> $item<br/></li>"; } [/CODE] N ![]() |
Re: Hi Have a look at [url]www.w3schools.com/php/default.asp[/url] gives a very good run through of how to use php and mysql Basically your wanting coding for free which in this day and age don't happen but to put you in the right direction you want to running an update sql query to … | |
Hi My website if falling to bits around me and I cant see why!! All instances where I have used the ! operator in the php code such as [CODE]if(!isset($_POST['anything'])){[/CODE] Have stopped working and just return true which is causing nightmares with security ect. I have googled till im blue … | |
Hi I am trying to write a simplie login perl script all is working apart from the final if statement. if the username and password match the data stored in the txt file $auth returns true which works then a second if checks if £name is != to "admin" if … |
The End.