39,320 Topics

Member Avatar for
Member Avatar for mgt

I used the following to increment a "FOR" loop: for($row2[0] = 15; $row2[0] <= $rownum3; $row2[0]++) It worked. I tried to use the following to decrement the "FOR" loop: for($row2[0] <= $rownum3; $row2[0] = 15; $row2[0]--) It did NOT work and went into an infinite loop for some reason. Can …

Member Avatar for IIM
0
3K
Member Avatar for anitg

I am at my wits end ! Dont know what's wrong with the following code. It is always saying "Parse error: syntax error, unexpected $end in C:\Program Files\EasyPHP-5.3.6.0\www\addallbuy.php on line 51" [CODE] <?Php mysql_connect("localhost","root"); mysql_select_db("landshop_clientdata"); $Date = Date("Y-m-d"); $Agt="Landshoppe"; $user="anitg"; $Title="Mr."; $first="Anit"; $last="Gopinath"; $Age="40"; $prop="Wanted 1 BHK/2BHK and other properties"; …

Member Avatar for Insensus
0
279
Member Avatar for Sorcher

`Hello guys im trying to make this php code; [CODE]if(file_exists("u/txt/Chat/logged.txt")){ $file = $_SERVER[PHP_SELF]; if($file=="/systemchat.php"){ $file = file_get_contents("u/txt/Chat/logged.txt"); if(!strpos($file, $username)) { $myFile = "u/txt/Chat/logged.txt"; $fh = fopen($myFile, 'a+') or die("Can't open file"); $stringData = '<b>'.$username.'</b><br/>'; fwrite($fh, $stringData); fclose($fh); } } [/CODE] refreshed every second with Ajax, wondering how i should do …

Member Avatar for whiteyoh
0
118
Member Avatar for lloydsbackyard

how to remove a single quote ' in the search string...since it would generate an error if single quote is included... example, in an input box, the search string below are typed 'computer computer' 'c'o'm'p'u't'e'r if search button is click it would generate an error... please help..thanks...

Member Avatar for lloydsbackyard
0
948
Member Avatar for mehrantahir

hi everyone, i write data from database to the csv file,but i face problem how to print the csv file with multiple colors background for example first line is green then second line must be blue, please help me how can i do this in php

Member Avatar for chrishea
0
4K
Member Avatar for rcasinillo_s

Any could give me a PHP script on how to call or execute mysql stored procedure. Thank you. Roland

Member Avatar for alexopoulos7
0
1K
Member Avatar for varoluscu_prens

Hi there; There is a problem in my code. I've designed a web site that reads and querying over a XML file. Here is my XML file structure: <?xml version="1.0" encoding="utf8"?> <Root> <User> <name> ayça <name> <surname> demir <name> <department> ftr </department> <TCIdno secrecy="c">48622845695</TCIdno> <rank> tuğgeneral </rank> <telNo> 2114 </telNo> …

Member Avatar for Mad4Mini
0
151
Member Avatar for chaychie

Hi everyone, I have a code which converts a html page into excel file. The following code has been working well so far, but Im having a problem of converting the html page into excel file after I had changed the localhost to another server. It's not able to generate …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for mustafaneguib

Software: MN Tech Solutions Content Management System Software Version: 0.0 Developer: MN Tech Solutions Programmer/Designer: Mustafa Neguib (Founder of MN Tech Solutions) ok guys here it is . the project that i have been working on for the past two weeks. i have already got the green light from the …

Member Avatar for megadata
0
139
Member Avatar for agrarian

Any could give me a PHP script on how to call or execute a MS SQL Server stored procedure, passing parameters to it and receiving a value from it using an Output parameter?

Member Avatar for 99developer
0
4K
Member Avatar for veledrom

Hi, I have a query which takes too long to return result set. After then I turn result set into xls format to be downloaded at same time. Problem: Obviously, browser says "Request time out". Users will have this problem and my site will fail completely. What else out there …

Member Avatar for veledrom
0
86
Member Avatar for zohal
Member Avatar for mikeflash

Hi, I'm developing a web app, but I think that maybe I'm not doing it the right way. See, for each page I take the GET variables from url, for instance: [url]www.webapp.com/?mode=register[/url] That way, the index gets the variable and displays the right page, in this case, the registration page. …

Member Avatar for pritaeas
0
140
Member Avatar for cuonic

Hi, Just started to mess with MySQLi, created a simple login script, Connection to MySQL server establishes correctly, but then displays username is incorrect, because 0 rows were returned. 1) Am I doing it right, is the mysqli layout I'm using correct ? 2) Database structure is uid - username …

Member Avatar for decade
0
113
Member Avatar for Xtremefaith

So briefly I have a framework class that I'm using that work perfect except with the issue I'm currently having. Problem is this, everything displays on the page as expected [B]until [/B]the form on the page is submitted and the ISSET at the top is true: [CODE=php]if(isset($addAccount)){ $SP = new …

Member Avatar for Xtremefaith
0
3K
Member Avatar for knitex

I'm just wondering how to solve this problem. I've tried it myself with the code below but it doesn't seem to work. I made it so the database results come up from the database HEADSTONESA and it has a section called KEYS which is the cemetery key. I was wondering …

Member Avatar for decade
0
144
Member Avatar for 080346

Hello everybody i am upload image using php file uploader code provided at w3schools and it is uploading the images but when i upload swf file it will give me errors... i dont know why this is happening any suggestions... Much Obliged

Member Avatar for Arkinder
0
141
Member Avatar for mgt

I created a form that collects a title and some content (as well as some other data), and would like to take that title and content and automatically create a link and a new and simple web page for it (think of Craigslist). So, in the end result, when other …

Member Avatar for mgt
0
127
Member Avatar for jakizak

Hi guys, having a bit of trouble with the following piece of code, [CODE] <?php if (strcmp($pubinfo_username, $_SESSION['username'] ) == 0) { echo "<img alt=\"Remove this post\" height=\"20\" src=\"../images/btns/x.png\" width=\"25\">"; } ?> [/CODE] What I need this code to do is compare the string from the variable $pubinfo_username and compare …

Member Avatar for faroukmuhammad
0
108
Member Avatar for lastgame2007

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\samples\htmls\login.php:7) in C:\xampp\htdocs\samples\htmls\login.php on line 39 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\samples\htmls\login.php:7) in C:\xampp\htdocs\samples\htmls\login.php on line 39 Warning: mysql_num_rows() expects parameter 1 to be resource, …

Member Avatar for faroukmuhammad
0
127
Member Avatar for stranger_on_way

Hi I am trying to open an image file in abc.php using function readfile() while trying to access the same image from another file say xyz.php using following tag: [CODE]<image src="abc.php" />[/CODE] But i don't know where it went wrong? Please help me out regarding this.

Member Avatar for ddymacek
0
93
Member Avatar for aaro

hi i have downloaded this as source code and tried with my limited abilities to make it a <textarea> instead of <input type text. everything seems to work until the final update page update_ac.php when i submit i get the error..... You have an error in your SQL syntax; check …

Member Avatar for aaro
0
199
Member Avatar for phaedrusGhost

Hi all, i am working with Uploadify ( a neat little file uploader ) and had a tough time finding an image re-sizer to work with it. I finally found one that works quite well but it encodes the file name using md5 encoding. I am not sure where and …

Member Avatar for phaedrusGhost
0
117
Member Avatar for jacob21

I am using below curl function for sending SMS. if i put some spaces in message its not working.otherwise its working <strong class="highlight">function</strong> sendSMS($mobile, $msg, $sender, $sendPass, $sendID) { $msg=urlencode($msg); $ch = curl_init(); $url="http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?username=xxxxx&password=xxxxx&sendername=nix&mobileno=$phone&message=$message"; //echo $url; //$url=urlencode($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); …

Member Avatar for ddymacek
0
219
Member Avatar for Whilliam

Hello guys, sorry if this is a noobish question but I'm really new to framework. My question is how do you pass parameters with codeigniter?

0
81
Member Avatar for lloydsbackyard

i need to trim a student id below is my php code <?php $stud_id ='MCC-2011-2012-0001' //what is the code to remove the MCC-2011-2012- so that i can retrieve the 0001 //or code to remove the first 14 characters echo $stud_id; ?> //thanks a lot...:)

Member Avatar for lloydsbackyard
0
193
Member Avatar for Paaat

Good evening or morning everyone.. Is there any way to understand this: $array = ('element 1','element 2','element 3'); while($x=each($array)){ echo $x['key'].' Value:'.$x['value']; } I mean where did the 'key' and 'value' come from although they're not defined in the file at all??

Member Avatar for edwinhermann
0
115
Member Avatar for Stefano Mtangoo

Hi, I'm becoming more paranoid of security issues (Not Insane anyway :)) and would like to ask you guys what do you do to prevent SQL injection apart from using parametrized query and data validation. Thanks

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for Hani1991

Hello How do you doin I wantto know what this difference between $HTTP_POST_VARS['somevariable'] and $_POST['somevariable'] I read the first one is safer than the second one because the second one prevents hackers from hacking through the computer.. what computer is that?? And how is it safer??

Member Avatar for Hani1991
0
219
Member Avatar for sunnybens
Member Avatar for ibakir
0
230

The End.