8,966 Posted Topics
Re: Although debasisdas has pointed you in the correct direction, if you are on a shared web host, chances are you cannot turn on the scheduler. In that case you may be able to use a cron job. | |
Re: You can also use set_time_limit(0) in your php file, so it runs indefinitely. Only use this very carefully. If possible, avoid it at all cost. Is there no way to streamline your process ? | |
Re: Wouldn't it be easier to pass your id as a parameter to the function ? [CODE] function getPost($postId) { } [/CODE] ![]() | |
Re: This indicates an error in your query. See the sticky thread in this forum on how to check for errors. What data type is your transaction_date column ? | |
Re: Represent the csv file in a table, so you can add styling to the the rows and or columns. | |
Re: You may want to read up on the responses of [URL="http://www.daniweb.com/community-center/daniweb-community-feedback/threads/371369"]these threads[/URL]. I'll bet the same answer applies, get a lot of threads on the subject first. | |
Re: For such purposes there are templates. See [URL="http://www.daniweb.com/web-development/php/threads/336394"]this thread[/URL] for some more information. | |
![]() | Re: See the [URL="http://php.net/manual/en/mysqli-stmt.num-rows.php"]manual[/URL] page. The num_rows function can only be used after store_results. See the example in the manual for the fix. |
Re: Is the message encoded properly, are the spaces replaced with %20 for example ? | |
Re: See the manual page for [URL="http://php.net/each"]each[/URL]. It's in the third section (return values). | |
Re: HTTP_POST_VARS is deprecated. Best not use it. Where did you get your information from, do you have a link ? | |
Re: You can insert date columns as 'yyyy-mm-dd' and datetime columns as 'yyyy-mm-dd hh:nn:ss'. This will only fail if the date is invalid. In the [URL="http://dev.mysql.com/doc/refman/5.1/en/datetime.html"]mysql doc comments[/URL] there is a work-around for this. As a sidenote: I disagree on the use of storing dates as chars in mysql. For one, … | |
Re: Technically, a regex may get you on your way, but it will not cover all options. I have a javascript example somewhere that highlights words in text, but not in tags. I'll see if I can find it. Perhaps it will suffice for your issue. | |
Re: That function does not exist. There is a function called [iCODE]mysql_list_fields[/iCODE] though. | |
Re: die() just stops execution. Throw is a way to notify the caller that an error has occured. The caller can then handle the problem. | |
Re: Perhaps a site uptime checking service. Or if you have a pc running 24/7, open the page in Opera and set it to refresh at your interval. | |
| |
Re: Probably last inserted record. If you do [iCODE]SELECT * FROM stud_infos[/iCODE] then the natural order is returned. The last record in your result set will be the one you need. Since you have no information about a PK field, there is no way to limit or reverse the query so … | |
Re: It leaves the choice to the coder, because you might want to use E; in your output. By leaving this choice to you, you can make sure it is something that is not used in your output. | |
Re: See the manual for [URL="http://php.net/glob"]glob[/URL]. | |
Re: You're missing a semi-colon on line 10. Other than that not sure what could cause it. | |
Re: Please try again to explain more clearly what you have so far, and what you need help with. | |
Re: [iCODE]<input type="text" name="param" ...>[/iCODE] means you need to use [iCODE]$submit = $_POST['param'];[/iCODE] | |
Re: Here is another one, [URL="http://wurfl.sourceforge.net/nphp/"]WURFL[/URL]. | |
Re: Yes, there is. Javascript is case sensitive and you are using makeRequestObject to call MakeRequestObject. Fix the casing. | |
Re: Looks like the SMTP Server wants the HELO command before you send the USER command. Is there a reason you want to do this by sending the separate commands manually ? I recommend using a tool like PHPMailer instead. ![]() | |
Re: [url]http://php.net/manual/en/function.set-error-handler.php[/url] | |
| |
Re: It can happen if your browsers have different locale settings. To test my websites, I have set each browser to a different language/timezone. Depending on your search settings, this can be a factor. | |
Re: Do you get a javascript error ? | |
Re: @Insensus: yes, first example will work. | |
Re: See [URL="http://www.daniweb.com/web-development/php/threads/334106"]this thread[/URL] for help. | |
Re: You could use a regex: [iCODE]\d{10}[/iCODE] | |
![]() | Re: Here's a nice [URL="http://adminschoice.com/crontab-quick-reference"]quick reference[/URL]. Quote: "Repeat pattern like /2 for every 2 minutes or /10 for every 10 minutes is not supported by all operating systems. If you try to use it and crontab complains it is probably not supported." You could try this instead: [CODE=text] 5,10,15,20,25,30 * * … |
Re: [CODE]WHERE 'index'='$id'[/CODE] Should be [CODE]WHERE `index`='$id'[/CODE] See [URL="http://www.daniweb.com/web-development/php/threads/191031"]the sticky thread[/URL] to find out how to detect errors. | |
Re: Try the [URL="http://php.net/date_parse"]date_parse[/URL] function. | |
Re: [CODE=text]user-agent: bingbot disallow: index.php[/CODE] | |
Re: [URL="http://blog.brianhartsock.com/2009/02/04/using-mysql-temporary-tables-to-save-your-brain/"]Here[/URL] is a nice description. | |
Re: [CODE]$allowed_referers = array(); $allowed_referers[] = "allowedwebsite.com"; $allowed_referers[] = "example.com";[/CODE] or [CODE] $allowed_referers = file('my-allowed-file.txt'); # one url per line[/CODE] | |
Re: I don't think jQuery can find the ID. An asp.net application changes the id's in the actual output. So check using your browser's developer tools. You may need to use a specific class name to get around this. | |
Re: [CODE] foreach ($players['George']['Cars'] as $car) echo $car; [/CODE] | |
Re: [CODE]$reki["business"]=" *";[/CODE] Would mean zero or more spaces, is that what you want ? Sidenote: ereg has been deprecated, I suggest you switch to the preg_XXX functions instead. | |
Re: You may get a better response on the navisworks website. | |
Re: Check your database if the table and column is there. Run the query from phpMyAdmin or any other tool and see if you get the same error. | |
Re: They should rather spend their time debating on how they both can best work together to please the customer, as that is the one paying their salaries. | |
Re: Most servers need authentication, and you cant set that in your php.ini | |
Re: Using @mail instead of mail supresses any errors. I suggest testing without the @ | |
|
The End.