Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
60% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
4
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
2 Commented Posts
Member Avatar for liamfriel

Hello all, I am working through Beginning Microsoft Visual C# 2008 I was asked to create a console application that multiplies 4 input values. I decided to take all 4 values at once and multiply them. Here is my code: string inputNumbers; string userName; Console.WriteLine("Enter your name:"); userName = Console.ReadLine(); …

Member Avatar for castajiz_2
0
227
Member Avatar for ravi142

I am Learning so Can suggest some code. How can i add Multi select Box in Codeigniter. Thank You

Member Avatar for liamfriel
0
6K
Member Avatar for liamfriel

Hello all, I am pretty new to ASP and we are using ASP for logins for our PHP projects, we are using Active Directory LDAP. We can only connect to one container at a time. I have managed to create some code so switch containers but I cannot log in …

Member Avatar for liamfriel
0
194
Member Avatar for haribo83

Thi si probably a really simple thing to solve but I am failry new to PHP and cannot find the answer anywhere. I have a search results page that calls data from a MYSQL database. All of the correct information is displaying but one of the fields contains text on …

Member Avatar for nishchal_619
0
4K
Member Avatar for rohit.k2903

Not able to upload files on server. It is working fine in local. I want to upload some files. In my previous server it was uploading without any error.. not in new server. I set folder permission to 777, still it is not uploading. I delete existing and create new …

Member Avatar for veedeoo
0
119
Member Avatar for liamfriel

Hello all, I am trying to use more regex but I can't seem to get this to work. The aim is to check inputs for either [url, [link or <a href: [CODE] $islink = false; foreach($_POST as $k => $v){ if((preg_match("/[url|[link|<a href/i", $v)) > 0 ){ $islink = true; } …

Member Avatar for liamfriel
0
160
Member Avatar for liamfriel

Hello, I am using a script to process subscriptions on our sites - I can sucessfully get the subscription payment to process, I am having issues processing a cancel IPN request. [CODE] // assign posted variables to local variables $item_name = make_safe($_POST['item_name']); $item_number = make_safe($_POST['item_number']); $payment_status = make_safe($_POST['payment_status']); $payment_amount = …

Member Avatar for liamfriel
0
237
Member Avatar for cristi08

Hello I have a form for a shoping cart that input even the value 0. How can i program php to not insert into table the products [CODE]$row['Denumire_produs'][/CODE] where the quantyti=$cantitate is 0 Here is the form input[CODE]$query="select*from produse"; ?> <form action="cumpar.php" method="post"> <td><input type="text" name="cantitate[]" value=" " size="1"/></td></tr> <input …

Member Avatar for cristi08
0
156
Member Avatar for Mogradjinn

I'm developing an ordering system relying on PHP and MySQL; the problem I have is essentially HTML, though, and specifically with Google Chrome (no issue with Firefox or IE). If an order already exists for a customer, items are listed with input boxes but with the maxlength attribute (a variable …

Member Avatar for Mogradjinn
0
142
Member Avatar for pabzzmike

Hello, I need to rotate images in a website based on the time of day. Please help out with this code. regards, michael

Member Avatar for liamfriel
0
109
Member Avatar for liamfriel

Hello, I am using cpanel standard crontab set-up, I have the path to the file correct but the path leads to a password protected directory ie: *php /home/example/public_html/admin/script.php* admin is password protected, how would I allow the crontab access to the script? Thanks in advance.

Member Avatar for chrishea
0
129
Member Avatar for visualmonk

Hello, I am trying to use the mysql_real_escape_string() function, but I can't seem to use it without losing the content of the variable. When I use [code] $act="It's now or never" $act=mysql_real_escape_string($act);{ [/code] then attempt to insert the value of $act--it comes out null. I have established the database connection, …

Member Avatar for liamfriel
0
129
Member Avatar for liamfriel

Hello, Bandwidth on one of our sites was severely messed with on the 28th of this month. The cpanel only tracks daily access logs and didnt archive them(it does now), using aw stats I found our bot traffic to be as follows: Googlebot 145686+43 7.47 GB 28 Jul 2010 - …

0
123
Member Avatar for muralibobby2015

hello i am doing png image cropping using this function. every thing is working fine. but whenever i was uploaded .png then changing the image background color into black. here is the code[CODE]$bgimage_attribs = getimagesize($bgim_file_name); if($filetype3=='image/gif') { $bgim_old = imagecreatefromgif($bgim_file_name); } else if(($filetype3=='image/pjpeg') || ($filetype3=='image/jpeg')) { $bgim_old = imagecreatefromjpeg($bgim_file_name); } …

