Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
2
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
1 Commented Post
~73.5K People Reached
Favorite Tags

70 Posted Topics

Member Avatar for sam023

i want to know is there any inbuild function to add spaces in javascript after particular interval..!!? there is string '00009999' i want to add blank space 0000 9999 after every 4 digits.?

Member Avatar for Dani
1
33K
Member Avatar for sam023

I m getting this error while using http api.. i cant use post method..... what changes should i made to rectify this error..!! thanks.!

Member Avatar for Jack_M
0
721
Member Avatar for sam023

i have an application which run fine on emulator now i want it into my device. for tht i need to convert it into alx file. i just want to know how can i convert my application into alx file in order to deploy into my device. thanks in advance.

Member Avatar for jingda
0
39
Member Avatar for sam023

i just to know how can we implement the feature of live streaming in my blackberry aplication.. thanks in advance.

Member Avatar for peter_budo
0
134
Member Avatar for sam023

<script> var counter1 = Math.abs(5/160); var output = counter1; alert(output); var counter = output.split('.',1); alert(counter); </script> when i run this code i got the error in firebug.. split is not a function.?

Member Avatar for vhexp
0
148
Member Avatar for sam023

Hello Friends.. i have 2 folder in root directory DEMO1 and DEMO2 containing same kind of files. when i login in DEMO1 through localhost/demo1/index.php and it will direct me to welcome.php and after login when i change demo1 to demo2 from address bar.. I Still remain in SESSION or welcome …

Member Avatar for ﻼim
0
162
Member Avatar for sam023

I just want to know which would be the best CMS for a Social Networking Site.. Is it Joomla or Drupal..?

Member Avatar for anupam.3985
0
138
Member Avatar for TheVenerableZ
Member Avatar for sam023

i want to read Excel-sheet.. for that i am using PHPExcelReader.. when i use it on localhost.. its work fine but on my linux server it throw this error [code]Fatal error: Class 'ZipArchive' not found[/code] through google i came to know that i have to uncomment the zip.dll in PHP.ini …

Member Avatar for pssubash
0
488
Member Avatar for GioChaos

such error generally comes when their is some error in sql query.. or when supplied arrguement have some problem.. try to debug your query [code]$query = "select * from table"; $result = mysql_query($query) or die(mysql_error());[/code]

Member Avatar for Member #334542
0
333
Member Avatar for srdva59

this cool [URL="http://getperfectanswers.com/menu2.html"]Menu[/URL] contain no [B]javascrip[/B]t at all.. it is based on complete CSS.. this may help you..

Member Avatar for sam023
0
170
Member Avatar for akulkarni

you can update the password also... run this query in database 'mysql'->table 'user' [code] update user set Password = md5('12345') where user = "root";[/code] above query update the user 'root' with password '12345'

Member Avatar for akulkarni
0
212
Member Avatar for benqus

Its not php poblem.. try [code] <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> [/code]

Member Avatar for benqus
0
206
Member Avatar for levsha

u can pass values from one to another page by storing it in SESSION. header is use to redirect the page. and if you really want to pass values through header only then u have genrate url. header('location:destination.php?value1=1&value2=3'); but it is not a good method... just store values in SESSION …

Member Avatar for levsha
0
95
Member Avatar for darja22

if it is one page code... then i can clearly see that u forgot to put particular code inside the php tag.. [code] include('include "includes/header_account.php"'); if($logged[id]) { [/code]

Member Avatar for Member #120589
0
167
Member Avatar for krea2r

here is small example how to print validation msg in php [code] <? if(isset($_POST['submit'])) // after submit { $username = trim($_POST['username']); // remove white spaces from value. if($username=='') // if username is blank { $error = 1; } } ?> <html> <body> <div id=msgbox><? if($error==1)echo "username cant be blank"; ?></div> …

Member Avatar for jaini817
0
196
Member Avatar for sam023

Hello friends this is something weird... when i insert some italian characters in mysql. like [B]è ò à ù ì[/B] i got this in database [B]è ò à ù ì [/B] my table charset is latin1. thanks in advance. :)

Member Avatar for cwarn23
0
254
Member Avatar for baseballfury

try below code on line 16 (above 2nd while loop) [code=php]mysql_data_seek($result, 0); [/code]

Member Avatar for baseballfury
0
210
Member Avatar for sam023

i m searching a record from database. and it contain more than 10lac records. it take lot of time and some times mysql got crashed. how i can reduce searching time..?? does xml will be helpful in this case.?

Member Avatar for sam023
0
105
Member Avatar for sam023

Hello Friends.. i m inserting near about 20000 in db at a time.. i jst want to know how can i get the number of inserted rows and time taken to done that..!!! Thanks in advance..

Member Avatar for sam023
0
132
Member Avatar for sam023

is there any to export data from mysql to excelsheet through PHP.. Thanks in advance..!! :D

