ignace
Moderators-
Posts
6,457 -
Joined
-
Last visited
-
Days Won
26
Everything posted by ignace
-
No you should do as he said add a dot to your include_path, like: include_path='.;S:\Apache Software Foundation\Apache2.2\php\PEAR'
-
Is this gonna be a text-based game? It really depends on how you want your game to look and work for us to give any proper advice on technology.
-
You can use the value in an id attribute only once. <div id="header"></div> <div id="content"></div> <div id="sidebar"></div> <div id="footer"></div> #content, #sidebar { float: left; width: 460px; }/*assuming the total width = 960px / 2 = 480px - 20px = 460 px*/ #content { margin-right: 20px; } #footer { clear: both; }
-
copy table columns from one db to another? (2 parts)
ignace replied to bnovak's topic in PHP Coding Help
Never thought about creating a shared database? Or make the second application work with the database of the first? Documentation enlights the mind. $query = "INSERT INTO database1.table2 (colA,colB,) SELECT colA,ColB FROM database2.table1 "; -
You create the appropriate directories under /system/application/
-
Difference between somefolder.somesite.com and somesite.com/somefolder?
ignace replied to webmaster1's topic in HTML Help
The first is called a sub-domain while the other is called a sub-folder. You'd use the latter in most cases. You would only use the first if you were eg split load: www1.domain.com -- 82.69.15.35 www2.domain.com -- 82.69.15.36 www3.domain.com -- 82.69.15.37 .. -
How would you know if the selected option is from a "higher level"? I don't see any modeling for it, and you can't trust the ID.
-
Remove the line float:right; it has no effect as it's completely ignored by the CSS engine, you can't float an absolute positioned element.
-
Yeah, that may work. I have one question though: Is it possible for a user to not select a package but instead select options from different packages to make a whole? Is this something you/your client would want in the future?
-
1 does a data base have a mximum size? Yes each data-type has a maximum size. Although some have an unreal large data-types (~64PB), in this case your HDD size will determine the actual maximum size of your database. 2 Do tables have a row limit or a limit on the number of rows that can be inserted? I am not certain if all DBMS have this option but I know MySQL has it MAX_ROWS = value as found on: http://dev.mysql.com/doc/refman/5.1/en/create-table.html
-
<div id="bla" style="display: none; z-index: 99;">bla bla</div> <div onclick="show('bla')">clicky</div>
-
They start out with the information they got from the interview and try to compile a list of pages. Now all pages have been identified and their content they create a wire-frame for each page, aiming for a usable, accessible design (Information Architecture). When they get the go-ahead on the wireframes, they decide on some colors or use the company colors to create a mock-up in Photoshop. When they get the go-ahead on the design (mock-up) it's sliced, transformed to HTML&CSS and back-end functionality incorporated.
-
sets (set_id, set_title, set_author_id, ..) cards (card_id, .., card_set_id)
-
Assumptions: 1. The total price of a package is the sum of all it's options. 2. The price of each option may change at any given time and therefor adjusting the package price. 3. The total price a user pays is the sum of all it's chosen options. users (user_id, user_name, user_password) packages (package_id, package_name) packages_options (option_id, option_name, option_price, option_package_id) users_packages_options (upo_user_id, upo_option_id) When the user selects a package instead of individual options: INSERT INTO users_packages_options (upo_user_id, upo_option_id) SELECT $uid, option_id FROM packages_options WHERE option_package_id = $pid When the user switches from entire package to individual options (components): DELETE FROM users_packages_options WHERE upo_user_id = $uid AND upo_option_id NOT IN ({implode(',', $chosen_options)}) Delete a package: DELETE FROM users_packages_options WHERE upo_user_id = $uid AND upo_option_id IN (SELECT option_id FROM packages_options WHERE option_package_id = $pid)
-
Yeah.
-
The reason I encouraged CodeIgniter is that it provides prefab classes like Cart
-
Do different things if data pulled from different rows
ignace replied to Hyperjase's topic in PHP Coding Help
You need Ajax. Your HTML will look something like: <input type="text" name="search" value="" onkeypress="findRecordsFor(this.value)"> -
I won't go into explaining the entire XML and related technologies, buy a book, something that fits you and read it. You will learn more then you will if I had to explain it all to you.
-
Update the table: $case = ''; foreach ($states_arr as $country_code => $country_name) { $case .= "WHEN '$country_name' THEN '$country_code' "; } $query = "UPDATE table SET country_code = (CASE country_name $case END)"; echo $query;//check if query was properly constructed Or use ken's solution to map states to their abbreviations at run-time.
-
CodeIgniter
-
Do different things if data pulled from different rows
ignace replied to Hyperjase's topic in PHP Coding Help
Post your code as your explanation does not make much sense. -
Really?? LOL told you like 2 hours ago
-
PHP will throw a syntax error resulting in a blank page if error's are turned off and I assume they are as he doesn't tell us about any error. As PHP sees it as $hmm1->player - command where command is assumed to be a constant.
-
You don't need JS for that, apply a CSS class: text-transform: capitalize;