RE: [PHP-DB] Anti-virus alarm! Sulfbnk var inget virus.

2002-05-16 Thread Craig Vincent
to spam a list with an advertisement I must say. Better be careful though, piss the wrong person off with a scam like this and you could have a lawsuit on your hands. Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Re: Wildcards

2002-05-06 Thread Craig Vincent
condition at all =) But excellent advice nonetheless...much better than what I was going to suggest =) Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Wildcards

2002-05-06 Thread Craig Vincent
ion. So say if you wanted to find queries WHERE the name started with an A $qid = db_query("SELECT ID, NAME, ADDRESS FROM users WHERE Name LIKE 'A%'"); Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Exclude indentical values

2002-04-20 Thread Craig Vincent
| | | 90 | | | 110 | | - ? Perhaps an example would clear things up of what you would like =) Sincerely, Craig Vincent -- PHP Database Mailing List

RE: [PHP-DB] IP Address?

2002-04-19 Thread Craig Vincent
> How can I find out the IP address of the client requesting a > given php file? > I know that you can use $HTTP_SERVER_VARS["REMOTE_ADDR"] in more recent > versions of PHP. Unfortunately, we only have PHP3.0.14 and I don't think > that this option is available in our ancient version. I also can't

Re: [PHP-DB] How to update all the column types in a table...

2001-11-30 Thread Craig Vincent
ript to extract and update? UPDATE table SET password_column = PASSWORD('password_column'); That 'should' work for youuntested code though. Back up your table data first =) Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubsc

RE: [PHP-DB] Resource ID

2001-08-28 Thread Craig Vincent
note a separate function/class isn't really all that necessary to query a table in another database...based on the code you provided. $q = mysql_query("SELECT id FROM $db.words WHERE word = '$word'"); would work just as easily if not faster and using less resources =)

RE: [PHP-DB] 'replace' with 'where'

2001-08-09 Thread Craig Vincent
e way replace works is it looks for a unique index key in your update list, if it finds one it uses that key to determine where the REPLACE is done. The update command would probably work better for you if all you're wanting to do is change column values of a record already stored in the tabl

RE: [PHP-DB] Problem importing large db to mysql in windows

2001-08-01 Thread Craig Vincent
I suggest you setting up the MySQL replication system (chap 11 in the manual if I remember correctly). You don't have to be constantly receiving updates however if setup correctly you can use the LOAD table FROM master command to grab the most recent copy of the table you want in a singl

RE: [PHP-DB] INSERT Won't Insert

2001-08-01 Thread Craig Vincent
CompanyName','$Address','$City','$StateorProvince','$PostalCode','$Reg ion','$Country','$WebSite'"; If you're still missing it, you're missing a ) after '$WebSite' Sincerely, Craig Vincent -- PHP Datab

RE: [PHP-DB] Problem with my first script

2001-07-24 Thread Craig Vincent
$myrow=mysql_fetch_array ($result); Remove the space in the function call and it should work fine for you ie. $myrow=mysql_fetch_array($result); Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: [PHP-DB] Counting Number of Instances in a One2Many Relationships

2001-07-24 Thread Craig Vincent
large number of records or will be doing a fair number of these queries on a regular basis Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP-DB] Authomatic Sorting

2001-07-11 Thread Craig Vincent
y key not in numerical synchronization will not cause you any performance problems. Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

RE: [PHP-DB] mssql_connect() function not found when I load the page...

2001-06-20 Thread Craig Vincent
mssql_connect( ) function not found. Could someone tell me how to solve this problem? You need to recompile PHP to include MSSQL support Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: [PHP-DB] mssql_fetch_array problem

2001-06-19 Thread Craig Vincent
untry_sql = 'SELECT countryid FROM TBL_COUNTRY'; while ($myrow = mssql_fetch_row($country_query)) { echo "$myrow[0]"; } else { echo ">$myrow[0]"; } } Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP-DB] INSERT statement

2001-05-21 Thread Craig Vincent
contain a WHERE clause as INSERT is used to create a new row, not update a current row. The UPDATE command is more I think what you're wanting. UPDATE table SET column2 = '$x', column4 = '$y' WHERE column1 = '$z' Try that and see what it does for you. Sin

RE: [PHP-DB] Deleting specific records from MySQL tables

2001-05-20 Thread Craig Vincent
Try putting the variable into single quotes mysql_db_query("phpads", "DELETE FROM adviews WHERE bannerID='$banresult[bannerID]'"); That should resolve the problem. Sincerely, Craig Vincent -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,