- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
38 Posted Topics
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?
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 …
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 …
what table holds the relationship between class and users?
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 …
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 …
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 …
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]
instead of just [code] <h3><?php echo $story; ?></h3> change it to <h3><?php echo substr($story,0,50);?></h3> [/code]
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']; …
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
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]
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.
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 …
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 …
What is the name of your user table? Is there a user_id column or something similar on the gallery_photos table?
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 …
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 …
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]
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 …
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 …
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]
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
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> …
Does the session seekerid actually exist? Are you trying to select a session that hasn't been created yet.
You could try something like this: [CODE] $q = @mysql_query("SELECT * FROM users WHERE datediff(NOW(), registration_date) < 30"); [/CODE]
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]
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]
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];
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 …
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?
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 …
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 …
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?
echo "<a href=\"".$url[1]."\">".$id[1]."</a>"; try that instead
Anyone every used Expression Engine to develop a site including getting the forum attachment? Would just be interested in any feedback people might have.
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?
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.
The End.
TommyBs