8,966 Posted Topics

Member Avatar for arwenvd

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.

Member Avatar for pritaeas
0
266
Member Avatar for jacksantho

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 ?

Member Avatar for Hummdis
0
6K
Member Avatar for jakizak

Wouldn't it be easier to pass your id as a parameter to the function ? [CODE] function getPost($postId) { } [/CODE]

Member Avatar for diafol
0
116
Member Avatar for heshanm

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 ?

Member Avatar for pritaeas
0
141
Member Avatar for mehrantahir
Member Avatar for chrishea
0
4K
Member Avatar for Stefano Mtangoo

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.

Member Avatar for Stefano Mtangoo
0
181
Member Avatar for zohal
Member Avatar for mikeflash

For such purposes there are templates. See [URL="http://www.daniweb.com/web-development/php/threads/336394"]this thread[/URL] for some more information.

Member Avatar for pritaeas
0
142
Member Avatar for cuonic

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.

Member Avatar for decade
0
116
Member Avatar for jacob21

Is the message encoded properly, are the spaces replaced with %20 for example ?

Member Avatar for ddymacek
0
225
Member Avatar for Paaat

See the manual page for [URL="http://php.net/each"]each[/URL]. It's in the third section (return values).

Member Avatar for edwinhermann
0
116
Member Avatar for Hani1991

HTTP_POST_VARS is deprecated. Best not use it. Where did you get your information from, do you have a link ?

Member Avatar for Hani1991
0
230
Member Avatar for Stefano Mtangoo

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, …

Member Avatar for Stefano Mtangoo
0
276
Member Avatar for cjohnweb

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.

Member Avatar for cjohnweb
0
171
Member Avatar for Jiaxin
Member Avatar for Stefano Mtangoo
0
679
Member Avatar for AngelicOne

die() just stops execution. Throw is a way to notify the caller that an error has occured. The caller can then handle the problem.

Member Avatar for pritaeas
1
198
Member Avatar for palsoft

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.

Member Avatar for palsoft
0
2K
Member Avatar for pakunoda
Member Avatar for lloydsbackyard

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 …

Member Avatar for lloydsbackyard
0
398
Member Avatar for Pro2000

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.

Member Avatar for Pro2000
0
138
Member Avatar for altarek
Member Avatar for vibhaJ
0
174
Member Avatar for vaanipala
Member Avatar for vaanipala
0
284
Member Avatar for jorjah

Please try again to explain more clearly what you have so far, and what you need help with.

Member Avatar for jorjah
0
89
Member Avatar for observ

[iCODE]<input type="text" name="param" ...>[/iCODE] means you need to use [iCODE]$submit = $_POST['param'];[/iCODE]

Member Avatar for Stefano Mtangoo
0
887
Member Avatar for geekme
Member Avatar for Pro2000

Here is another one, [URL="http://wurfl.sourceforge.net/nphp/"]WURFL[/URL].

Member Avatar for Pro2000
0
100
Member Avatar for klemme

Yes, there is. Javascript is case sensitive and you are using makeRequestObject to call MakeRequestObject. Fix the casing.

Member Avatar for klemme
0
1K
Member Avatar for 05026652

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.

Member Avatar for letoii
0
407
Member Avatar for vibhaJ
Member Avatar for pritaeas
0
92
Member Avatar for raf.fredi

How about [URL="http://php.net/manual/en/book.imap.php"]this[/URL].

Member Avatar for pritaeas
0
100
Member Avatar for reygcalantaol

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.

Member Avatar for peexter
0
191
Member Avatar for momonq1990
Member Avatar for atfOnly
Member Avatar for oinkpink

See [URL="http://www.daniweb.com/web-development/php/threads/334106"]this thread[/URL] for help.

Member Avatar for oinkpink
0
4K
Member Avatar for jacob21
Member Avatar for doctorphp

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 * * …

Member Avatar for pritaeas
0
270
Member Avatar for lastgame2007

[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.

Member Avatar for kurtopia
0
331
Member Avatar for lloydsbackyard
Member Avatar for karthik_ppts
0
157
Member Avatar for vectro
Member Avatar for pritesh2010

[URL="http://blog.brianhartsock.com/2009/02/04/using-mysql-temporary-tables-to-save-your-brain/"]Here[/URL] is a nice description.

Member Avatar for pritaeas
0
217
Member Avatar for infopost

[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]

Member Avatar for pritaeas
0
87
Member Avatar for MrCapuchino

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.

Member Avatar for MrCapuchino
0
1K
Member Avatar for rotten69
Member Avatar for saadi06

[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.

Member Avatar for saadi06
0
107
Member Avatar for Dragonbaki
Member Avatar for Miklo_jan

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.

Member Avatar for pritaeas
0
390
Member Avatar for graphixter

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.

Member Avatar for somrita
0
119
Member Avatar for AngelicOne

Most servers need authentication, and you cant set that in your php.ini

Member Avatar for NettSite
0
138
Member Avatar for jacob21

Using @mail instead of mail supresses any errors. I suggest testing without the @

Member Avatar for Shanti C
0
207
Member Avatar for Danny159
Member Avatar for pritaeas
0
208

The End.