- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
12 Posted Topics
Hi guys, im trying to find out the best way to set a unique session variable. Normally I would use a "username", but this project does not need a login script or users table. Whats the best way to create a unique session so that I can echo out the … | |
Hi guys, I´m attempting to write a simple "get quote" script, but need some advice about best practice. I want to structure it as follows, lets say a customer wants 1,2,3,4 or 5 apples - I want the quote to be $1. If the customer wants 6,7,8,9 or 10 apples … | |
Re: You may wanna double check you're not missing the '' in POST['scow']? As in your example. | |
Re: Replace your code in the beginning to this; in otherwords don't define - just declare them as variables. It's just simpler i think. [CODE]$dbhost = "your host"; $dbuser = "your username"; $dbpassword = "your password"; $dbdatabase = "your database"; $con = mysql_connect("$dbhost","$dbuser","$dbpassword"); if (!$con) { die('Could not connect: ' . … | |
Re: I have tried combining javascript and php functions called by the same onclick event and i gave up, it's just not compatable javascript is client-side, php is server-side. In the end i solved the situation using Ajax, since it's essentially just javascript (but by using the httpRequest command it can … | |
Re: I'm not 100% certain of your problem, but for a start, i don't think you can end your statement with 'elseif', try changing your last 'elseif' statement to just 'else'. See if that solves your problem? | |
Hi all! I still consider myself to be a newbie at PHP, but i have managed to develop a good PHP application, thanks in a large part to daniweb members' help and advice. My problem now is, having coded a profile page (profile.php) which displays user information dependent on the … | |
Re: Hi Xufyan, It looks like you have a lot to learn but have no fear i believe this resource will be fantastic for you to get to grips with what you want to do, and will also help you improve your login/registration files. Go to this link [url]http://www.youtube.com/watch?v=h1Cv3zpWXj4[/url] Enjoy and … | |
I'm wondering is it possible to echo out an entire media player, such as windows media player,in a similar method to echoing out all other tags such as tables and divs? The code i want to echo out, only if certain variables dictate, is this: [CODE]<OBJECT id='mediaPlayer' width="300" height="250" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' … ![]() | |
I'm looking for a solution. I am developing a "user profile" php file which will render to the current user their profile information. The info rendered and seperated into different divs (styled with css) will be in the form of html/php. However, if no information exists in a specific field … | |
I have a problem with my remember me php function. For some reason it works perfectly in Firefox but not in IE8. I suspect it's something to do with the checkbox? IE seems to automatically remember the user even if the checkbox remains unchecked! So a cookie is set when … | |
Can somebody help me understand how to retrieve user profile data when that user logs-in. I'm relatively new to this and am currently developing a site with javascript, ajax and php. For example in Facebook when a user logs-in their profile data is then displayed in their profile page. Im … |
The End.