39,392 Topics
![]() | |
Can anyone tell me why echo intVal($_REQUEST["CustID"]) where $_REQUEST["CustID"] value is 62013300111, produces 62013300111 on one php Server but on another it produces 2147483647. I cannot find any logical reason. regards Steve | |
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <!--[if lt IE 7 ]> <html class="no-js loading ie6 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if IE 7 ]> <html class="no-js loading ie7 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if IE 8 ]> <html class="no-js loading ie8 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html … | |
I've run this code to generate two encrypted passwords from a plaintext password echo crypt("TestingTesting123"); echo "<br />"; echo crypt("TestingTesting123"); The two strings are identical but when I run it I get this output $1$/PGpeshL$UhmiaU/jlaJTWZV8g7Ze4/ $1$MnRnzohZ$zh9VpHPOwYejI.XR76vmC/ Some people have reccomended crypt() as a good password encryptor, but how are you … | |
I hate to sound redundant,but can anyone point out step by step how to configure my localhost WAMP server installation to send e-mail.I do have a GMail a/c. It would be highly appreciated if anyone explained every step of the process.Tried to configure PEAR,PHPMailer,sendmail but with no luck. | |
Guys Ive spent some time trying to see whats wrong but im getting nowhere.... Let me explin what I want to do. Firstly I want to obtain the whole size of a directory (foldersize function). Secondly, i want to pass that number (in bytes) to the foldersize_formatted function to show … | |
functions of each code in php..i fail to understand. am a begginer and i need help | |
How to store 3000 image in mysql fast not one by one? | |
Hey everyone! I have a members.php page/file in which i want logged in users to see the other users registered in the database. I'm not exactly quite sure how to do this and I'm struggling quite a while now with this so your help will be VERY much appreciated. I … | |
Hello, I am look for some help with a query where the query changes on the basis of input parameters. Like $variable = 'abc'; $rs=mysql_query("SELECT * FROM table WHERE `column`='$variable'"); But what about a scenario where this variable is not assigned or is null or blank. In that case I'd … | |
I want to send a confirmation mail to users given email id aftre his/her registration. I am trying this in codeIgniter framework only. But I didn't get the exact output. Please help me, what is the correct code I can use here? Please not: I am using Xaamp server. Thanks … | |
<?php session_start(); define( “USERNAME”, “john” ); define( “PASSWORD”, “secret” ); if ( isset( $_POST[“login”] ) ) { login(); } elseif ( isset( $_GET[“action”] ) and $_GET[“action”] == “logout” ) { logout(); } elseif ( isset( $_SESSION[“username”] ) ) { displayPage(); } else { displayLoginForm(); } function login() { if (isset( … | |
Good afternoon All. I'm running into difficulties trying to get a random selection from a subset in a query. Basically what I have is a table with a record for every New Active referral, that contains the date(active_date) the member ID(mem_id) and the referrer ID(ref_id)... What I need to do … | |
I am trying to convert 08 and 09 to 8 and 9 respectively, but they are not getting converted. I tried 08+0 , 09+0 but the result I obtained in both the cases is 0. The above method is working for 01 to 07 and I am obtaining results as … | |
I am running a check from my Db to see if a grade exists, if it does then spit out the grade inside a link. If not then spit out another link. The bit that includes the grade where a grade exists works a treat, it just does not like … | |
I want to introduce categories in Jump menu These categories are stored in the database is the way to do it I have tried but this does not work <?php session_start(); include("myclass.class.php"); function genRandomString() { $length = 10; $characters = '0123456789abcdefghijklmnopqrstuvwxyz'; $string = ""; for ($p = 0; $p < … | |
A little find and replace function for PHP, not tested, but theoretically should work. | |
Hi All I am trying to implement implement a coherent, extendable object oriented solution in PHP. I am not sure where to start to solve this problem. (Not home work) The Problem • I need to use a basic command line program that when called will retrieve and store a … | |
I googled and googled to try and find a comprehensive wiki/tut on how to share htdocs across a dual platform. My base install is Windows 7 64bit, and recently (6wks ago) set up a dual boot. One thing pained me for a while of not being able to use the … | |
This script will generate a thumbnail image of any JPEG image that is sent to it... This file is independant, and mine is named resize.php you can send an image to the php file, and then return the thumbnail for viewing. It does require some work, but WELL worth the … | |
Hello, i want to change te result of showing in the browser, now it shows this when i click 2 3 4 or next. Search+source+code&page=36 Search+source+code&page=72 Search+source+code&page=108 and i want to change it to this, Search+source+code&page=2 Search+source+code&page=3 Search+source+code&page=4 If i change $per_page = 36; to $per_page = 1; than works … ![]() | |
I am writing some code that will have several functions. I need the functions to have my database connection, is there a way that I can include the connection variable in all functions? Thanks | |
Hello and thanks in advance for taking the time to look at this. I have an issue validating a Mailing Address form field. The problems is when users enter an address that has two sets of numerals. For instance; "12345 ABC Street Suite 200" will result in a validation error. … | |
I'm completely a newbie and I have this problem drilling into my head. Any fast help will be highly appriciated. I have a table "peoplebase" and there's a column "alias_switch". Now I want a script to act as a switch, if "alias_switch" is "1" then it should make it "2", … | |
hey all, Just a quick one (I hope). I've only ever really done this as a button from something simple like a drop down box. I have a table which is populated by a mysql db: echo "<table class=\"gridtable\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <th>Employer</th> <th>Vacancy</th> <th>Vacancy Type</th> <th>NoVacancies</th> <th>Learning Provider</th> <th>Contact … | |
I have this code in PHP: $sql = mysql_query("select * from peoplebase where FName like '%$fname%' AND MName like '%$mname%' AND LName like '%$lname%' AND street like '%$street%' AND city like '%$city%' AND state like '%$state%' and zip like '%$zip%' and ssn like '%$ssn%'"); while ($row = mysql_fetch_array($sql)){ echo "<div … | |
I am building a chat application based on websocket protocol.I am uploading this on an apache server and i am getting this error : "Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use" I am using port no. 12346. When i checked this port's status i got … | |
hi... i have this error in my code Fatal error: Call to undefined method myclass::addCat() in G:\AppServ\www\society\Admin\addCat.php on line 23 this is aclass function function addCat($t1) { mysql_query("insert into categories (Categoriesname)values ('$t1')") or die(mysql_error());} and this aline have a error if (isset($_POST['but1'])) { $t1=$_POST['txt1']; $m= new myclass(); $m->addCat($t1); } I … | |
I tried to run this code on xampp and also on codepad and it seems it is not compiling at all. <?php class MyName{ public $name="johnh"; public $lastname="doe"; public function setProperty($var_name,$var_lastname){ $this->name=$var_name; $this->lastname=$var_lastname; } public function getProperty(){ return $this->name. " ". $this->lastname; } } $obj=new MyName(); $obj->setProperty("jane","doe"); $obj->getProperty(); ?> Is … | |
i have the following code in my php script. it's for displaying a Crystal Report file. $cr = new COM( "crystalruntime.application" ); if ( $cr ) { $cr->OpenReport( "SelectExpert1.rpt", 1 ); } if i try to access the file with this code on my browser i get the following error. … ![]() | |
Is there a way to load CSS from the database, I am developing an Ecommerce website for UK in a system in which the user can discuss directly with the suppliers through the inbuilt chat. Please someone help me by showing the coding, Thanks. |
The End.