|
-
LTE script?
Date: 03/12/07
(WebDesign) Keywords: php, database
does anybody know of a good 'letter to the editor' script or have any ideas?
i'm helping a political advocacy group who'd like to help people email local newspapers and/or congress people with letters, etc
i found local ink: https://sourceforge.net/projects/localink/
and i have everything set up but i have no idea how to add newspaper/zip code information into the database correctly. i tried with phpMyAdmin adding it in manually and that didn't work either.
any ideas? would appreciate any help in the right direction with somebody who's done something like this before, either with local ink or something else.
thanks so much!
Source: http://community.livejournal.com/webdesign/1231367.html
-
LTE script?
Date: 03/12/07
(PHP Community) Keywords: php, database
does anybody know of a good 'letter to the editor' script or have any ideas?
i'm helping a political advocacy group who'd like to help people email local newspapers and/or congress people with letters, etc
i found local ink: https://sourceforge.net/projects/localink/
and i have everything set up but i have no idea how to add newspaper/zip code information into the database correctly. i tried with phpMyAdmin adding it in manually and that didn't work either.
any ideas? would appreciate any help in the right direction with somebody who's done something like this before, either with local ink or something else.
thanks so much!
Source: http://community.livejournal.com/php/551901.html
-
Anomaly.
Date: 03/17/07
(PHP Community) Keywords: php, mysql, browser, database, sql
I can't seem to figure out this problem for the life of me.
The error is this: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /opt/lampp/htdocs/_projects/medievalbattles/current/v8_r3/httpdocs/access.php on line 139
LIne 139 is: $servername = $row["alt_name"];
Even if I comment out this entire portion of code, the error still exits (even after cleaning my entire browser cache and restarting my computer five times). I've tried cleaning my Smarty template cache, but that didn't help.
// was inevitable to requery this. maybe use memcached? $count = 1; $sql = "SELECT alt_name, databasename FROM ".$_MB->db_name.".servers"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); while ($row = mysql_fetch_assoc($res)) { $server_name = $row["alt_name"]; $server_database = $row["databasename"];
$sql2 = "SELECT serverstart, tickstart, serverend, round FROM ".$server_database.".game_info"; $res2 = mysql_query($sql2, $_MB->connection) or die(mysql_error()); $row2 = mysql_fetch_assoc($res2); $time_data[$server_name]["serverstart"] = $row2["serverstart"]; $time_data[$server_name]["tickstart"] = $row2["tickstart"]; $time_data[$server_name]["serverend"] = $row2["serverend"]; $time_data[$server_name]["round"] = $row2["round"];
$count++; }
Please help.
$verifylogin = "yes"; include("header.php");
$sql = "SELECT name, prestige, rank, kills, verified FROM ".$_MB->db_name.".accounts WHERE id = '".$_SESSION["account_id"]."'"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); $row = mysql_fetch_assoc($res); $_SMARTY->assign("account_data", $row);
//if ($user_verified != "y") // $_MB->redirectuser("user_validate.php", "");
if ($_SESSION["successful_reg"] == "1") { unset($_SESSION["successful_reg"]); unset($_SESSION["msg"]); $_SESSION["cdbname"] = $cdbname; $_SESSION["cloggedin"] = "yes"; $_SESSION["loggedin"] = 1;
header("Refresh: 5; game/overview.php"); exit(); } else { $_SMARTY->assign("msg", $_MB->resultmessage()); unset($_SESSION["msg"]);
if ($_POST["login"]) { $game = $_POST["game"]; $_MB->use_db = $_POST["db"]; $non_bar_clock = date("M d, y - h:ia"); $clock = $_MB->month." ".$_MB->time;
$sql = "SELECT id FROM ".$_MB->use_db.".users WHERE accountid = '".$_SESSION["account_id"]."'"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); if (mysql_num_rows($res)) { $row = mysql_fetch_assoc($res); $userid = $row["id"]; $sql = "SELECT tpw FROM ".$_MB->db_name.".servers WHERE id = '".$game."'"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); $row = mysql_fetch_assoc($res); $ticks_per_week = $row["tpw"]; $sql = "UPDATE ".$_MB->use_db.".user_aids SET timer = '".$ticks_per_week."' WHERE user_id = '".$userid."'"; mysql_query($sql, $_MB->connection) or die(mysql_error());
$sql = "UPDATE ".$_MB->use_db.".users SET online = 'y', lastlogin = '".$clock."' WHERE id = '".$userid."'"; mysql_query($sql, $_MB->connection) or die(mysql_error());
$sql = "INSERT INTO ".$_MB->use_db.".user_online (id, userid, time, ip) VALUES ('', '".$userid."', '".$clock."', '".$_SERVER["REMOTE_ADDR"]."')"; mysql_query($sql, $_MB->connection) or die(mysql_error());
$_SESSION["cdbname"] = $_MB->use_db; $_SESSION["cloggedin"] = "yes"; redirectuser("game/overview.php", ""); } else redirectuser("access.php", "You do not have an empire on that server."); }
if ($_POST["gameregistration"]) { // Empire creation $game = $_POST["game"]; $_MB->use_db = $_POST["db"]; $sql = "SELECT * FROM ".$_MB->db_name.".servers WHERE id = '".$game."'"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); if (mysql_num_rows($res)) { $sql = "SELECT * FROM ".$_MB->use_db.".users WHERE accountid = '".$_SESSION["account_id"]."'"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); if (!mysql_num_rows($res)) { $_SMARTY->assign("create_empire", TRUE); $_SMARTY->assign("db", $_MB->use_db); $_SMARTY->assign("game", $game);
$sql = "SELECT id, name FROM ".$_MB->db_name.".races ORDER BY name ASC"; $res =mysql_query($sql, $_MB->connection) or die(mysql_error()); $row = mysql_fetch_assoc($res); $_SMARTY->assign("races", $row);
$sql = "SELECT id, name FROM ".$_MB->db_name.".classes ORDER BY name ASC"; $res =mysql_query($sql, $_MB->connection) or die(mysql_error()); $row = mysql_fetch_assoc($res); $_SMARTY->assign("classes", $row); } else redirectuser("access.php", "You already have an empire on that server."); } } else { $sql = "SELECT id, alt_name, databasename, gametype FROM ".$_MB->db_name.".servers"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); $row = mysql_fetch_assoc($res); $_SMARTY->assign("server_list", $row);
// was inevitable to requery this. maybe use memcached? $count = 1; $sql = "SELECT id, alt_name, databasename, gametype FROM ".$_MB->db_name.".servers"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); while ($row = mysql_fetch_assoc($res)) { $server_alt_name = $row["alt_name"]; $_MB->use_db = $row["databasename"];
$sql2 = "SELECT serveractive FROM ".$_MB->use_db.".game_info"; $res2 =mysql_query($sql2, $_MB->connection) or die(mysql_error()); $row2 = mysql_fetch_assoc($res2); $server_data[$server_alt_name]["active"] = $row2["serveractive"];
$sql2 = "SELECT empirename FROM ".$_MB->use_db.".users WHERE accountid = '".$_SESSION["account_id"]."'"; $res2 =mysql_query($sql2, $_MB->connection) or die(mysql_error()); $row2 = mysql_fetch_assoc($res2); $server_data[$server_alt_name]["empire"] = $row2["empirename"];
` $count++; }
$_SMARTY->assign("server_loop_max", $count); $_SMARTY->assign("server_data", $server_data); }
$sql = "SELECT alt_name, databasename FROM ".$_MB->db_name.".servers"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); $_SMARTY->assign("server_time", mysql_fetch_assoc($res));
// was inevitable to requery this. maybe use memcached? $count = 1; $sql = "SELECT alt_name, databasename FROM ".$_MB->db_name.".servers"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); while ($row = mysql_fetch_assoc($res)) { $server_name = $row["alt_name"]; $server_database = $row["databasename"];
$sql2 = "SELECT serverstart, tickstart, serverend, round FROM ".$server_database.".game_info"; $res2 = mysql_query($sql2, $_MB->connection) or die(mysql_error()); $row2 = mysql_fetch_assoc($res2); $time_data[$server_name]["serverstart"] = $row2["serverstart"]; $time_data[$server_name]["tickstart"] = $row2["tickstart"]; $time_data[$server_name]["serverend"] = $row2["serverend"]; $time_data[$server_name]["round"] = $row2["round"];
$count++; } $_SMARTY->assign("time_loop_max", $count); $_SMARTY->assign("time_data", $time_data); }
$_SMARTY->display("pages/access.tpl");
include("footer.php"); ?>
Source: http://community.livejournal.com/php/552904.html
-
MySQL Problems
Date: 03/18/07
(PHP Community) Keywords: mysql, database, sql
I have the following piece of code:
$sql = "SELECT id, alt_name, databasename, gametype FROM ".$_MB->db_name.".servers"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); $row = mysql_fetch_assoc($res); $_SMARTY->assign("server_list", $row);
It is supposed to return whatever rows are in the servers table, but for some reason it only returns the first. I've executed the SQL statement via MySQL directly and it acts as it should. Any ideas why it's acting wonky?
Source: http://community.livejournal.com/php/553452.html
-
join between two databases
Date: 03/18/07
(PHP Community) Keywords: mysql, browser, database, sql
this might be way too much info, but please bear with me! the end result is, i need to do a query that joins tables that exist in different databases on different servers. how do i do that?
anyway, i'm building a site for a real estate guy who's hosted through 1and1. they only allow you to have 100mb of data per database. he's given me ~500mb of property data and ~100mb of property tax data. i split up the property data and kind of spanned it across five db's, then put the tax data in a sixth. each database you create with 1and1 gets dropped on a random server. i'm able to search property data by checking db1, then db2, and so on... and appending the results. i connect to them all like so
//connect to property records 1 db $props1_link = mysql_connect('some_server1','name','pwd') or die ("failed to connect to server 1."); $props1_db = mysql_select_db('db_name1',$props1_link) or die("unable to select property records 1 database: ".mysql_error());
//connect to property records 2 db $props2_link = mysql_connect('some_server2','name','pwd') or die ("failed to connect to server 2."); $props2_db = mysql_select_db('db_name2',$props2_link) or die("unable to select property records 2 database: ".mysql_error());
//connect to taxes db $tax_link = mysql_connect('some_server','name','pwd') or die ("failed to connect to taxes server."); $tax_db = mysql_select_db('tax_db',$tax_link) or die("unable to select tax database: ".mysql_error());
i have one database containing one table on each of the six servers.
i perform a search by constructing the query and looping through the $props... connections, doing this for each
$res = mysql_query($sql,$props1_link) or die($sql.": ".mysql_error());
i dump the results to a csv file, then move on to the next db, append those results, move on, etc., until we have one big csv which i pass to the browser. that all works fine if i only need to query properties.
my problem is that some of his queries need to join the properties table/s with the tax records table. simplified, something like
SELECT p.`name` FROM `properties` AS `p`, `taxes` AS `t` WHERE p.`tax_id` = t.`id`
i've done things like this before with multiple db's on the same server; but here i need to use multiple $links to multiple servers in order perform the query. is that possible? (beyond doing multiple queries to the different db's than comparing results manually.)
Source: http://community.livejournal.com/php/553672.html
-
another host post!
Date: 03/19/07
(PHP Community) Keywords: php, mysql, database, sql, hosting
regarding my previous problem, i called 1and1 and they said there's no way to get my databases on the same server. whatever process creates your databases through their control panel actually goes out of its way to distribute them on different servers. the only way around this - to exceed the 100mb limit or have multiple db's on the same server - is to rent your own server on a dedicated hosting plan for a minimum of $99/month. no thanks!
so i'm going to switch hosts. i need a host that doesn't limit database sizes beyond overall storage limits, and allows ssh access even with their cheap accounts. cron jobs would be nice but aren't necessary. php5 and mysql and a few gb's of storage.
i don't want to use dreamhost because i've heard too many bad things.
Source: http://community.livejournal.com/php/553852.html
-
Help my regressing (ADO + MS Access)
Date: 03/19/07
(C Sharp) Keywords: database, sql
Hello! I've got a problem. I was sent to another part of my plant and there is no networking between some offices. So I had to make my database local and keep it in MS Access. But as I used to create applications in c# ( using SQL Server 2000) you can imagine what i feel... I faced the problem of multisearching ( search by different parameters up to 25 and we don't know exact quantity of them). I didn't have such problems yet ( cause i got stored procedures on my server) and i didn't care for the quantity of parameters (fields for search). But now... How to organize multisearching if my database is storing in Access?
In short, could you help me with any information..As I feel 
Thanks beforehand
Source: http://community.livejournal.com/csharp/82235.html
-
resize images on the fly.
Date: 03/24/07
(PHP Community) Keywords: database
I've been testing out image uploading and resizing on the fly tonight.. While I have the page able to pull the image name from the database. It seems like the script I've found can't display the picture, as a variable, the 'imagejpeg' shows the image fine but how do I end the script so that I can have the sized image name in a variable.
session_start(); ?> include("dbc.php"); ?>
$gvsql = "SELECT * FROM image_gallery WHERE gid = \"$gid\" "; $gvresult = @mysql_query($gvsql,$conn) or die("Couldn't execute query."); while ($gvrow = mysql_fetch_array($gvresult)) { $img = $gvrow['image_name_resize']; } $filename = '/home/benjamin/www/dev/upload/';
$width = 300; $height = 300;
header('Content-type: image/jpeg');
$filefile="$filename$img"; list($width_orig, $height_orig) = getimagesize($filefile);
$ratio_orig = $width_orig/$height_orig;
if ($width/$height > $ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($filefile); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); imagejpeg($image_p, null, 100); imagedestroy($image_p); ?>
Source: http://community.livejournal.com/php/556781.html
-
FBI chief blames computers for privacy flap
Date: 03/27/07
(Security) Keywords: database
Senators are told FBI's misleading reports on surveillance are due in part to transferring information between databases--by retyping it manually.
Source: http://news.zdnet.com/2100-1009_22-6170995.html
-
Access query question
Date: 04/04/07
(Web Development) Keywords: database
First off I'll post a screenshot of the database relationships:

In short, Category contains subCategories which contains Products.
What I want to do is create a query that will list the CategoryName along with the total number of Products associated with that Category (through the SubCategory). I'm not sure how to do this. When I just add the Product table to the query in design view I get a join error. Can anyone point me in the right direction?
Source: http://community.livejournal.com/webdev/399238.html
-
Images in a database
Date: 04/05/07
(Web Development) Keywords: php, mysql, database, sql
here is the site
So basically I am designing a database which lists a client_name, client_description, and then a list of images associated with that particular client. This is all stored in a MySQL database. I am not sure how to handle the images though. Each client will have around 6 images. I currently have it set up where every client has its own folder of images and the PHP just reads every image from that folder and displays it.
Would it be a better idea in terms of best practices to instead have an Images Table that keeps track of every image and what client it is associated with?
Not sure, Mike
Source: http://community.livejournal.com/webdev/400229.html
-
easy alternate table rows
Date: 04/11/07
(PHP Community) Keywords: php, database
I had a big long report that I printed to the screen. It was a foreach loop that went through an associative array of database results and put them in a table. It looked crappy at first. This is what I had at the beginning:
foreach($foo as $a => $b) { print ''; print ''.$b['stuff'].' | ; print ''.$b['stuff'].' | ; print ''.$b['stuff'].' | ; print ' '; }
As you can see it was pretty simple, and as you can imagine very plain. I needed to number the list.
$i = 0; foreach($foo as $a => $b) { $i++; print ''; print ''.$i.' | ; print ''.$b['stuff'].' | ; print ''.$b['stuff'].' | ; print ''.$b['stuff'].' | ; print ' '; } That took care of the numbered rows. I thought that it would be easier to use if every other row was a diff. color. I first tried to use modulus to get the remainder of $i when divided by 2. If there was a remainder, then that row was odd. That was my thinking - but it didn't work. I found this solution (that was easy) on php.net.
$i = 0; $alt = true; foreach($foo as $a => $b) { $i++; print ''.($alt?' bgcolor="#CCCCCC"':'').'>'; print ''.$i.' | ; print ''.$b['stuff'].' | ; print ''.$b['stuff'].' | ; print ''.$b['stuff'].' | ; print ' '; $alt =! $alt; }
Works like a charm :D

Source: http://community.livejournal.com/php/559698.html
-
5 Golden Tips For WordPress Performance Optimization / Slashdot-Digg Protection
Date: 04/12/07
(Java Web) Keywords: php, blogging, software, database
WordPress is a popular blogging software. As a design decision it stores the blog content in database and uses php to fetch and display the pages. This consumes more resources (cpu and memory) than blogging softwares generating static pages. Here are 5 tried and tested power tips to reduce memory & cpu resources and speed [...]
Source: http://blog.taragana.com/index.php/archive/5-golden-tips-for-wordpress-performance-optimization-slashdot-digg-protection/
-
Jobs...
Date: 04/17/07
(PHP Community) Keywords: php, programming, mysql, software, browser, css, html, xml, technology, database, sql, java, jsp, web, linux, microsoft, apache
Moderator, if this isn't allowed on this forum just let me know.
I get a lot of emails daily for various web dev and programming positions available. I found a good job, but I keep my resume up. Ya never know.
Just feel guilty constantly deleting them when I know someone may need them. Figured I'd at least post them for any coder friends that may be looking for something. I lj-cut it so it wouldn't be too obtrusive.
If these are just found to be crap, let me know and I'll stop passing them on. But some of them at least appear to have potential. They're all fresh over the past 24 hours.
To whoever is currently looking, hope these help! If it's ok, I'll send periodic digests of these if anyone finds them worthwhile.
Hello,
I came across your resume and would to speak with you in regards to 2 immediate Cold Fusion needs in the Radford, VA areas.
Here are the details.
We need people onsite! 40 hour work week schedules
Location/Address: Radford, VA (Southwestern VA)
Start Date: ASAP
Drop Dead Start Date: ASAP
Project End date: N/A
# Of resources need for role: 1
Position Title: ColdFusion Software Engineer
BE Level/ Job classification: Consultant
Required Skill Set (Yrs Exp):
SKILLS: ColdFusion software developer with experience leading the development of software modules.
EXPERIENCE: Proven experience analyzing system requirements, guiding overall application development and individual module development. Direct involvement in application development, maintenance and operations of an application environment involving Microsoft SQL Server back-end with Macromedia ColdFusion middleware running on Microsoft IIS webservers.
Specific education and experience requirements include: 1. Minimum 4-year technical degree in Computer Science, Information Technology, or related field from accredited institution 2. Minimum 1 year general programming experience and an additional 1 year experience in web-based application development 3. Minimum 1 year experience with design, development and maintenance of ColdFusion-based online software applications 4. Practical experience in MS SQL Server (v7 or higher) database design, operations, and maintenance involving extensive structured query language (SQL) usage and development of complex queries and procedures 5. Practical experience with MS SQL Server (v7 or higher) database administration 5. Must be a US Citizen 6. Prefer current active Department of Defense (or capable of attaining) Secret Clearance
Preferred Skill Set
Will also consider candidates with Java and JSP experience.
Job#2
Location/Address: Radford, VA (Southwestern VA)
Background of Project:
Start Date: ASAP
Drop Dead Start Date: ASAP
Project End date: N/A
# Of resources need for role: 1
Position Title: Web Page Designer
BE Level/ Job classification: Sr Systems Analyst
Required Skill Set (Yrs Exp):
The candidates we are seeking should be self starters, interested in seeking new ways to help this customer innovate and provide state of the art web design capabilities to DoD customers.
Technical & functional requirements:
- 1-2 years ColdFusion development experience using Version 6.0 or 7.0 (prefer 7.0) - 1-2 years experience with Enterprise level database design including stored procedures and functions. - working knowledge of the Fusebox design methodology, using version 3.0 or higher to develop robust web applications. - proficient with use of Visual Mind software, version 7 - demonstrate ability to elicit requirement definitions from customers, then convert those specifications into realistic software development projects, and further develop a schedule in MS Project for task delegation and performance tracking. - US Citizen
Preferred Skill Set
XHTML or similar browser based scripting development, web services development experience a plus. - Cascading Style Sheet development using CSS v2.0 or later preferred. - Microsoft SQL Server 2000 database design experience preferred.
Please forward me an updated word copy of your resume and give me a call.
Thanks!
Ray Santos | 1-800-627-8323 x9509 | rsantos@mastech.com Mastech | 1000 Commerce Drive Pittsburgh, PA 15275 | Ph:1.888.330.5497 x 9509
Fax: 412-291-3037
Mastech respects your privacy. We will not share your resume or contact details with any of our clients without your consent.
Greetings!!!!!!
VIVA USA INC., (www.viva-it.com) is an IT consulting firm headquartered in Rolling Meadows , IL servicing clients nationwide. We specialize in IT, telecom, engineering Staffing Solutions and system integration
Please respond with your word document résumé, hourly rate, availability, visa status and relocation details to. recruit07@viva-it.com. One of our recruiters will get back to you ASAP. Kindly find below the job description.
POSITION : Web Designer
LOCATION : Columbia , SC
DURATION : 6 Months
Job Description : To create a new web site to replace the old web site.
Required Skills: Web Developer, Web Site Design, Dreamweaver
Optional Skills: .Net, XML
Sukanya
Viva USA INC, Chicago IL
Phone: 847-448-0727 Ext 207
Fax: 847-483-1317
www.viva-it.com
An ISO 9001:200 & CMMi M/WBE Company
I saw your resume on Careerbuilder and thought you may be interested in this opportunity. BMW Manufacturing is looking to hire a Web developer for some contract work in their Greer, SC plant. I’ve included the details below. If you are interested, or know someone who may be, please contact me ASAP. I look forward to hearing from you soon.
Sincerely,
Aaron C. Fisher Sr. Account Representative Information Technology Division Greytree Partners, LLC
(704) 815-1288 Office (704) 973-0767 Fax (704) 607-8518 Cell
aaron.fisher@greytreepartners.com www.greytreepartners.com
Entry Level – Web Developer Opportunity at BMW Manufacturing in Greer , South Carolina Client: BMW Manufacturing Job Title: Web Developer / Designer Assignment Length: 3 to 4 Weeks Shift: 1st / Full time Responsibilities: Update / refresh current departmental web content. Evaluate simple content management alternatives. Start Date: 23 April 2007 Estimated End Date: 31 May 2007 Required Skills: HTML Pre-Employment: Drug screen, background check (no education required).
I have an exciting opportunity available for a PHP developer. I know the location may not be ideal but I felt it would be worth a look.
Location: Las Vegas, NV
Length: Contract to Hire/Direct Hire
Rate: Depends on experience
Required Skill Set:
Extensive advanced PHP experience Back end PHP programming experience Experience with PHP 5 Experience with MySQL Strong understanding of advanced Object Oriented Programming principles is a must
For further consideration, please email your resume in Word format to cwander@yorksolutions.net.
Thank You!
Christi Wander York Enterprise Solutions cwander@yorksolutions.net
Good afternoon,
I came across your resume today on Monster.com and I have a position available that your skill set seems to match quite well. We are looking for a L.A.M.P. (Linux, apache, MySql, PHP) Developer candidate for a full time permanent opening in Toledo . This position is available with a great Online Bill Payment company, headquartered in Toledo and Washington D.C. This position is looking to go permanent in the 35 – 50K range, dependent upon experience. Ultimately, we are looking for someone with at least 3-5 years experience; comfortable in a lead type of role. If you are interested in discussing this opening with me, please feel free to email or call me at your earliest convenience.
I look forward to speaking with you soon,
Carl
Carl Saad Manager of Branch Recruiting T 734-462-9505 F 734-462-6443 csaad@otterbase.com www.otterbase.com
Hello! My name is Kristie Butler and I work for Procom Services, an IT Staffing Company. I am currently seeking a Web Designer for a 6 month contract position based in Columbia, SC. This position requires the following:
The client is lookikng to create a new web site to replace the old web site. They are a Windows Department and they are looking for a public and private side (logon) in Web site. This will be a temp position, possible temp to hire position.
Required Skills:
Web Developer Web Site Design Dreamweaver Organizational Skills Written Communication Skills Adobe Photoshop Windows XP .Net XML
If you feel you possess these skills and you are interested in this position, please send a current word document of your resume to kristieb@procomservices.com.
Thank you!
Kristie Butler Procom Services 1-800-678-4590 kristieb@procomservices.com
Source: http://community.livejournal.com/php/561562.html
-
Database person needed for project
Date: 04/19/07
(WebDesign) Keywords: browser, database, web
I'm bidding on a project that will need a database.
The prospective client wants to have a catalog (no ordering) for each corporate customer. The database should be easy for the client to update via a web browser. Each customer will have a unique login and password.
The database will run on a Windows 2003 server.
Please contact me if interested so I can get some basic ideas on what's involved so I can put into a proposal for the client. Need to get the proposal going as soon as possible.
Thanks, Chris
p.s. Should I put a email address or phone # here for contact? Not sure what's "kosher".
Source: http://community.livejournal.com/webdesign/1247456.html
-
Need help: Table is read only
Date: 04/29/07
(MySQL Communtiy) Keywords: database
Could anybody help me? I've copied a table 'X' to the database from one server to another. An attempt to change the content using a command UPDATE X SET var1 = "somevalue" leads to the ERROR 1036: Table 'X' is read only. Why is it and how can it be corrected? Thank you in advance. Julia
Source: http://community.livejournal.com/mysql/113300.html
-
Firefox double counter problem
Date: 05/01/07
(PHP Community) Keywords: browser, database
Hello again, everyone.
I'm implementing a very simple 'self-configuring' counter script that essentially creates a counter for every page it's used on with the option to update the counter or not and to return or display the page's counter. It interfaces to a simple, one-table database with only two columns.
define( "NOTSET",- 1024);
$server = "server";
$user = "user";
$password = "password";
$db = "db";
$link = mysql_connect( $server, $user, $password) or die( "Cannot establish connection with counter server");
mysql_select_db( $db) or die( "Cannot select database");
//returns the CID (table col) hash according to $id
// (id should be the SCRIPT_FILENAME of the requesting page)
function counterHash( $id) {
$md5 = md5( $id); // md5 is relatively surjective
return substr( $md5, 0, 10);
}
function getCount( $hash) {
global $link;
$safe = mysql_real_escape_string( $hash);
$query = "SELECT `count` FROM `counters` WHERE `CID`='". $safe. "'";
$result = mysql_query( $query);
if ( ! is_resource( $result) ) { print( "notset!"); return NOTSET; }
$row = mysql_fetch_array( $result,MYSQL_ASSOC);
return $row[ 'count'];
}
// If there isn't a row for $hash in the db, then one is
// created and false is returned.
// Otherwise, returns true.
function createRowForHashIfNotExists( $hash) {
global $link;
$safe = mysql_real_escape_string( $hash);
$q = "SELECT `count` FROM `counters` WHERE `CID`='$safe'";
$result = mysql_query( $q) or die( "Cannot get status because ". mysql_error() );
$n = mysql_num_rows( $result);
if ( $n === 0 ) { // no rows for our hash
$q = "INSERT INTO `counters` (`CID`,`count`) VALUES('$safe','0')";
mysql_query( $q) or die( "cannot create new counter because ". mysql_error() );
return false;
}
}
//sets the `count` col of $hash's row to $count
function setCount( $hash, $count) {
global $link;
createRowForHashIfNotExists( $hash);
$safehash = mysql_real_escape_string( $hash);
$safecount = ( int) mysql_real_escape_string( ( int) $count );
if ( ! is_int( $safecount) ) { die( 'setcount(hash,INTEGER)'); }
$query = "UPDATE `counters` SET `count` ='". $safecount. "' WHERE `CID` = '". $hash. "' LIMIT 1";
mysql_query( $query) or die( "Cannot update counter because " . mysql_error() );
}
$id = $_SERVER[ 'SCRIPT_FILENAME'];
$hash = counterHash( $id);
createRowForHashIfNotExists( $hash);
$visitorCounter = getCount( $hash);
function visitorCounter( $update= true, $show= true ) {
global $link, $visitorCounter, $hash;
if ( $update ) {
setCount( $hash,++ $visitorCounter);
}
if ( $show ) {
echo ''.$visitorCounter.' Visitors '. "\n";
} else { // don't show so return
return $visitorCounter;
}
return true;
}
?>
Everything works just fine in Safari (i.e. the page is visited and the counter increments only once), but in Firefox, the counter increments twice for no apparent reason. I figured this out only after wasting like three hours tracing through the program and reconstructing everything from scratch.
Is anybody familiar with what might be causing this? Is there a glaring problem with my code? Or, perhaps, most importantly, do you happen to see a fix or workaround? I could just do a browser detection and then not increment if firefox, but that's really more like a bad hack than an effective workaround...
Thanks in advance!
Source: http://community.livejournal.com/php/563403.html
-
My Brain is in Google
Date: 05/04/07
(Java Web) Keywords: database, asp, google
No seriously, a significant portion of my brain is in Google databases, accessible to everyone around the world. I only keep the index. Let me explain. The way I work is that I remember the most significant aspect of any concept and few keywords to identify the concept or idea and then I use Google [...]
Source: http://blog.taragana.com/index.php/archive/my-brain-is-in-google/
-
Security Tips
Date: 05/05/07
(PHP Community) Keywords: php, database, sql, security
When creating a PHP form that writes to a SQL database, what basic security steps should be implemented (coded)?
I have my own ideas, but I would like to hear what you guys have to say. Maybe we could create a list to include in the user info and memories.
Code samples are encouraged. :D
Source: http://community.livejournal.com/php/564045.html
-
wow. just wow.
Date: 05/08/07
(PHP Community) Keywords: css, html, database
I've run into a bit of a problem at work. I thought I'd share as a good example of what not to do. We generate these e-signature contracts for clients. No biggie right? HA. They get the values and slap em in a bigass table, then they take all that HTML and put it in the database. In case you don't already know, this is a really bad idea. Today they wanted me to change up some of the layout and I said sure and went looking for the css, only to find HTML generated by Frontpage 4.0 stuck in a database table. I can't do anything with it. All they had to do was save the values in the db and print it out in an html page. Sorry if I'm ranting, but I want to stress that this is really stupid and nobody should even consider doing something this way.
Source: http://community.livejournal.com/php/564514.html
|