Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #1K
~32.7K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.

38 Posted Topics

Member Avatar for whiteyoh

I take it you've tried the usual steps of displaying mysql_error(), using echo to display the results so that you can see the plain new password as well as the md5 password and then comparing that with what is in the database?

Member Avatar for rproffitt
1
2K
Member Avatar for wad

I think the problem is you set the header in this page as the image so it only displays 1. Try looping through the sql on another page and calling image.php with an idea of what image to show and doing it that way eg. <img src="image.php?pid=4" /> then relating …

Member Avatar for pritaeas
0
13K
Member Avatar for shibobo2001

Well you would need some kind of 'friend' table that would link together the different user_ids. It could also have an 'active' flag on it that represents whether a request is pending or active (0 for pending, 1 for active). Depending on how the login system works, if you use …

Member Avatar for Brian_3
0
4K
Member Avatar for littletechie
Member Avatar for littletechie
0
89
Member Avatar for kbjustin

Although mysqli has benefits in preventing SQL injection I would still say it is good practise to make sure you check that any data is in a format you would expect it to be. Get into these principles early, the server you're working on now may be great and use …

Member Avatar for paradox814
0
163
Member Avatar for rapture

If you can code in C# then why are you looking at php? Can't you make a webiste in C#.net? It's roughly the same in syntax as PHP. You'll just be doing the same thing as you would in C# as PHP isn't a client side scripting language. Either way …

Member Avatar for rapture
0
233
Member Avatar for itisnot_me

You want to use the following in a new file (download.php) [code] // We'll be outputting a PDF header('Content-type: application/pdf'); // It will be called downloaded.pdf header('Content-Disposition: attachment; filename="downloaded.pdf"'); [/code] change the filename parameter to what they called the file in the db and use the correct extension. Also change …

Member Avatar for itisnot_me
0
6K
Member Avatar for Sevenupcan

Hey, You need to look into using the GD library more specifically imagecreate and imagecopymerge there's a lot of documents on the php.net site and plenty of other tutorials around [url]http://uk3.php.net/manual/en/ref.image.php[/url]

Member Avatar for samarudge
0
125
Member Avatar for angryfans

instead of just [code] <h3><?php echo $story; ?></h3> change it to <h3><?php echo substr($story,0,50);?></h3> [/code]

Member Avatar for Member #120589
0
145
Member Avatar for kako13

its because it is escaping the " character. Think about it if it echoed it straight out it would end up messing up the code. Look up htmlentities and and encode it with ENT_QUOTES $var = htmlentities($_GET['search_field'], ENT_QUOTES); Unless you really, REALLY trust your users, you need to validate $_GET['search_filed']; …

Member Avatar for kako13
0
181
Member Avatar for BigDan531

after your update is successful you need to use [code] header("Location: nextpage.php"); [/code] make sure you have ob_start(); at the top of your document as well before anything else

Member Avatar for pin8marian
0
103
Member Avatar for levtyler

How is the collection populated? Does it come from a database? If so can't you just change the order by in the mysql query? if not just use the sort function [url]http://uk3.php.net/manual/en/function.sort.php[/url]

Member Avatar for TommyBs
0
511
Member Avatar for InsightsDigital

There's nothing wrong with adding it as an option. As you so rightly said YOU have a choice which way to sign in. As a site owner you're making your site accessible to more users and potentially getting more marketing out of it.

Member Avatar for InsightsDigital
0
111
Member Avatar for tulipputih

what do you mean by column weighting? If you want to choose a preference you just do [code] SELECT * FROM table ORDER BY column_1, column_2 DESC [/code] changing column_1 etc to whatever field you want to order by. You can order by more then one and you can do …

Member Avatar for tulipputih
0
170
Member Avatar for brianzet

Why don't you have a site_id column on your table and assign each site an id? Then you can just do [code] $q = @mysql_query("SELECT * FROM article WHERE site_id = $site_id ORDER BY article_date DESC LIMIT 1"); [/code] so each one of your sites has a $site_id variable that …

Member Avatar for brianzet
0
212
Member Avatar for mrcniceguy

What is the name of your user table? Is there a user_id column or something similar on the gallery_photos table?

Member Avatar for mrcniceguy
0
154
Member Avatar for TommyBs

Hi all, I've recently begun working with mysqli in a php site in order to make use of bound queries. Now I have a config file that I am including in all pages that has something similar to: $dbc = new mysqli(_HOST,_USER,_PASS,_DBNAME); and this works as expected. If I then …

Member Avatar for kvprajapati
0
128
Member Avatar for Hafner99

What language do you intend to use. If your servers have php then phpbb is free for you to use and quite customisable but it has it's own auth system as does vbulletin. I'm not sure how easy it is to re-configure these to use your existing system. I know …

Member Avatar for bobchrist
0
118
Member Avatar for Temax

Surely you need to echo the path out in an img tag otherwise all you will do is read the name e.g. [code] echo "<img src=\"logos".$file."\" alt=\"".$file."\" /> [/code]