Member Avatar for prem2
0
106
Member Avatar for sam023

i need javascript for a textbox which allow only alphabet and first letter becomes capital on keyup..!! any help will be appriciated..!! thanks.!

Member Avatar for chandsir
0
135
Member Avatar for sam023

i want to convert string into hexdecimal value.. Like 'Hi' into 00680069 [code=php]<?php function ascii2hex($ascii) { $hex = ''; for ($i = 0; $i < strlen($ascii); $i++) { $byte = strtoupper(dechex(ord($ascii{$i}))); $byte = str_repeat('0', 2 - strlen($byte)).$byte; $hex.=$byte." "; } return $hex; } //echo ascii2hex('he'); echo dechex(ord('hello')); ?>[/code] I got …

Member Avatar for sam023
0
1K
Member Avatar for Member #120589

though i didnt understand ur question clearly but almost same problem i m also facing..!! which is related utf-8 first of all tell where are you facing problem.? in displaying non-ascii values on browser or inserting in db..? what i found is to convert the value into hexadecimal.. n insert …

Member Avatar for Member #120589
0
158
Member Avatar for sam023

i want to convert hexa to string in php... i google and and got this function... [code=php] function hexToStr($hex) { $string=''; for ($i=0; $i < strlen($hex)-1; $i+=2) { $string .= chr(hexdec($hex[$i].$hex[$i+1])); } return $string; } [/code] it works but not in case of " 062E063506450020003500300030002E0030003000300020004B005700440020064506460020062D06330627062800200032003500380038062706440645062A06280642064A00200031002C003400320031002E0036003100320020004B005700440020062706440645062A06480641063100200031002C003400320031002E0036003100320020004B00570044 " kingly guide me little …

Member Avatar for digital-ether
0
140
Member Avatar for sam023

