8,966 Posted Topics

Member Avatar for kalo150

The `end` before the `else` is not allowed to have a semi-colon. Next time post your error message too.

Member Avatar for riki.kavadarci
1
161
Member Avatar for Llama098
Member Avatar for riki.kavadarci
0
132
Member Avatar for irfath
Member Avatar for jLamp

Is there an error? Am not too familiar with XAMPP but it should have an error log.

Member Avatar for veedeoo
0
317
Member Avatar for sheshagirig
Member Avatar for gbhs

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.

Member Avatar for cgyrob
0
283
Member Avatar for mpc123

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'; } }

Member Avatar for mpc123
0
121
Member Avatar for Dani

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.

Member Avatar for Dani
1
235
Member Avatar for LeonardK
Member Avatar for cosmosthompson

http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products

Member Avatar for deceptikon
0
97
Member Avatar for davidjennings
Member Avatar for davidjennings
0
232
Member Avatar for Squidge

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?

Member Avatar for Squidge
0
260
Member Avatar for dancingqueen
Member Avatar for imti321

`mysql_insert_id` needs the mysql connection as parameter. Am not sure what you are trying to do with `id`.

Member Avatar for Webville312
0
453
Member Avatar for taolas
Member Avatar for code_rum
Member Avatar for code_rum
0
1K
Member Avatar for rubai

> Access denied for user 'some_user'@'abcd.efgh.com' some_user does not have priviliges to login in, or you provided the wrong password.

Member Avatar for pritaeas
0
363
Member Avatar for L-D

> Access denied for user The user does not have priviliges to login. What are you trying to do?

Member Avatar for Szabi Zsoldos
0
139
Member Avatar for microlab123
Member Avatar for dokz23
Member Avatar for NickBogi

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.

Member Avatar for NickBogi
0
187
Member Avatar for Rizwansaharan
Member Avatar for Fiorentino01^

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.

Member Avatar for cereal
0
188
Member Avatar for jacob21
Member Avatar for pritaeas
0
134
Member Avatar for mallows.yum

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

Member Avatar for mallows.yum
0
218
Member Avatar for LegateLucius

You'll need a way for Google to discover a decent menu structure. There's no guaranteed way to get this done.

Member Avatar for almostbob
0
71
Member Avatar for abadonabadon
Member Avatar for divyakrishnan

`move_uploaded_file` does not work across servers. Depending on your servers' configuration, you may be able to use `file_put_contents`.

Member Avatar for pritaeas
0
628
Member Avatar for Rasool Ahmed

See this [code snippet](http://www.daniweb.com/web-development/php/code/437655/getting-products-details-from-categories-subcategories-with-ajax-call-).

Member Avatar for pritaeas
0
229
Member Avatar for london-G

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.

Member Avatar for pritaeas
0
357
Member Avatar for aVar++
Member Avatar for pearl doll
Member Avatar for riahc3

You can't embed MySQL/MSSQL Server (they have to be installed), but SQLite may serve your needs.

Member Avatar for amateurmosta
0
125
Member Avatar for renato_francia
Member Avatar for NitsPatel
Member Avatar for sathish_nadu
Member Avatar for clifford2013
Member Avatar for aadebayo

Make a correct table: <table> <tr> <td>First Name</td> <td>Phone number</td> </tr> </table>

Member Avatar for pritaeas
0
129
Member Avatar for JOSheaIV

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.

Member Avatar for JOSheaIV
0
292
Member Avatar for arjani10
Member Avatar for arjani10
0
887
Member Avatar for yy886
Member Avatar for rahul.pragma

> A content delivery network or content distribution network is a system of computers A CDN is more than a script on a single server.

Member Avatar for Dani
0
276
Member Avatar for harinath_2007
Member Avatar for happygeek
-1
207
Member Avatar for gilgil2

It can fail if one of the values contains a single quote. Post the full query and the error.

Member Avatar for arunmagar
0
155
Member Avatar for NardCake

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 …

Member Avatar for Zagga
0
217
Member Avatar for PsychicTide
Member Avatar for mjsmitten

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.

Member Avatar for mjsmitten
0
208
Member Avatar for abedi.pele.522

What system information? PHP runs on the server, it does not have access to the client systems.

Member Avatar for pritaeas
0
65
Member Avatar for furalise

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.

Member Avatar for furalise
0
310
Member Avatar for phaedrusGhost

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.

Member Avatar for pritaeas
0
247

The End.