8,966 Posted Topics
Re: Hard to find the issue if you don't give examples of input and expected output. Apart from that, if you put your values in an array, you can use `in_array` to simplify your if's. | |
Re: Instead of overwriting the image with id `upload_image`, add another image to your page. | |
Re: Perhaps this can help: http://sourceforge.net/projects/nusoap/forums/forum/193579/topic/3496575 | |
Re: Why don't you put it up on SourceForge, or GitHub ? At least then it will get some exposure, and a bigger crowd. | |
Re: http://php.net/manual/en/function.mysql-real-escape-string.php | |
Re: `__construct` is the function that gets called when an object instance of the class is created. Even if you remove it, it will be called, so make sure you do not put any output in it. The only way around it is creating a static class. | |
Re: AM not familiar with CI, but why would tablesorter not work, it a client side script? | |
Re: Your query is missing single quotes around the username. | |
Re: The password will be the user's windows password. If you want to set a different one, you need to use SQL Server Authentication. | |
Re: I do not think `+=` is supported. Have you tried `@col_list = @col_list + @col + ... etc.` ? Note that you will end with a comma in this situation, that could trigger an error. | |
Re: The `=` is treated as the first literal character. Are you sure your keywords do not contain special characters, that are interpreted as regex control characters ? | |
Re: What do you have so far, and what do you need help with? | |
Re: A view can be created by running a query, example: CREATE VIEW `myview` AS SELECT * FROM `mytable` Which MySQL manager are you referring to? | |
Re: 1. Use `preg_match` instead of the deprecated `ereg` function. 2. In function `content` there is a typo, it should be `isset` 3. If you pass an array as parameter to `content`, then you are able to use other arrays than just `$_POST` 4. In `verify` you set a variable. Either … | |
Re: A cron job is a scheduled job. So if you do not want to trigger your script everyday by hand, a cron job is a good option. | |
Re: 10060 error means connection timeout. Did anything change in your setup? | |
Re: In your each function, you can hide/delete the `li` if it is outside your specified range. | |
Re: It is slow because everytime you are loading random images from the database, and displaying them inline. The browser cannot cache this. For better performance, you could store the files on disk, and just read the filenames from the database. | |
Re: > it is showing crawl errors for my home page Which errors ? | |
Re: This depends on what you are using. If you built your own, for example, with PHP and MySQL, then creating one is fairly simple. If you are using a CMS, look at the documentation. Most CMS'es have RSS support built in. | |
Re: Instead of: echo "<?include ('"; echo $row['IncFile']; echo "');?>"; do: include "{$row['IncFile']}"; | |
Re: If you want to keep it all working, you'd have to download everything (be careful with legal issues). | |
Re: Move the calculation of total to the query and your problem is solved. SELECT *, gkClean - gkPoints AS gkTotal FROM gk ORDER BY gkTotal DESC LIMIT 10 | |
Re: You can use this to test, if the img variable is passed or not: $image_id = isset($_GET['img']) ? $_GET['img'] : 0; | |
Re: $img = intval($_GET['img']); echo "<form class='form' action='zoom.php?img=$img' method='post'>"; | |
Re: How about storing the setting in a cookie? | |
Re: Instead of writing the value to database, you can write it to file, but it has to be stored somewhere. | |
Re: Your query appears correct. Did you try it in phpMyAdmin or something similar? | |
Re: Looks okay to me. Have you tried without setting background and color? | |
Re: In addition to JorgeM: make the from and to a date column, so if needed, you can store day and month too. No car part is built an entire year exactly. | |
Re: Please try to explain the problem you are having, and what needs solving. Your post is a little unclear. If you explain, we're likely to help you. | |
Re: I think you should look at `preg_replace`. If you need help with the regex, paste some examples of the string you need to match/remove. Basically, `/##.*?##/` could do it. | |
Re: The error states that it cannot find `../Pages/EquipmentPage.php` or the class EquipmentPage is not in it. | |
Re: Did you turn off `StringGrid1.DefaultDrawing` ? | |
Re: SELECT 'weighted index' AS pricetype, plast FROM table WHERE pdate = DATE(NOW()) AND STKNO = 10 UNION SELECT 'price index' AS pricetype, plast FROM table WHERE pdate = DATE(NOW()) AND STKNO = 11 | |
Re: You may want to store that counter in a session variable, so it will not be reset on page reload. | |
| |
Re: Perhaps this will help: [CODE=sql] SELECT YEAR(reg_date) AS `reg_year`, MONTH(reg_date) AS `reg_month`, COUNT(*) AS `reg_count` FROM micro_applicants GROUP BY YEAR(reg_date), MONTH(reg_date) [/CODE] | |
Re: Did your client not use the same primary key? Ignoring duplicates will not add them, if they are found. I think your ebst bet would be to remove your key in your test database, and then find out which records can be removed. Without the key, all records should be … | |
Re: Show the rest of your code. Are you sure you put the foreach in? | |
Re: For example: http://php.net/manual/en/imagick.resizeimage.php | |
Re: You have quite some choices [here](http://nl.php.net/manual/en/refs.xml.php). Depending on your needs I suggest SimpleXML or DOMDocument. | |
Re: WAMP does not include a mail server. Without it, you cannot send emails out. If you really need this, you can have a look at Mercury. Another option would be to use a class like PHPMailer, so you can use your gmail account to send emails. | |
Re: That's right, the SQL expects a comma separated list of values. You can do this using `explode` $sql = mysql_query('SELECT * FROM table1 WHERE id IN (' . explode(',', $id_array) . ')'); | |
Re: Please provide some more detail of what you are trying to do. This is a little vague. | |
Re: Sometimes those hash values, prevent page caching in the browser, other times it is just a generated page name (for example for a particular combination of search conditions). | |
Re: > Note: This function will not work on remote files as the file to be examined must be accessible via the server's filesystem. Taken from: http://php.net/glob What you could do is put a script with glob on that server, and retrieve the result using cUrl. |
The End.