hello friends.. i have a excel file which has more than 20000 rows..!!`when i upload the file i got this error ' MySQL server has gone away ' even i increase the maximum excution time to 3000..and and memory limit to 512.!! i just want to know how many rows …

Member Avatar for cwarn23
0
2K
Member Avatar for sam023

hello friends.. i have a value in database in this format.. 20091231190903 i want to split in date format in php 2009-12-31 19:09:09:03 how can i do it...? kindly guide me plz..

Member Avatar for Wraithmanilian
0
185
Member Avatar for sam023

anyone can tell how to add mins in php.? i have values in Db in this format 00:10, 4:05 etc i want to add mins...!!! can anyone guide me little bit Thanks

Member Avatar for Froger93
0
110
Member Avatar for sam023

hello i m a frameset in which there are three frames..!! i want that user should not see each frame indiviually by clicking on "show this frame" in Mozilla..!! can we stop that.? thanks in advance

Member Avatar for kireol
0
74
Member Avatar for sam023

i have a page where listing of items is done... it also have searching feature with pagination... when i submit searching then its working fine.. but during panigation i have to pass all query parameters through url.. to get it work.. it there any way to use pagination without using …

Member Avatar for hielo
0
114
Member Avatar for sam023

i m using .htaccess file for that i have to change AllowoverRide from none to all...!! i just want to know does it can effect security of appache server..??

Member Avatar for Atli
0
108
Member Avatar for sam023

this is my code [code=php] $query="call call_history('','$real_sdate','$real_edate','$level','$userid',@_count,'0','10')"; //Listing the result $rs = mysqli_query($mysqli,$query); $rs = mysqli_query($mysqli,"SELECT @_count"); while($row = mysqli_fetch_assoc($rs)) { print_r $row; }[/code] always i get blank result or error mysqli_fetch_assoc() expects parameter 1 to be mysqli_result i want to do it with procedural mysqli.. not with oop mysqli..!! …

Member Avatar for Member #585571
0
253
Member Avatar for sam023

is there any way to paginate the page without using limit in Query..!! Actually i m working on predefined stored procedures. and i m not allowed to make in changes that..!!! and that does contain limit function at all..!!!! any suggestions how should i do it.? thanks in advance

Member Avatar for sam023
0
538
Member Avatar for sam023

i have a data in mysql in this format.. 1,2,3,4,5,6... can i split and show this data in this format in mysql?? 1 2 3 4 5 6 thanks ijn advance

Member Avatar for Member #120589
0
239
Member Avatar for sam023

when i wrote localhost/site/images/ i can see all images of my site... how can i stop it...!! i tried .htaccess with code "deny to all" but it does not show images when i run the site on browser..!! What should i do.?

Member Avatar for sam023
0
94
Member Avatar for sam023

i want to encrpt query parameters in Url... So that end user unable to understand it..!!! [url]www.test.com/page.php?uid=1234&tid=234[/url] can we encrypt or hide value through .htaccess..???

Member Avatar for venkat0904
0
166
Member Avatar for sam023

error_reporting(0) is used to hide error message..!! i want to hide server message but i what to show other error msg in place of server message..!! that can be possible..? Thanks,,!!

Member Avatar for network18
0
130
Member Avatar for sam023

i m updating 3000 records in on query after few sec.. page shows network timeout...!! how to get rid of it.. thanks

Member Avatar for network18
0
86
Member Avatar for sam023

[url]http://www.d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm[/url] these type of jquery pagination are riable for large data...??? where query doesnt need 'limit' in it..!!! thanks

Member Avatar for network18
0
104
Member Avatar for sam023

i m searching for it from last two hrs. but didnt find anything useful.. i hope some reply to this topic..!!! i just need a php script to upload excelsheet data into mysql table..!! thanks

Member Avatar for chrishea
0
110
Member Avatar for kbramprasath

[QUOTE=kbramprasath;1048653][code=php] <?php include("config.php"); // $sql="delete from UsersR where UsersID='$UsersID'"; $sql="CALL DeleteUsers('$_POST[UsersID]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record deleted"; mysql_close($con); header("location:delete.php"); ?> [/code] it is my procedur [code=mysql] DROP PROCEDURE IF EXISTS `UsersR_DELETE_byPK` GO CREATE PROCEDURE UsersR_DELETE_byPK ( IN UsersID INT(11) ) BEGIN DELETE FROM UsersR …

Member Avatar for sam023
0
94
Member Avatar for codewalkz

this is may be because of Query u used..!! [code=mysql] $result = mysql_query('SELECT COUNT(*), upline, name, lft, rgt FROM tree '. 'WHERE lft BETWEEN '.$row['lft'].' AND '. $row['rgt'].' ORDER BY lft ASC;');[/code] [B]count[/B] return 1 result.. delete count(*) from query and use [B]mysql_num_rows($result)[/B] for row count

Member Avatar for sam023
-1
171
Member Avatar for sam023

[code=php] include_once('session.php'); include_once('config.php'); $userid = $_SESSION['userid'] ; $uname = $_GET['uname']; $query= "call sp_active('$uname','$userid',@u_active)"; $result = mysql_query($query) or die('query_error'.''.mysql_error()); if($result) { header('location:vagent.php'); } [/code] simple php code.. but still throwing Cannot modify header information - headers already sent by i have also use ob_start(); but of no use

Member Avatar for sam023
0
85
Member Avatar for AirGear

Try this [code=php]<?php header("Location:yahoo.com"); ?>[/code] it can be possible that short tags are off in php.ini. So Try once the above code.!!

Member Avatar for AirGear
0
376
Member Avatar for dottomm

[url]http://www.lotsofcode.com/php/php-array-pagination.htm[/url] This link will be useful.. only you have put static data in an array..!!

Member Avatar for dottomm
0
161
Member Avatar for sam023

i m getting this bug.. and i still cant understand why this happening..?? here is my php code [code=php] $query1 = "call new_user('$cardDigits','$cardNo','$amount','$traiff','','','','','$creator',@_lastname,'$customer','$firstName','$email','0','0')"; $result1 = mysql_query($query1) or die('query_error'.''.mysql_error()); $lastname = mysql_fetch_row($result1); // Generate New User $query2 = "genrate_user('$lastname[0] ','$creator')"; echo $query2; $result2 = mysql_query($query2) or die('query_error1'.''.mysql_error()); [/code] Procedures are working …

Member Avatar for sam023
0
9K
Member Avatar for jyotidagia

auto suggest and auto autocomplete are two different things..!! try to google for autocomplete script

Member Avatar for sam023
0
96
Member Avatar for sam023

This is my Stored Procedure DELIMITER $$ [code=mysql] DROP PROCEDURE IF EXISTS `call`.`sp_login`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_login`(userid varchar(50),pass varchar(50),out chk int(11),out user_alias varchar(50),out user_tariff varchar(50),out c_credit decimal(15,5),out r_reseller varchar(10),out r_level varchar(10),out c_tariff char(2)) BEGIN select id into chk from cc_reseller where useralias =userid and uipass=pass and level!=0 and activated!='0'; if(chk!="") …

Member Avatar for network18
0
287
Member Avatar for sam023

i m going to make something like [url]www.respectance.com[/url] pic gallery with read more content..!!! uptil now i use hard code for my pages..!!! this time i thought i should give a try on some framework..!!!! So can anyone guide me which framework is good for such type of site Which …

Member Avatar for O71v13r
0
122
Member Avatar for sam023

Here is my code [code=php] /* Create a new mysqli object with database connection parameters */ $mysqli = new mysql('localhost', 'username', 'password', 'db'); if(mysqli_connect_errno()) { echo "Connection Failed: " . mysqli_connect_errno(); exit(); } /* Create a prepared statement */ if($stmt = $mysqli -> prepare("SELECT priv FROM testUsers WHERE username=? AND …

Member Avatar for pritaeas
0
110

The End.