wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
Help needed on PHP Dreamweaver cs3
wildteen88 replied to donman's topic in Editor Help (PhpStorm, VS Code, etc)
You'll have to slice the image you made in PS up into smaller images. With the smaller images you create the page with HTML/CSS not PHP. If you provide a screen shot of your login page you made in Phostoshop we may be able to tell what you'll need to. -
Yes that is correct. is_numeric returns true or false and ! means NOT.
-
To get a value from a drop down menu, you use $_POST['your_menu_name']
-
I think most employers go more on experience than qualifications, however I think the closet is the Zend Certification.
-
localhost not working, WAMPserver
wildteen88 replied to 9homie's topic in PHP Installation and Configuration
Make sure you also have this line in your hosts file. 127.0.0.1 localhost -
Check to see if the user accessed confirmation.php from form_process.php. or if you have sufficient form validation you shouldn't have to do this, eg // check if form is submitted if(isset($_POST['your_submit_butten'])) { // form submitted apply validation // page content here } else { // form hasn't been submit, redirect user header('Location: /index.php'); } EDIT: beaten to it
-
It needs to be $time = date('g:i a', strtotime($time));
-
It'll help if you post your current code. Also how are the zip codes (800,801,802 etc) stored, in an array?
-
php help with concatenation into a variable
wildteen88 replied to MidOhioIT's topic in PHP Coding Help
I presume by overwritten you mean the $tableItems variable? If so use this result = mysql_query("SELECT * FROM invoiceItems where invoiceID = '$invoiceid' ",$db); $numrows = mysql_num_rows($result); $tableItems = null; $row = 'row'; while ($row = mysql_fetch_array($result)) { $invoiceItem = $row["Item"]; $invoiceDescription = $row["description"]; $invoiceItemPrice = $row["itemPrice"]; $tableItems .=" <tr> <td width='10'> </td> <td width='271'><div align='left'>$invoiceDescription</div></td> <td><div align='center'>355</div></td> <td width='94'><div align='right'>$</div></td> <td width='74'><div align='left'>$invoiceItemPrice</div></td> </tr>"; } echo $tableItems; -
No search google for such a script. IMO you're wasting your time.
-
No this is not possible with PHP. It can be done with javascript, however it is easily gotten around by disabled JavaScript.
-
Then what you're trying to do is impossible, without modifying any thing
-
No, not that I'm aware of. However you can add HP code in themes, I believe. Why do need to add PHP code to a post.
-
stbalaji2u you already have an open thread here. LOCKED
-
[SOLVED] Help a noob - should I learn PHP 6?
wildteen88 replied to canucklehead's topic in PHP Coding Help
PHP 6 is still in development, in order to get PHP6 you need compile it and install it locally. I say for now stick with PHP5. PHP5 will be compatible with PHP6. -
Your need to set the second parameter for the highlight_string function to true. $str = highlight_string("$str2highlight", true);
-
You should use $_GET['id'] rather than $id.
-
Problem is with the use of REQUEST_URI as it includes the query string. So every time you click a link it is always going to add &page=X to your url. What I'd do is dynamically build the url. Like so $server = $_SERVER["SCRIPT_NAME"]; // check if the page variable exits if(isset($_GET['page'])) { $page = $_GET['page']; // remove the page from the $_GET array unset($_GET['page']); } // no we'll dynamically build the query string $server .= '?'. http_build_query($_GET); echo $server;
-
You already have an open topic here. LOCKED
-
You'll need to post some code relating to your problem. Make sure you're not using short tags (<? ?> or <?= ?>) when scripting. Short tags is not enabled by default, Ideally you should always code with full php tags (<?php ?> or <?php echo ?>). Also make sure you code all your PHP related content in .php files and not .html files. You should also be running your code from http://localhost.
-
You can release the mod as you wish. Provided you mention you where helped in making this mod.
-
Your host most probably has another utility for creating databases, such as CPanel. Or as you're on a free host you may have to request for a database. Check with your host. This is not an issue with PHP or PHPMyAdmin.