- Upvotes Received
- 7
- Posts with Upvotes
- 3
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Gosh!...Well...I guess you could say that I am a work-a-holic...and a woman who isn't afraid to toss back a few beers and shoot pool with the "Big Boys" on the weekends...I love to go 4 wheelin' and snowmobiling...but most of all love…
- Interests
- Billiards and of course php. Web Development and Design
36 Posted Topics
Re: try placing this at the top of your page: <? ob_start(); ?> then at the bottom of the page place this line of code: <? ob_flush(); ?> | |
Hello to all! I have an online manual (developed in php)that my company would like to revise for printing purposes. What I need to do is have this manual setup to include page numbering on the printed version so the instructor can reference pages during training sessions. They have expressed … | |
Re: [URL="http://www.daniweb.com/forums/thread90382.html#"]UPDATE[/URL] session SET newposts = newposts+1 WHERE NOT ISNULL(newposts); Try this [inlinecode] UPDATE session SET newposts = newposts+1 WHERE newposts !NULL; [/inlinecode] | |
Re: I have built a dynamic select box for something like this. Here I populate the select options with information from a table: (I also created the "sticky" to hold the users input upon error checking [inlinecode] <?php $result = mysql_query("SELECT * FROM facilities ORDER BY Street1 ASC") or die(mysql_error()); $sticky= … | |
Hello all..I am working on a search script that I am using AJAX and dynamic html to show results within a table. based on the users search criteria, I display the results and a summary of those results as well. I allow the user to delete results by row and … | |
Re: Place a hidden field in your script relating to the item in the record set that you are calling, and use something like this: [code=php] <a href="viewprod.php?ID=<?php echo $rs['ID']; ?>"target="_blank"><strong>View</strong></a> [/code] on your viewprod.php get the value of the item passed in the URL [code=php] $colname_rs_ID = "-1"; if (isset($_GET['ID'])) … | |
Re: please post the codes that are referenced in the above error. We can't help you with out seeing the scripts. Look at the lines that are giving you the error to see what the code contains. | |
Re: you can also look at this post for some additional help or options [URL="http://www.daniweb.com/forums/post553273.html#post553273"]http://www.daniweb.com/forums/post553273.html#post553273[/URL] | |
Re: Hi, Even though it is a fairly advanced script you could try looking at this post: [URL="http://www.daniweb.com/forums/thread111225.html"]http://www.daniweb.com/forums/thread111225.html[/URL] or you can do a search on checkboxes and find a few additional examples | |
Re: Hi, Try removing the [code=php] ob_start(); [/code] at the top of your code. Also, shouldn't your variables be this: [code=php] $myquestion1=$_POST['question1']; $myquestion2=$_POST['question2']; $myquestion3=$_POST['question3']; $myquestion4=$_POST['question4']; $myquestion5=$_POST['question5']; [/code] intead of [code=php] $myquestion1=$_POST['myquestion1'];$myquestion2=$_POST['myquestion2'];$myquestion3=$_POST['myquestion3'];$myquestion4=$_POST['myquestion4'];$myquestion5=$_POST['myquestion5']; [/code] | |
Re: The script I am posting is a fairly advanced search page using left joins on tables, but I think you can grasp what the script is doing. This search allows for 3 different types of search methods (either used separately or in combination), and allows the user to sort the … | |
Re: Hi...something like this may help get you pointed in the right direction [code=php] <? php require_once('/Connections/connect.php'); $colname_rsProject = "-1"; if (isset($_GET['ID'])) { $colname_rsProjects = (get_magic_quotes_gpc()) ? $_GET['ID'] : addslashes($_GET['ID']); } mysql_select_db($database, $conn); $query_rsProject = sprintf("SELECT * FROM dbtable WHERE ID = %s", $colname_rsProject); $rsProject = mysql_query($query_rsProject, $conn) or die(mysql_error()); $row_rsProject … | |
Hello all, I have a form that contains checkboxes to update a database with either "Yes" or "No" based on the user selection. The check boxes are in an array with the values set to a "LinkID" example: [code=php] <?php //find the user's assigned links $rowlink=$row_rsUpdate['LinkID']; mysql_select_db($database_mambo, $mambo); $query_rsAssignedLinks = … | |
Re: Not sure if your porblem is solved yet, but here is something I use all the time for drop downs. First get your connection string going. preferably using an include. then use the following code, adapting statement to your needs: [code=php] <?php $result = mysql_query("SELECT * FROM users ORDER BY … | |
Good day all! I have been working on a project that requires me to to the following: Select a user from a list, on submit go to next page. The next page contains the session variable $id of the selected user. On this page, I am assigning menu permissions. I … | |
Re: Your request sounds a bit confusing, but I did a quick project that accomplishes something that you may be able to at least work with. Please note this took me about 15-20 mintes to complete and test..there is much more that could be done to this (I also used a … | |
Re: <div class="side"><?php if (have_posts()) : ?> Notice the [B]: [/B]after posts()) change this to ; | |
Re: I don't see anywhere in your form the value of 'id' Place a hidden field in your form to hold this value so the SQL statement will read the value and update. | |
Re: [quote=daver40;464031]Hi! I'm a bit of a beginner at PHP, and I'm having trouble comparing two strings in a conditional statement. Both of the variables are strings, but one of them them is assigned from a MSSQL database. In this database, it of the unicode varchar data type. It doesn't seem … | |
Re: try placing the variables in single quotes like this: $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . '$ccomments '. "\n\n" . '$cname' . "\n\n" . '$cphone' . "\n\n" . '$cstreet' . "\n\n" . '$cpo' . "\n\n" . '$ccity' . "\n\n" . '$cstate' . "\n\n" .' $czip' ![]() | |
Re: I am using a similar approach to a from I have where the admin must assign applications access to users. I have error checking in the form to avoid duplicates, but at least it should give you an idea of how I got it to work. I am using the … | |
Re: If you are using a database to store the information, create a recordset for your values displayed on your product page. the example below will take the user to a page called productInfo.php and display the information about the "ID" of the item selected. (This carries the variable of"ID" in … | |
Re: OK, there are several things wrong with your code, but because it's would be to lengthy to explain the errors, I spent some time creating a code that will work. You will need to create a few tables to generate dynamic content first: # phpMyAdmin MySQL-Dump # version 2.5.1 # … | |
Re: > Fairly new to this, and looked around on the net and didn't readily find my answers. > > I am setting up picture pages, thousands, and want to be able to change header or footer information down the road as the site expands. > > I am on godaddy … | |
Re: I have tested you code and found that it works. the only thing I did different was place this code at the top of the script: [inlinecode] error_reporting(E_ALL ^ E_NOTICE); [/inlinecode] once I did that it worked fine. It may not be the best solution, but it did work after … | |
Re: try the case statements like this: [INLINECODE] case'1': echo 'File exceeded upload_max_filesize'; break; case'2': echo 'File exceeded max_filesize'; break; case'3': echo 'File only partially uploaded'; break; case'4': echo 'No file uploaded'; break; [/INLINECODE] | |
Re: This can be performed like this: login.php page [inlinecode] <?php require_once('Connections/phpForum.php'); ?> <?php error_reporting(E_ALL ^ E_NOTICE); // *** Validate request to login to this site. if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) { $_SESSION['PrevUrl'] = $_GET['accesscheck']; } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; $MM_fldUserAuthorization = ""; $MM_redirectLoginSuccess = … | |
Re: You can set a session for this as well. Within the headtags place code to start and register the session: [inlinecode] <?php session_start(); if (!session_is_registered("nextValidSubmission")) { session_register("nextValidSubmission"); } if (isset($_POST['emailAddress']) && $_POST['submissionId'] == $_SESSION['nextValidSubmission']) { } $_SESSION['nextValidSubmission'] = rand(1000000,9999999); ?> [/inlinecode] Then within your form, place a hidden field: [inlinecode] … | |
Good day to all! I am working on some error checking and I have run into a snag in my code. Here is what I want to do: Upon Submit, error check field criteria. This code has to do with posting Internal Job Postitions and based on the dates entered, … | |
Re: I have posted this before, but here it is again: I have a page that shows job posings and the recordset contains the job title called Position on my first page I start the session, name the session and give it the value of the recordset like this: session_start(); $_SESSION['Position']= … | |
Re: change the last lines to this: if ($qresult) { echo "You successfully got registered"; } else { echo "We apologize, there was a mistake with writing the information to the DB"; } | |
Re: as an example from Dreamweaver login script: //connect to your db through another file and include it: <?php require_once('the_connection_file.php'); if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER; if (isset($_GET)) { $_SESSION = $_GET; } if (isset($_POST)) { $loginUsername=$_POST; $password=$_POST; $MM_fldUserAuthorization = ""; //if they match the criteria, redirect to the … | |
Re: Here is an examlpe of how I used a dynamic select box using PHP. In this case I have a table called "facilities" and display the information in the select options by calling the information from the db. I further set the variable "$sticky" to retain the values upon error … | |
Re: I have a page that shows job posings and the recordset contains the job title called Position on my first page I start the session, name the session and give it the value of the recordset like this: session_start(); $_SESSION['Position']= $row_rsposition['Position']; on the next page, I once again start the … | |
Re: try escaping the '' like so: \" and in your record set use single quotes like so: $row['name'] | |
Re: try something like this: mysql_query("UPDATE table1,table2 SET table1.val1=val1+1, table1.val2=val2+1 , table2.val3=val3+1, table2.val4=val4+1 WHERE id = (int)") or die(mysql_error()); |
The End.