Member Avatar for koolhq
0
112
Member Avatar for C.G.P.

It's interesting to read what you say here but I think it's often overlooked that, what you see the intended purposes are and how your users actually use it can be 2 different things. I could have the best idea in the world that would totally revolutionize how people think …

Member Avatar for TommyBs
0
274
Member Avatar for Tekkno

Either echo the <a> Tag around the url or just use cscgal's version. It is basically and more efficient version of what you are doing and it can replace what you have done. or you just need to change [code] //Display recordwhile ($row = mysql_fetch_assoc($result)) { echo $row["url"];} [/code] to …

Member Avatar for Tekkno
0
2K
Member Avatar for rickarro

You need to use a join I think [CODE] $q = @mysql_query("SELECT a.tag, a.field2, at.assettype FROM assets AS a INNER JOIN assettype AS at ON a.assettypeid = at.assettypeid WHERE a.tag = $tag); [/CODE]

Member Avatar for rickarro
0
167
Member Avatar for ahmksssv

An alternative would be to use a javascript function that on submit shows the ad on the form page (in some kind of overlay possibly) and then after a certain period of time continues the form submission

Member Avatar for cwarn23
0
128
Member Avatar for serdas

Try changing your else statement that shows the form to this [CODE] else { if(!isset($_POST['submit'])){ //Here's the form for the input ?> <form name="send" method="post" action="compose.php"> <table width="80%"> <tr> <td width="150px" align="left" valign="top"><p>Username</p></td> <td width="" align="left" valign="top"><input name="username" type="text" id="username" value="<?php echo "$reciever"; ?>"></td> </tr> <tr> <td width="150px" align="left" valign="top"><p>Subject</p></td> …

Member Avatar for serdas
0
109
Member Avatar for queenc

Does the session seekerid actually exist? Are you trying to select a session that hasn't been created yet.

Member Avatar for queenc
0
86
Member Avatar for sacarias40

You could try something like this: [CODE] $q = @mysql_query("SELECT * FROM users WHERE datediff(NOW(), registration_date) < 30"); [/CODE]

Member Avatar for sacarias40
0
363
Member Avatar for jakx12

Do you really need the ` on the field names? What if you just had [CODE]mysql_query("INSERT INTO user_notifications (username, status ) Values(`$username`, `new to the site!` )") or die(mysql_error()); [/CODE]

Member Avatar for mschroeder
0
177
Member Avatar for ammar77

You have open braces after the first if statement but you don't close them and then you don't have any braces surrounding the else [code]if($match) { ?> $rand_num = rand(1, 100); if($rand_num < 10) [COLOR="Red"]<----------[/COLOR] echo "you comes from yahoo, click the link to proceed."; else [/code]

Member Avatar for death_oclock
0
89
Member Avatar for simplyV

You need curly braces { } surrounding the If statement. Also I'm not sure what $row would display as you haven't specified a field. e.g echo $row[0];

Member Avatar for simplyV
0
101
Member Avatar for TommyBs

Hello all, Recently signed up to this site but I have been reading the articles for some time with interest and gained some valuable information but I thought I would finally register to actually ask a question! I've been building a couple of sites recently that are community based from …

Member Avatar for TommyBs
0
93
Member Avatar for sleign

What version of php are using? Have you not thought about using OO and classes to hold each item. Then you could just populate one array with the item object and use properties to return the various values?

Member Avatar for TommyBs
0
135
Member Avatar for TommyBs

Hello all, This is not a question regarding the specifics of how you manage to make a primary income, but for those of you who do make an income from adsense,advertising on your websites etc. (whether it's a 6 figure income, or enough for you to get by/live comfortably) I …

Member Avatar for thomas_12
1
379
Member Avatar for TommyBs

Hello all, Now I know in an ideal world creating a new website would involve a designer and a developer who work together to come up with a solution, but for (i'm guessing) most of us you have to do both jobs. My question is, what do you look at …

Member Avatar for hiacclaimdir2
0
135
Member Avatar for forwardlookguy

Have you tried echoing out $series and $modelyear in the else statement so you can double check they are being set correctly and its not a problem with the decoder?

Member Avatar for Ole Raptor
0
182
Member Avatar for chavdar79

echo "<a href=\"".$url[1]."\">".$id[1]."</a>"; try that instead

Member Avatar for TommyBs
0
93
Member Avatar for TommyBs

Anyone every used Expression Engine to develop a site including getting the forum attachment? Would just be interested in any feedback people might have.

Member Avatar for TommyBs
0
73
Member Avatar for Tom Tolleson

Can't you just create a css class with a background image of the X in question,set it to repeat and assign that class to the necessary td tag?

Member Avatar for autocrat
0
180
Member Avatar for DavidB

I think the first thing people will ask is what forum software you are using as someone might now if a mod exists or which file to edit.

Member Avatar for TommyBs
0
75

The End.