RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
does $refid have a value? try to echo $reqid to see if it does. also echo out the query to see what the query looks like
-
edit: sorry you were trying to get the id didn't read well you could do a query with the session data you have
-
something like (you dont need id parameters you have those in your session) <a href="profile.php">check profile</a> on your profile.php you get the user data with a query <?php session_start(); $regid=(int)$_SESSION['regid']; $query="select from users where user_id={$regid}"; ?>
-
the * characters shouldnt be there maybe that was comment you pasted ?
-
If you use a session why would you attach the user id as url param? What does your query look like if you are going to display info you'll have to fetch it first. Or do you just need the session data?
-
are you confusing php unlink with mysql maybe?
-
How to count guests in a dynamic website
RichardRotterdam replied to g_p_java's topic in PHP Coding Help
Because the variable will be reset each time the page gets viewed, you have to store the amount of times a page has been visited externally. This could be a in simple text file or a database. -
are you sure there are no javascript errors? this part doesn't look like it will not cause any errors <script type="text/javascript"> $(".carousel").jCarouselLite({ * btnNext: ".next", * btnPrev: ".prev" * }); </script>
-
you only need one of this js files it's the same file but compressed(or not compressed) differently. What are the errors you recieve?
-
Could be anything like you only depend on javascript validation or you might have the validation on a seperate page. just show the form code
-
Slideshow with descriptions from mysql
RichardRotterdam replied to dropfaith's topic in Javascript Help
here is one using jquery with a tutorial http://jonraasch.com/blog/a-simple-jquery-slideshow and one build with mootools that uses a javascript array to build the slideshow(check the source) http://www.electricprism.com/aeron/slideshow/example1.html hope that helps -
Slideshow with descriptions from mysql
RichardRotterdam replied to dropfaith's topic in Javascript Help
Do you mind if I gave you a link of a script that does that? I remember making one from scratch one and the part where fading from one image to another was a pain in the butt to get working properly -
Slideshow with descriptions from mysql
RichardRotterdam replied to dropfaith's topic in Javascript Help
Usually what I see with javascript galleries are list elements or nested divs for example <ul> <li><img src="somethumb1.jpg" /></li> <li><img src="somethumb2.jpg" /></li> <li><img src="somethumb2.jpg" /></li> </ul or <div id="gallery"> <div><img src="somethumb1.jpg" /></div> <div><img src="somethumb2.jpg" /></div> <div><img src="somethumb3.jpg" /></div> </div> something like that is easily created with a php loop. Then you can use javascript to build a gallery from it. -
You probably forgot a semicolon before the line you posted. can you show the code before that?
-
you could use a RTE (rich text editor) javascript
-
[SOLVED] PHP to interact with networked sensors
RichardRotterdam replied to russell_newton's topic in PHP Coding Help
I think you will still need c or c++ to communicate with the sensor. You could write a desktop app that receives signals from the sensor and stores it to a mysql (or any db). then as second application you build a php driven website that reads the same database as the c++ application -
URGENT PLEASE HELPPP!!!!!!!!!!!!!
RichardRotterdam replied to stalian4002's topic in PHP Coding Help
just keep it in mind next time It is a interesting project though. You could simply have a <select>menu with all the persons currently stored in the database on that person edit page. <select> <option spous_id="2">Julie</option> <!-- etc --> <select> after you safe that person's with the partner relation. Later you can make it a bit more user friendly with ajax if you like. -
an easy way is to create an array with error messages if the error array is empty then don't do the action for example $errorMessages=array(); if(isset($_POST['submit'])){ //check field 1 if($_POST['field1']=="") //add error to array $errorMessages[]="field1 is empty"; } //check field2 if($_POST['field2']=="") //add error to array $errorMessages[]="field2 is empty"; } } //the error array is empty i guess its safe to do something now if(sizeof($errorMessages)==0){ //Do something }
-
What happens if you put UPDATE testimonial SET Website = 'http://www.imagesbytroy.com', Date = 'January 24, 2009', Testimonial = 'test' WHERE Client = 'imagesbytroy' in mysql query browser or phpmyadmin
-
shouldn't $conn = mysql_connect(HOST, DBUSER, PASS) or die('Could not connect !<br />Please contact the site\'s administrator.'); be before you use mysql_real_escape_string()? I usually get an error if i don't do that
-
URGENT PLEASE HELPPP!!!!!!!!!!!!!
RichardRotterdam replied to stalian4002's topic in PHP Coding Help
here's your help http://www.phpfreaks.com/page/forum-rules It's under VARIOUS THINGS NOT TO DO -
Using A "Save As" Dialog Box to export data
RichardRotterdam replied to deane034's topic in PHP Coding Help
It is indeed javascript related. I think you just needed the right search keyword. try searching for "javascript modal" here are some posts I made earlier about that subject http://www.phpfreaks.com/forums/index.php/topic,210459.0.html http://www.phpfreaks.com/forums/index.php/topic,193208.0.html -
[SOLVED] helping updateing users table.
RichardRotterdam replied to seany123's topic in PHP Coding Help
in that case that what I said was pretty close only that you probably want to have ABC(nerve) to be exactly maxABC(maxNerve) when it exceeds maxNerve. But which part do you not understand? And isn't this just more mysql related? update users set ABC=ABC+5 where ABC< maxABC -
[SOLVED] helping updateing users table.
RichardRotterdam replied to seany123's topic in PHP Coding Help
Is this what you are saying? (your table structure) players: nerve int(11) maxnerve int(11) -
[SOLVED] Ok im stumped!!, any idea's this is a tought one!
RichardRotterdam replied to jamesxg1's topic in PHP Coding Help
Yes you do thats what both these guys have been telling you