Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~78.8K People Reached
Favorite Tags

23 Posted Topics

Member Avatar for StatiX

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 …

Member Avatar for gever
0
73K
Member Avatar for StatiX

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 …

Member Avatar for vaichidrewar
0
1K
Member Avatar for A_member

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.

Member Avatar for FragFighter
0
168
Member Avatar for StatiX

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.

Member Avatar for MehdiAnis
0
71
Member Avatar for jaydude23

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 …

Member Avatar for jaydude23
0
146
Member Avatar for nathanpacker

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 …

Member Avatar for ryan_vietnow
0
111
Member Avatar for fatihpiristine

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 …

Member Avatar for fatihpiristine
0
95
Member Avatar for ztwalsh

[code=php] stripslashes($var) [/code] where $var is the variable with the escape slashes added.

Member Avatar for chmazur
0
94
Member Avatar for StatiX

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 …

0
71
Member Avatar for esgdirect

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 …

Member Avatar for esgdirect
0
202
Member Avatar for StatiX

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 …

Member Avatar for StatiX
0
91
Member Avatar for Venom Rush

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 …

Member Avatar for Venom Rush
0
2K
Member Avatar for timbredemeyer

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 .. …

Member Avatar for StatiX
0
83
Member Avatar for Formula

digiXMAS is good for automated submission and they feature around 150 directory sites.

Member Avatar for Candy_ME
0
123
Member Avatar for Bredd S

[URL]http://www.phpfreaks.com[/URL] is a great site for learning PHP also.

Member Avatar for dragosh
0
174
Member Avatar for anamerican

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.

Member Avatar for TopDogger
0
82
Member Avatar for Mushy-pea

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 …

Member Avatar for mmonaco27
0
201
Member Avatar for tzan2833

[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" …

Member Avatar for pritaeas
0
184
Member Avatar for EnderX

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 …

Member Avatar for EnderX
0
187
Member Avatar for StatiX

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 …

Member Avatar for StatiX
0
337
Member Avatar for StatiX

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. …

Member Avatar for Comatose
0
130
Member Avatar for anamerican

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 …

Member Avatar for StatiX
0
107
Member Avatar for StatiX

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 …

Member Avatar for agrothe
0
201

The End.