- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
23 Posted Topics
Im trying to display data in a datagrid then once a row is selected show a different column of the database in a text box. I use the unique primary key in the datagridview as not visible so once the row is selected, i can get that integer and populate … | |
Greetings All, I've been banging my head over this problem for some time, any advice would be greatly appreciated. I have 5 strings that are pulled from the database. The strings are dynamic so their lengths will vary. I want to place those five strings in a richtextbox control, which … | |
Re: I use Firefox mostly, mainly because of the tabs at first but now I stick with it. Occasionally I use IE which has tabs now also when the need arises for testing and such. | |
I need to save the contents of a richtextbox in a MS Access database, I can get the textbox to change fonts,etc.. but when its saved into the database, all the formatting is removed. Would I need to save the file as binary or something. Any ideas appreciated. | |
Re: Starting from line 52: [code=php] $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM `twc` WHERE `Account_No` = ".$Account_No),0) or die(mysql_error()); if ($total_results > 0) { // if one or more rows are returned an account with this id exists echo ("<center><h1>Sorry. Your account is already added.</h1></center>\n"); } else { //no rows … | |
Re: Just by using php and html it wouldn't be possible. However it would be possible using ajax and making calls back to the php script to get data. I'm not sure exactly how it works but thats the only way I can think of unless you use javascript like in … | |
![]() | Re: putting the most likely candidate for the if statement close to the top of the statement may save time and processing power as once the if gets what it needs the rest of the statement is ignored. also when sorting through the categories the only code that would be executed … ![]() |
Re: [code=php] stripslashes($var) [/code] where $var is the variable with the escape slashes added. | |
I have created an image column in my datagridview and want to populate the grid based on the result of a database query. I'm able to pull the data from the database and populate the fields fine, but the image column where I want to display the image shows a … | |
Re: Just edit the from field to show their email address. You will need to add another form element to your contact form then change the folowing code: [code=php] mail($emailadd, $subject, $text, 'From: '.$emailadd.''); [/code] To: [code=php] mail($emailadd, $subject, $text, 'From: '.$emailfrom.''); //set your from address to $emailfrom //this will get … | |
Im trying to create a datagrid that will display an image instead of what is actually stored in the database. For instance if the result of a zodiac is leo, then show the leo image, or if it is cancer, show the cancer symbol, etc.. I am using a datagrid … | |
Re: to delete only one row from database, set your primary key as the value for the select like the following: [code=php] //create selection list echo "<select name='events'>\n"; echo "<option value='Select event'>Select an event to be edited\n"; while($row = mysql_fetch_row($result)) { $eventSelect = $row[0]; $eventid = $row[1]; //set this to the … | |
Re: just make an html form that accepts two vars..user and pass then your code should look something like this [code] $sql = "SELECT * FROM `users` WHERE "user" = $_POST['user'] AND `pass`=$_POST['pass']"; $query= mysql_query($sql); if(mysql_num_rows($query) => 1) { //there is a user with that name and pass //user authenticated .. … | |
Re: digiXMAS is good for automated submission and they feature around 150 directory sites. | |
Re: [URL]http://www.phpfreaks.com[/URL] is a great site for learning PHP also. | |
Re: Paypal offers Instant Payment Notification that will let you set it up where you will know the user has paid before downloading or displaying the image. They offer some downloads on their site. | |
Re: Since PHP is an interpreted language, The php interpreter must be called each time the script is accessed. However setting the headers in a php script, so that it will cache, will allow the page to be cached. There are also cache programs for php so the server load doesn't … | |
Re: [quote=tzan2833;247328]Dear all [code] <?php $link = mysql_connect("localhost", "root", "password") or die("Could not connect: " . mysql_error()); mysql_select_db('db', $link) or die (mysql_error()); $query = "SELECT last_name FROM main_author order by last_name"; $result = mysql_query($query) or die("Couldnt' execute query."); $num = mysql_numrows($result); ?> <html> <body> <form name="test" id="test" method="post"> <select value="" size="1" … | |
Re: I had the same problem once, I could never get the mail() function to work. Turn out after a few hours I thought about checking my spam filter, and seeing all the emails that had actually worked but were caught at my ISP. A definite DUH for me, I now … | |
In my program I want to add records to the database and then reference them by a unique identifier such as a user id. Even if the user name is the same as another, The would be different IDs so I could pull data on the correct one. So my … | |
I have a text box that will be populated by data, sometimes to long for the form and I wanted to add a vertical scroll bar to it, but I'm not sure how to link them together. I can place it on the form but it doesn't work the textbox. … | |
Re: You will need to filter all your variables. Start with add_slashes() and strip _tags() Also there is a big problem with PHP sending spam by users injecting the bcc field and sending spam to multiple users. I suspect most times its bots. To combat this I use the eregi() function … | |
I'm new to VB so my question is probably very simple. anyway here it is.. I want to make a side bar showing one form that is like a sidebar in a web page such as on the left side of the MDI form. Which holds the programs main functions … |
The End.