8,966 Posted Topics

Member Avatar for Artix123

That means your query failed, use: [CODE] $query = mysql_query("SELECT * FROM uživatelé WHERE username='$username'") or die(mysql_error()); [/CODE]

Member Avatar for diafol
0
104
Member Avatar for sujan.dasmahapa

It is possible if, instead of outputting the image, you output an image tag: [CODE] if (isset($_POST['submit'])) { $imagepath = "shirt7.jpg"; echo "<img src="$imagepath" />"; } [/CODE]

Member Avatar for pritaeas
0
211
Member Avatar for Vemari

If you provide a title attribute for your option tag, the standard browser tooltip should work just fine without JS.

Member Avatar for Vemari
0
154
Member Avatar for cherrya

What exactly do you want to do? Send this page to a processing page? If so, specify [iCODE]action="process.php"[/iCODE] in your form tag.

Member Avatar for baig772
0
586
Member Avatar for anthonyjpv

From [URL="http://php.net/manual/en/function.mysql-insert-id.php"]the manual[/URL]: "Retrieves the ID generated for an [B]AUTO_INCREMENT[/B] column [B]by the previous query[/B] (usually INSERT)." I've highlighted the important parts: 1. If he is not using an auto increment ID column, then this function returns zero. 2. You have to call this function directly after the INSERT query, …

Member Avatar for pritaeas
0
89
Member Avatar for baig772

[CODE] .listen(8080); [/CODE] Shouldn't it be: [url]http://localhost:8080[/url] ?

Member Avatar for baig772
0
252
Member Avatar for atticusr5

This [URL="http://stackoverflow.com/questions/4660934/how-does-one-disable-caching-in-jquery-mobile-ui"]thread on SO[/URL] might help.

Member Avatar for pritaeas
0
68
Member Avatar for ganesh641
Member Avatar for DelphiGuy

You are right. When you create a new instance of a class (with .Create), all variables (members) for that object (instance of a class) are initialized. You can give them whatever default value you want, if you use a [URL="http://www.delphibasics.co.uk/RTL.asp?Name=Constructor"]constructor[/URL]. You may want to read [URL="http://oreilly.com/catalog/delphi/chapter/ch02.html"]this[/URL].

Member Avatar for DelphiGuy
0
155
Member Avatar for Scottie_uk

Start a new thread for this, instead of hijacking an old one, and please use code tags. Do not forget to post your error too.

Member Avatar for Smileydog
0
6K
Member Avatar for simplypixie

Apparently you can use 'depends'. See [URL="http://stackoverflow.com/questions/3192234/jquery-validation-plugin-validate-with-some-condition"]here on SO[/URL].

Member Avatar for simplypixie
0
609
Member Avatar for Octet
Member Avatar for BenzZz

Try this: [CODE] $stmt = $dbh->prepare("SELECT MAX(end_date) AS end_date FROM Contract WHERE cust_id = '$username'"); [/CODE]

Member Avatar for BenzZz
0
117
Member Avatar for FrostMaster
Member Avatar for diafol
0
82
Member Avatar for jcomputing

Last line always redirects to success.php. There is no error handling at all. Remove it and output the logarray instead.

Member Avatar for pritaeas
0
254
Member Avatar for nadskap2

Have you tried this ? [CODE] $newstring = preg_replace('/\{\$(.*?)\}/', '\1', $string); // These two both work on my local server too $newstring = preg_replace('/\{\$(.*?)\}/', '$1', $string); $newstring = preg_replace('/\{\$(.*?)\}/', '${1}', $string); [/CODE]

Member Avatar for diafol
0
129
Member Avatar for vijiraghs

Maybe [URL="http://www.mequoda.com/articles/seo_campaign_management/how-to-find-niche-keyword-with-the-google-keyword-tool/#.TzVgReXN1V8"]this article[/URL] can help. Or [URL="http://www.webconfs.com/keyword-density-checker.php"]this tool[/URL].

Member Avatar for vijiraghs
0
207
Member Avatar for vijayram

In addition, your isAjax function is mixing javascript with PHP variables, that will not work.

Member Avatar for pritaeas
0
227
Member Avatar for hasbi
Member Avatar for zrony
Member Avatar for MikeFL

Have you tried putting the xml tag in the first line of your file ? Perhaps short tags is enabled and causing this issue.

Member Avatar for MikeFL
0
3K
Member Avatar for rahulroshan
Member Avatar for nova37

@simplypixie: [QUOTE=simplypixie;1755777]firstly you have out your die on the next line, php needs to be on one line[/QUOTE] Just a note: not true. You can use whitespace, including line breaks just fine. [QUOTE=simplypixie;1755777]thirdly you are trying to run two queries in your while loop.[/QUOTE] I really really don't recommend this, …

Member Avatar for nova37
0
111
Member Avatar for showman13