Member Avatar for muralibobby2015
0
113
Member Avatar for whiteyoh

Hi All, the following script works fine and updates with no issue, except on, wait for it..... Internet Explorer!!!!! Any advice would be appreciated. [code] <html> <head> <script type="text/javascript"> function showUser(str) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, …

Member Avatar for liamfriel
0
103
Member Avatar for rukshilag

ive been coding the plain old procedural way in php and i want to move that code to object oriented. can i just simply use my currently written php code into a function and then call it? pleas let me know an easy way to make my normal php code …

Member Avatar for jenyroger
0
204
Member Avatar for Roses89

Hey guys, Back again, I needed to ask two very quick questions: Number 1: In a login form,how do you make sure that the user doesnt type their username or password in Caps? Number 2: How do you display error messages after the user has tried to login with the …

Member Avatar for scaiferw
0
94
Member Avatar for liamfriel

Hello I was helping a fellow daniwebber and I noticed that I have no idea if it is possible and how the syntax works for it. Any help appreciated. example of how I think it works. [CODE] function retTrue(){ return true; } //code in if if(retTrue()){ //do some php } …

Member Avatar for SikoSoft
0
6K
Member Avatar for dandixon

Hi all, i have m y search setup which brings back a part number, a description and then underneath any associated manufacturers name and part number which could range from 1 to 20, my problem is i just want to populate my table if there is something there and if …

Member Avatar for liamfriel
0
1K
Member Avatar for tiger86

I received an email from one of my friends in reply to my Facebook mail telling them that I am deleting my account. What was so interesting was that, they too want to delete their facebook account, but the site has become so complex that they have no clue how. …

Member Avatar for liamfriel
0
172
Member Avatar for MDanz

i already have the id field which is auto increment primary key. I have another field that i want to be auto increment/autonumber but phpadmin/mysql doesn't allow? how else do i have a field with an autonumber?

Member Avatar for mschroeder
0
77
Member Avatar for niths

[QUOTE]i hav a session variable.but wen i try to access it from the other page it is not showing anything.so i think session value is not working.[/QUOTE] ------User.php------- [CODE]<?php ob_start(); @session_start(); require_once ("check.php"); createsessions($username,$password,$userid,$projectid,$projectname,$filename,$size,$allocatedmemory,$answer,$usedmemory,$Remainingmemory,$result,$data3,$abc); include 'connection.php'; $query= mysql_query("SELECT projectassign FROM projectassign where userid=(select userid from users where username='$username' and role='2')"); …

Member Avatar for niths
0
85
Member Avatar for liamfriel

Hello all, I am having some trouble getting my background image to show in FF and IE, I am using firefox web developer add-on and when I click edit css, the background image shows up, when I close the edit css it reverts back to having no background. [URL="http://www.costumeshopfinder.co.uk/test/"]here[/URL] is …

Member Avatar for diafol
0
168
Member Avatar for codewalkz

Hi, I need something like recursion wherein the query repeats itself using it's result to start the NEXT - SAME - QUERY. I made 1 but it just simple reecho the same result. [CODE]// KUNIN ANG ID NI KURIMAW $root = $_GET['id']; $result = mysql_query("SELECT COUNT(*) as count, id, sponsor …

Member Avatar for codewalkz
0
144
Member Avatar for whiteyoh

Hi All, I have an API key for google maps and its giving me the following response. My first question is, how can i extract the data? Normally i work with XML responses via CURL so im new to this. If i do use the XML example i just get …

Member Avatar for whiteyoh
0
196
Member Avatar for xo_vicke93_xo

Hi, i'm not really sure how to explain this. I have a table with a lot of places sorted by date, all connected to a MySQL database. I'd like the table to update automatically everyday and remove the top ones where the date has passed so that the table only …

Member Avatar for liamfriel
0
94
Member Avatar for caro88

Can anyone help?? I want to 2 sql command in a php file. The query is run in the search book, i want the query to get info from the loan table, if this table is empty then to display the details in the book table? Please help!!

Member Avatar for liamfriel
0
59
Member Avatar for SKANK!!!!!

[CODE]$dir = opendir ($path); while (false !== ($file = readdir($dir))) { if (strpos($file, '.png',1)) { echo "$file <br />"; } } [/CODE] super short code that lists the .png filenames obviously the $path variable is the path to the directory. how can i list them instead in abc order cause …

Member Avatar for mschroeder
0
160
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
97
Member Avatar for slucia

I am working on a site that require a php script running on a server without any request, it is a bot script that keeps (not full time but at least once a day) checking client accounts and send mail to clients when something happens.

Member Avatar for diafol
0
70