No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
15 Posted Topics
Re: i guess if you use the date function to show/insert the date in YYYYMMDDHHMM format with the username .. then subtract the current time again in YYYYMMDDHHMM format from the login date and if the answer is more than 5 mins or whatever you want the users go offline after … | |
Hi all , just learned the basics of perl thru a website. and i was just wondering what the perl equivalent of php code .... for($i = 0; $i < 10; $i++) { $myarray[] = $i; } would be. Any help appreciated thank you .. | |
Hi All, im having difficulty trying to match lets say a string that is between 1 to 3 chars long and are all capitals.. i tried .{1,3}[A-Z] but it didnt work.. for ex.. "blah blahBLAh" .. what would be the reg ex code to match the BLA in the middle … | |
Is there a way to allow the php tags with the strip_tags() function ? i've tried strip_tags($text, '<?>') and strip_tags($text, '<? ?>') but it doesnt work .. any help would be appreciated thanx .. | |
Re: sounds like php is not installed correctly in apache conf .. i think the easiest way to get apache mysql and php to work is to use XAMPP from apache friends .. thats what i use anyway .. if you need help installing the xampp just let me know | |
is there a way to tell the occurence postition of the regex given ?? for example .. $text = 'PHP Hypertext Preprocessor'; if (preg_match('xt', $text)){ echo 'Found Match'; } Like in that example occurence position is 11.. I already know about the strpos() .. but that doesnt accept regex .. … | |
Re: or move line 10 all way to the bottom | |
Re: if ($result) echo"Insert record Successfully"; else echo "Problem inserting data"; you have no braces included with if ... try this if ($result) { echo"Insert record Successfully"; } else { echo "Problem inserting data"; } | |
Re: You can create a nice looking conformation e-mail by using tables ... | |
echo removes white spaces from the text and stored text shows up w/o line breaks .. How can i correct this ? When i view my db tables and contents in it using phpmyadmin, the text stored in them look normal .. the way i typed it .. but when … | |
is there any way to get a form name from a page that the post or get variables sent from ? for example : $_POST['name'] , $_POST['password'] .. What would it be if you wanted the form name to be sent ? | |
Just started practicing classes and boom my first try cant get it to work ... maybe im not seeing something ... can someone look and point out the thing that i might have misssed .. ?any help would be appreciated .. thanx here's the code : index.php <? include "page.class.php"; … | |
Re: this script is from someone else which i have found useful and used it in one of my Processing Votes This code should be placed below the database connection, but above the rest of the script. //We only run this code if the user has just clicked a voting link … | |
What would be the php mysql code to search more than 1 field in a table ? Im trying to search for a given partial phone number in all three fields home mobile and work .. im trying to use $query = "SELECT `first`, `last`, `home_phone` , `work_phone` , `mobile_phone` … | |
Hey my name's izzy and i have been around the web designing game for a while and i was trying to figure out how we can get the explode function to support javascript in a web page when splitting .. here's the code : <? function snp($str_to_look_for, $str_to_stop_at, $html) { … |
The End.