8,966 Posted Topics
Re: The `end` before the `else` is not allowed to have a semi-colon. Next time post your error message too. | |
Re: Is there an error? Am not too familiar with XAMPP but it should have an error log. | |
| |
Re: You are using an expression in the `SELECT`. If you move that to a `HAVING` (or `WHERE` depending on your needs) clause, you will get the results you need. | |
Re: You should put the if on the outside like this: $result = mysql_query("whatever query") or trigger_error(mysql_error() . $sql); if (mysql_num_rows($result) == 0) { echo 'there is none....'; } else { while($row = mysql_fetch_array($result)) { echo 'my stuff that works'; } } | |
Re: I prefer it without the preview actually. Not because it's slow, but because I have to click or scroll down to get to the Reply button. | |
Re: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products | |
Re: Can you explain a little more about the values you want to pass? | |
Re: Line 33 excludes any output if the key is content. Apart from that, the nav function is not returning anything, so why do you try to assign it to the top variable? | |
Re: `mysql_insert_id` needs the mysql connection as parameter. Am not sure what you are trying to do with `id`. | |
Re: There should be a checkmark to identify the first row as the column names. | |
Re: > Access denied for user 'some_user'@'abcd.efgh.com' some_user does not have priviliges to login in, or you provided the wrong password. | |
Re: Plenty of examples on this forum, try the search. ![]() | |
Re: Easiest way to determine firt and last is to use a counter. Start with zero outside the loop, and increment at the end. You can then check position zero, or length - 1. | |
Re: If you want that as a PHP variable you can use [mysql_insert_id](http://php.net/mysql_insert_id). $id = mysql_insert_id(); It has to come after the insert query. | |
Re: > i just want one row to be updated. What is the problem you're experiencing? The code to update only a single employee number is there already (assuming it's unique). | |
Re: You'll need a way for Google to discover a decent menu structure. There's no guaranteed way to get this done. | |
Re: `move_uploaded_file` does not work across servers. Depending on your servers' configuration, you may be able to use `file_put_contents`. | |
Re: See this [code snippet](http://www.daniweb.com/web-development/php/code/437655/getting-products-details-from-categories-subcategories-with-ajax-call-). | |
Re: A trigger can only call MySQL functions. So, unless you build a custom UDF, this is not possible. You could use a trigger to create an email queue table, which you can poll from PHP. | |
Re: We will help with your code, but not provide it. Show what you have. | |
Re: You can't embed MySQL/MSSQL Server (they have to be installed), but SQLite may serve your needs. | |
Re: You can just create a PHP script to do that. | |
Re: \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} | |
Re: Make a correct table: <table> <tr> <td>First Name</td> <td>Phone number</td> </tr> </table> | |
Re: I don't think it's a bug. Contains returns -1 if the string is not found, you then pass -1 to Remove which triggers the exception, since Remove does not accept negative values for that parameter. | |
Re: `preg_replace` is a good option. Where does the text come from? | |
Re: > A content delivery network or content distribution network is a system of computers A CDN is more than a script on a single server. | |
| |
Re: It can fail if one of the values contains a single quote. Post the full query and the error. | |
Re: Basically any cookie that is not required for the site to work needs confirmation first, before placing. In most cases you are required to store the confirmation once given (IP and date), so if there is a concerned party, you will have a log showing it was explicitly granted by … ![]() | |
Re: Do you get an error message? If so, post it here. | |
Re: I think it would be easier to adjust your query to return what you want. If you show the query you are using now, we can suggest changes to it. | |
Re: What system information? PHP runs on the server, it does not have access to the client systems. | |
Re: For local development you can install a package like WAMP or XAMPP. It installs Apache, PHP and MySQL. Apache (web server) has modules to run PHP scripts. PHP itself is an executable which you can run separately if needed. Javascript run client side, inside a browser, PHP runs server side. | |
Re: You have to provide that XML in that format, so Zoho can parse and insert it's data as a record into it's CRM. |
The End.