![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
fugix
-
Posts
1,483 -
Joined
-
Last visited
Posts posted by fugix
-
-
im thinking that you can do something where you check to see if the string ends in... if it does, you can use substr() to remove the words that contains the periods
-
you need to add a where clause in your mysql_query so it know whose info to grab...also since you are only grabbing one users data...a while loop is not needed..e.g
$data = mysql_query("SELECT * FROM members WHERE username = '$username'")
-
i would try changing your url to the correct url syntax eg.
$referer = 'http://www.olar.eu';
-
well you should have an extension in this line
header("location: /member");
like
header("location: /member.php");
-
welcome to phpf!
-
well you can you can set a variable to a value...say one...for this example we'll say that $i=1, and at the end of your script you could say $1++ which will increment the number every time the script is run...there are numerous ways to do what you want...you could tweak your idea a, use what i told you , you a database...sessions etc..
-
every page that you need to call a $_SESSION[] global needs to contain session_start() at the beginning of the script, yes
-
if you use cpanel or something similar you should have a php.ini file in you home directory
-
Longint should suffice
-
Heard that one a million times...
and one. But who is counting anyway?
if someone made a counter they would need at least 20 lines
-
the only time that you want error_reporting of any kind hidden is when the server is live
I think you mean when the website is live, not the server. If you are on a shared host it is usually not possible to modify the php.ini file. If you have various websites on your shared host you can control error reporting and the output of errors/warnings to logs and or the screen via a .htaccess file for each individual site. For a live site you should have the display_errors flag to off. A development site on the same server you should have it set to on.
On a dedicated server I would set the main php.ini file to not output errors or warnings and as with the shared host control the error output via .htaccess for each website on the server.
yeah website sorry
-
you have the ie browser classes listed in your try statements..only thing I can think of is that they might have javascript compatibility turned off on their browser
-
so in your products.php file how are you grabbing $_POST['userid'] now?
-
php is hidden from view source
-
i would first try reinstalling...then if that fails I would do what nightslyr said....any one of the other suggested browsers are much faster and compatible than ie
-
1. are you connecting to your db
2. have you tried echoing the number of rows to make sure you are grabbing any.
3. have you tried to debug your query yet. eg
$sql = mysql_query("SELECT id FROM admin WHERE username='$manager' AND password='$password' LIMIT 1") or die(mysql_error());
-
where are the classes that this code refers to
-
check this out https://developer.mozilla.org/en/AJAX/Getting_Started
step 4 explains how to grab data from an xml file using an xml response header
-
In case you missed seeing it, there is a 'topic solved' button at the lower left-hand of the page. I got it for you this time.
thanks. I normally forget that its there
-
-
you can try this
echo "<a href='bio.php?shortName={$shortName}><img src='/images/spotlight/".$img[rand(0, (count($img)-1))]."' alt=Spotlight border=0 /></a>"; }
-
serializing an array is mainly used to store arrays in a database safely..
some examples of the use of this function are found at http://php.net/manual/en/function.serialize.php
-
the only time that you want error_reporting of any kind hidden is when the server is live... otherwise you always want error reporting shown for debugging
-
also, sessions can also be lost when the maximum idle time is met...I believe that you can change this in you php.ini file
get data from other webpage
in PHP Coding Help
Posted
its very important that you get the url correct, otherwise curl is useless