39,393 Topics

Member Avatar for
Member Avatar for web3

When i put in this code WHERE to='$username' won't work? [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username = $_SESSION['username']; $query = mysql_query("SELECT * FROM pm ORDER BY id DESC"); $message = '' ; while ($row = mysql_fetch_array($query)){ $id = $row['id']; $to …

Member Avatar for web3
0
112
Member Avatar for macneato

Hi, so im pulling arrays from facebook. But i would like to sort them. Here is how the arrays look [CODE] Array ( [0] => Array ( [eid] => 203966119376 [name] => Funtastic - a show for the whole family! [tagline] => [nid] => 0 [pic] => http://profile.ak.fbcdn.net/object2/857/53/s203966119376_6012.jpg [pic_big] => …

Member Avatar for macneato
0
203
Member Avatar for vaultdweller123

hello guys im a php programmer and im new to homebased programming jobs. I just want to have an idea on how homebased programming job works? how do i find some clients? how to transfer files? how to receive my payments? And they say you are paid per hour? but …

Member Avatar for vaultdweller123
0
157
Member Avatar for perosf

Hi I found this code and do as it should but I just code as to add my website [QUOTE]Well first you need to download the GeoLite Country database in binary format [I][URL="http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"]http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz[/URL][/I]. Next, upload it to your server. Afterward, download the [I][url]http://geolite.maxmind.com/download/geoip/api/php/geoip.inc[/url] [/I]file and save it on your server …

Member Avatar for diafol
1
1K
Member Avatar for futhonguy

Dear all, I am trying to submit my data on a php created form to mysql database where it is separate by 2 tables (device) and (location). As some of the devices shared the same location, 2 tables are created as below. For location table, i had created 2 fields: …

Member Avatar for futhonguy
0
203
Member Avatar for Stefano Mtangoo

There is good script by KKeith [url]http://www.daniweb.com/forums/post951182.html[/url] I want to use it as my base script with some modification. Before I customize it, I want to Make it OOPized into class with functions in functions.php and login+register.phps Please help me on doing that! I'm intermediate btn newbee and intermediate developer …

Member Avatar for Stefano Mtangoo
0
235
Member Avatar for j_limboo

Hi newbee to php mysql appreciate if anyone can help in change password in sha1 Current mysql table [CODE] `users` ( `id` int(255) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `firstname` varchar(50) DEFAULT NULL, `lastname` varchar(50) DEFAULT NULL, `password` varchar(40) NOT NULL, `active` int(1) NOT NULL DEFAULT '0', `ip` …

Member Avatar for j_limboo
0
140
Member Avatar for peck3277

Hey guys, seriously going mad here, any help is appreciated. I have a directory of .txt files. What I want is this. I want to go through this directory and display it like something like this: A All files beginning with A B All files beginning with B etc. The …

Member Avatar for peck3277
0
69
Member Avatar for Stefano Mtangoo

How can I protect a folder with some files from being accessed by htaccess? I'm newbie so take it with grain of salt.

Member Avatar for Atli
0
121
Member Avatar for sethm

I have recently had some help from a very knowledgeable person here on the forums about uploading an image and inputting the path into a DB. I have even been able to tweak this code to update the rest of the fields on the website, when I need to edit …

0
106
Member Avatar for abdullah_359

H, i am very happy to discover new friends , and would you like help me recently i have got domain and hosting i want to add the best game script with data bse , any body can help , plese design . Thank you . . . . . …

Member Avatar for abdullah_359
-1
97
Member Avatar for techgossips

I’m going to demonstrate a very short and simple method of avoiding SQL Injection at the SQL query level. You’ll need MySQLi support, on Debian you can apt-get install php5-mysql will contain everything that you need, and would be installed by default with your LAMP Installation. Calling: [url]http://www.mynonexistentdomain.com/test.php?user_id=10&record_number=1[/url] Ignoring any …

Member Avatar for jomanlk
0
327
Member Avatar for Gearspro

Hi guys, really need your help on this one. Because i have been searching the web all day today and i cannot find out how to it. The only possibility i found was to pay a professionally do it for me, but sadly i don't have the money to afford …

Member Avatar for Gearspro
0
156
Member Avatar for whiteyoh

Hi all, I have a pdo connection script to mysql, which works fine. What im a little stuck on is that when i "include" the file, its connected, but how do i call the table to which my query is related to? The first snippet is the connection, and the …

Member Avatar for whiteyoh
0
121
Member Avatar for Andy_nexus

Hey all, need some advice. which would you say was more efficient i've checked the execution times of both scripts and they average out about the same tbh, just wondered if one way was a 'better' way of doing it. Code 1 [CODE=php] <?php $url_home = 'url'; $top_10 = "SELECT …

Member Avatar for jomanlk
0
153
Member Avatar for akkkk

Hello, can somebody tell me why I get a parse error in this file? The error message is on line 20 according to the error log, the last line. [CODE]<?php // errormsg.php function error($msg) { ?> <html> <head> <script language="JavaScript"> <!-- alert("<?=$msg?>"); history.back(); //--> </script> </head> <body> </body> </html> <? …

Member Avatar for akkkk
0
246
Member Avatar for peck3277

Hi all, I've tried searching both here and google for help on this one. I'm not quite sure what to call it basically I have a directory with different files all .txt. I want to display only the ones beginning with letter A. How do I modify my below code …

Member Avatar for ShawnCplus
0
123
Member Avatar for j_limboo

Lately I have learnt many things from Daniweb specially on PHP and mysql. I am building a HR application where I was looking for visitor to leave a message and which should redirect to admin or who ever is responsible Any suggestions is greatly appreciated

Member Avatar for j_limboo
0
88
Member Avatar for shishtawitch

how can i fix use of undefined constant in php.ini so that [B]constant[/B] and [B]"constant"[/B] should not gives me any error

Member Avatar for Atli
0
156
Member Avatar for Facte

Hi there everyone. Does anyone have any idea how to stop my xml feed displaying # instead of ÂŁ and companys instead of company's. I've tried everything I can think of. In UTF-8 it won't show hardly anything in ASCII it works but still spits out the errors above. [CODE] …

Member Avatar for network18
0
99
Member Avatar for shishtawitch

guys i am trying to host a site on my own home server but when i make virtual host in httpd.conf like following NameVirtualHost *:80 [code=xml] <VirtualHost *:80> ServerName [url]www.mydomain.com[/url] DocumentRoot c:/wamp/www </VirtualHost>[/code] it gives me the following error [B]Forbidden[/B] You don't have permission to access / on this server. …

Member Avatar for network18
0
51
Member Avatar for PetrQ

Hello, I use html2ps/pdf - as upgrade of FPDF - for conversion html/php pages to pdf. It works great but I cannot solve the problem - how can I convert only part of the page without other CSS style. FPDF offers class CLIPPING. However official html2ps/pdf forum doesn´t work properly …

0
63
Member Avatar for DemonGal711

I've been working on this code to get data from a website and bring it back to my page so that I can use it. I've got that and I have another script to create an image from the line I got from the site so I'm good so far. …

Member Avatar for DemonGal711
0
88
Member Avatar for maheshks230

[B]Registeration[/B] hai plz validate the mandatory fields give me jqueryscript to that php code [CODE]<html> <head> <title>Registration</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.metadata.js"></script> <script type="text/javascript" src="js/jquery.validate.js"></script> <script type="text/javascript" src="js/validate.js"></script> <form action="Register.php" method="post" name="regForm" id="regForm" > <table width="778" border="0" align="center" cellpadding="0" cellspacing="1" > <tr> <td height="25" colspan="2"><span …

Member Avatar for network18
-2
175
Member Avatar for the_programmer

Hi; I'm sorry if this is a really newb level question. I have a register script and a login script. Both of my scripts work great seperatly until I include the login script with the register script. I know you aren't allowed to have two headers on one page and …

Member Avatar for network18
0
99
Member Avatar for mjenn2

A few years ago I wrote a mysql/php website, recently the host went bust and it has moved hosts but now quite a lot of the site gives errors - mostly the new server just gives me 500 - internal server errors. I've fixed a few of the problems that …

Member Avatar for network18
0
111
Member Avatar for aerliana

[code=sql]"SELECT tbl1.staff_ic, tbl1.staff_name, tbl2.dec_status,tbl4.location, tbl3.post,tbl3.grade FROM staff_detail tbl1 INNER JOIN staff_declare tbl2 ON tbl1.staff_ic = tbl2.staff_ic INNER JOIN staff_post tbl3 ON tbl1.staff_post = tbl3.num INNER JOIN staff_department tbl4 ON tbl1.staff_dep = tbl4.no ";[/code] isn`t my coding is right?? why when i execute my command just certain data are appear and …

Member Avatar for network18
0
62
Member Avatar for rich69

Hello ALL: New to the forum. I have run into a problem over the past 48 hours for which I can't seem to be able to resolve. I am running an Apache 2.0 Server, with PHP, and MySQL. All servers were working fine until 48 hours ago when all hell …

Member Avatar for omoabobade
-1
354
Member Avatar for O71v13r

Hi everyone, I have a problem with one of the problems (17) that i try to solve on the [URL="http://projecteuler.net"]Project Euler[/URL] site. The problem is as follows: If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + …

Member Avatar for somedude3488
1
197
Member Avatar for danang

Hi, are there anyone who can help me out, about making dynamic combo box in a form on drupal? scenario : there are two combo box. value on the second is depend from first combo box.... hm, it will be easier if u see my sample scripts on my attachment. …

0
48

The End.