Masna
-
Posts
288 -
Joined
-
Last visited
Posts posted by Masna
-
-
What information are you trying to encrypt? Does it have to be passed through the URI?
-
-
View Source, perhaps?
-
Thanks. I get the following:
Fatal error: Call to undefined function: htmlspecialchars_decode() in ...
Err...
Try using html_entity_decode().
-
Try including print_r($row_s) inside the while loop. Post what that prints here.
-
When using utf8_decode I get:
<p><span style="color: #0000ff">Coloured Blue</span></p> <p><span style="color: #00ff00">Coloured Green</span></p>
When using htmlspecialchars_decode() I get nothing at all. The page just stops at the point where it is meant to display, meaning that the rest of the page template failes to display too.
Is an error printed when using htmlspecialchars_decode()? Turn error_reporting on:
error_reporting(E_ALL); //put this at the top of your script
-
thanks for quick reply, but im a newbie in php, can u please insert your modification im my code
tchanks
I'd rather not.
-
Can you post here an example of what is echoed in place of $row["description"] when retrieving data?
-
You need to use a while loop so as to loop through the rows contained in the MySQL resource result link. That is:
$query = mysql_query("SELECT id FROM objects WHERE posebna_ponuda = 1 ORDER BY RAND() LIMIT 5"); while($row = mysql_fetch_assoc($query)){ //do whatever you'd like with each row of "news" -- $row contains an array containing 'id' -- $row['id'] }
-
htmlspecialchars_decode()
-
-
This looks like it should work. But, just to be sure, try replacing this...
<button type="submit" style="height: 25px; width: 100px"><strong> SendIt</strong></button>
...with this...
<input type="submit" name="submit" value="SendIt">
-
Post your code here, please.
-
Try turning error reporting on at the top of your script that attempts to utilize sessions:
error_reporting(E_ALL);
Report back, here, whatever errors are printed.
-
my page is over 3000 lines long at the moment i have the max file size twice on the page the forms are not next to each other in the script and do not display at the same time when you say combine the forms do you mean still have two <form id="uploadimages"></form><form id="editimages"></form> or use the same form id for both forms?
When I say combine the forms, I mean condense the two separate forms into one form.
When one form is submitted, are you expecting data passed through the other form to also be available in $_FILES?
-
Try combining these two separate forms into one collective form.
-
Your code is wrong. Please look at this tutorial: http://www.phpfreaks.com/tutorial/basic-pagination
LOL! Well this is helpful, now isn't it!
Yes, yes it is. Should we re-invent an inferior and less comprehensive tutorial just for the sake of this thread? He won't learn half as much as he would from CV's introductory tutorial on it.
Did you actually look at his code? It's clear that he understands the logic behind pagination. He simply has a minor error in this particular instance of practice.
Reading a 10-page tutorial clearly is not going to help this user.
-
Your code is wrong. Please look at this tutorial: http://www.phpfreaks.com/tutorial/basic-pagination
LOL! Well this is helpful, now isn't it!
-
Could you print out the query that's executed when the $_GET['page'] = 2 and post it here?
So...
$sql = "SELECT * FROM inbox LIMIT $from, $max_results"; echo $sql; $sql = mysql_query($sql);
-
Question for MODs/Guru's/Pro's
Is there such a thing a a memory limit on this? would memory limit even apply to what OP is doing in his script?
Well, there's a memory limit on everything: especially when dealing with digital information.
Most browsers probably obtain that limit from the header sent here:
header("Content-length: $dl_size");
As for whether or not this is the issue in this particular case: I don't know.
-
How many rows of data are in this "inbox" table?
-
Try...
<?php $shopperid = mysql_query("SELECT UserID FROM users WHERE Username = '$username'"); $getshopperid = mysql_fetch_array($shopperid); $getshopperid = $getshopperid['UserID']; $shoppercount = mysql_query("SELECT * FROM nordstromlisting WHERE ShopperID = '$getshopperid' UNION ALL SELECT * FROM saksfifthavenuelisting WHERE ShopperID = '$getshopperid' UNION ALL SELECT * FROM gnclisting WHERE ShopperID = '$getshopperid' UNION ALL SELECT * FROM guesslisting WHERE ShopperID = '$getshopperid' UNION ALL SELECT * FROM urbanoutfitterslisting WHERE ShopperID = '$getshopperid' UNION ALL SELECT * FROM americaneaglelisting WHERE ShopperID = '$getshopperid' UNION ALL SELECT * FROM footlockerlisting WHERE ShopperID = '$getshopperid' UNION ALL SELECT * FROM bananarepubliclisting WHERE ShopperID = '$getshopperid' UNION ALL SELECT * FROM neimanmarcuslisting WHERE ShopperID = '$getshopperid'") or die(mysql_error()); $test123 = mysql_num_rows($shoppercount); if (mysql_num_rows($shoppercount) > 2) { echo "You are currently at the maximum (3) amount of listings you can create in a five day span."; } else {
...and post back here what error is printed.
-
VARCHAR(10)?
-
Escape the quotes with backslashes:
$var="<div class=\"mH\" onclick=\"toggleMenu('menu2')\">+ Dropdown</div>";
Using PHP to Load Data - Help Please
in PHP Coding Help
Posted
Is this file formatted correctly? Also, does it actually exist on the server?
http://dev.mysql.com/doc/refman/5.1/en/load-data.html