You can do this with a [URL="http://joseph.randomnetworks.com/2004/07/22/redirect-to-ssl-using-apaches-htaccess/"].htaccess rule[/URL]. Then there's no need to add it to every PHP page you have.

Member Avatar for pritaeas
0
133
Member Avatar for Tristan2036

Try to [URL="http://www.daniweb.com/business-exchange/looking-to-hire/web-development-job-offers/59"]Looking to hire[/URL] forum ;)

Member Avatar for pritaeas
0
72
Member Avatar for kshahnazari

If `Ready Versions` is your table name, then use the backticks. It does not allow a space like that.

Member Avatar for pritaeas
0
81
Member Avatar for DaveyMoyes

Your query looks just fine to me. What is the problem you have with it? Have you tried it in phpMyAdmin?

Member Avatar for DaveyMoyes
0
264
Member Avatar for klemme

A session is specific to a browser. So if one user is on your website with IE and Opera, then they both have a different session. Same thing for a different user on a different machine.

Member Avatar for klemme
0
220
Member Avatar for nova37

There is no such option in the Google Webmaster Tools API. Perhaps if you specify what you are trying to achieve, we can find a solution/work-around.

Member Avatar for pritaeas
0
94
Member Avatar for thecameraman

You can use a SELECT query using LIKE and LIMIT. Start here: [url]http://php.net/mysql_query[/url] [url]http://dev.mysql.com/doc/refman/5.6/en/select.html[/url]

Member Avatar for thecameraman
0
593
Member Avatar for kartisathis
Member Avatar for pritaeas
0
73
Member Avatar for subrata_ushasi

You want a table with all country names ? They are available for download. If you can't find any, you can have mine.

Member Avatar for subrata_ushasi
0
146
Member Avatar for cartergarth

Try something like this: [CODE=sql] SELECT users.user_id, users.firstname, users.middlename, users.lastname, user_shift_schedule.shift_id, user_shift_schedule.effectivity_date FROM users u, user_shift_schedule uss WHERE u.user_id = uss.user_id GROUP BY uss.user_id ORDER BY uss.user_id, uss.effectivity_date DESC [/CODE]

Member Avatar for cartergarth
0
266
Member Avatar for rahman86

This [URL="http://davidlynch.org/projects/maphilight/docs/"]jQuery plugin[/URL] might be interesting for you.

Member Avatar for rahman86
0
409
Member Avatar for Warl30ck
Member Avatar for HecGL35

Do you want to get the select value in php after submitting the form, or do you want to change your page the moment the select changes ?

Member Avatar for diafol
0
177
Member Avatar for filipgothic
Member Avatar for BenzZz
Member Avatar for microbert
Member Avatar for broj1
0
4K
Member Avatar for klemme
Member Avatar for Aamit

It all depends on what you want to achieve. It is usually better to use the DOM for parsing HTML/XML. In few occasions where you can't load it due to parsing errors, a regular expression may get you there, but it can also cause a lot of headaches. Some things …

Member Avatar for pritaeas
0
178
Member Avatar for INF-P
Member Avatar for riahc3

Known bug, for work-arounds see: [url]http://stackoverflow.com/questions/2166008/is-it-possible-to-compare-a-mysql-timestamp-to-a-millisecond[/url]

Member Avatar for pritaeas
0
28
Member Avatar for lsvife
Member Avatar for PF2G

[ICODE]mysql_query[/ICODE] returns [ICODE]true[/ICODE] even if there are no records deleted. Have a look at [URL="http://php.net/mysql_affected_rows"]mysql_affected_rows[/URL]. Use that to determine if there are either zero, or one or more rows deleted.

Member Avatar for pritaeas
0
152
Member Avatar for baig772

So only a-z, 0-9, - and _ [CODE] if (preg_match('/[\w-]*/', $subject)) { # Successful match } else { # Match attempt failed } [/CODE] Update: As minitauros states, use a + instead of a * if you want to match at least a single character.

Member Avatar for baig772
0
156
Member Avatar for subrata_ushasi
Member Avatar for Aser Gado

Try this, and show us the output: [CODE] $sql = "SELECT * FROM users WHERE email='$emailin' and password='$passwordin'"; echo $sql; $result = mysql_query($sql) or die(mysql_error()); $count = mysql_num_rows($result); echo $count; [/CODE]

Member Avatar for Aser Gado
0
90
Member Avatar for -==Zero==-

You need javascript code to do that. See [URL="http://www.daniweb.com/web-development/php/threads/116536"]this thread[/URL] for a hint.

Member Avatar for -==Zero==-
0
179
Member Avatar for Aser Gado

Check your database credentials. The connect probably failed, thus triggering all these query errors. Apart from that, line 5 runs a query for which you do not capture the result. Line 8 runs another, possible empty query.

Member Avatar for Aser Gado
0
137

The End.