8,966 Posted Topics

Member Avatar for gikonyo

Try this: [CODE] $result = mysql_query("select title,first_name,last_name,email,username,address,country,city,mobile_phone FROM Customer_Infor WHERE username='{$_SESSION['username']}' ") or die (mysql_error()); [/CODE]

Member Avatar for pritaeas
-1
94
Member Avatar for apanimesh061
Member Avatar for godfather21
Member Avatar for baig772

You forgot to specify with what ? Something you cannot find in the documentation ?

Member Avatar for baig772
0
93
Member Avatar for IanArcher

I suggest you start with reading up on [URL="http://nl2.php.net/manual/en/language.oop5.basic.php"]classes[/URL], then the [URL="http://premailer.dialect.ca/api"]documentation[/URL] for this particular class, and then try it and see what happens. On the other hand, the last 6 lines of the class show you exactly how to use it...

Member Avatar for pritaeas
0
244
Member Avatar for 18engineer

[CODE]$q = mysql_query($query, $con) or die(mysql_error());[/CODE] Be more specific.

Member Avatar for Sorcher
0
118
Member Avatar for pankajjarial
Member Avatar for mohanrajit.88
Member Avatar for msk2020ckp
0
131
Member Avatar for wolfgangcs
Member Avatar for diafol
0
135
Member Avatar for WickidGRAFX

[url]http://www.addedbytes.com/lab/password-protect-a-directory-with-htaccess/[/url] Password protect /uploads/ and all others will be protected too.

Member Avatar for pritaeas
0
63
Member Avatar for lobebe

Kindly point out the offending line next time. It just means it has no value yet. You can check with isset().

Member Avatar for pritaeas
0
268
Member Avatar for davy_yg

Use $_POST, not $_GET. Are you sure your mail server allows you to connect, or does it need authentication ?

Member Avatar for davy_yg
0
357
Member Avatar for Violet_82

$(this) in the hover function points to the current element. So swap out 'img.front' for this.

Member Avatar for Violet_82
0
159
Member Avatar for IanArcher

Anything is possible. In it's most basic version a simple replace will do. Don't be mislead, CSS is a cascading style and can inherit from it's parent or another class. That makes it much more difficult. First you'll need a script to parse a css file, so you can match …

Member Avatar for pritaeas
0
591
Member Avatar for turt2live

The outputted image is a transparent PNG. Either change the output format (if possible), or put the image in a white background.

Member Avatar for turt2live
0
353
Member Avatar for brozie
Member Avatar for pritaeas
0
41
Member Avatar for jetlife76
Member Avatar for asif49

You can work around it if you split your var into multiple parts, so if your search key is hello world, split on the space (explode) and generate this query: [CODE] $search = explode(' ', $var); $where = array (); foreach ($search as $item) { $where[] = " content LIKE …

Member Avatar for asif49
0
118
Member Avatar for Behseini
Member Avatar for BenzZz

Some of them you can find [URL="http://en.wikipedia.org/wiki/Software_development_methodology"]here[/URL]. Personally, I like an agile method (scrum for example) which has short cycles and focuses on current priorities.

Member Avatar for BenzZz
0
283
Member Avatar for P0lT10n

[url]http://php.net/manual/en/control-structures.elseif.php[/url] [url]http://www.fluffycat.com/PHP-Design-Patterns/PHP-Performance-Tuning-if-VS-switch/[/url] Personally, I like if/else better because of flow readability.

Member Avatar for almostbob
0
138
Member Avatar for Netsurfers

Am sure this is not all code. The error you get means the query has failed. Post more code.

Member Avatar for Netsurfers
0
148
Member Avatar for P0lT10n

The first one is the only correct way. Although the second (still) works, it is first parsed as a constant but not found, then parsed as a string (thus slower), but invalid code anyway. It may not work or cause errors in future versions.

Member Avatar for P0lT10n
0
116
Member Avatar for samad

Answered in [URL="http://www.daniweb.com/web-development/php/threads/383286"]this thread[/URL].

Member Avatar for Shamrocks
0
177
Member Avatar for Buppy
Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for strongpot

Since you pass only clientid to the mail script, you have to query tbl_clients again to get the name via the id.

Member Avatar for strongpot
0
616
Member Avatar for bangla
Member Avatar for pritaeas
0
75
Member Avatar for hindu times

As stated in the link, output the $_POST array to check whether all values have been set correctly. Also show output for your REMOTE_ADDR.

Member Avatar for pritaeas
0
267
Member Avatar for whiteyoh

How will you determine whether a link is region/town or construction/bricklayer ? Both rewrites are two levels, and are built using identical expressions. My guess is that you can only solve this by using a PHP file to determine which one it is and do the correct redirect.

Member Avatar for pritaeas
0
108
Member Avatar for rohit.k2903
Member Avatar for urbangeek
Member Avatar for ryan92

Just invent something, why waste ten years on languages you'll probably never use.

Member Avatar for Smeagel13
0
155
Member Avatar for rohit.k2903
Member Avatar for Smeagel13
0
231
Member Avatar for vlowe

Tutorial ? It's just code. An explanation would make it a tutorial. For improvement, you can use json_encode() in your php file, to return a JSON object. If you do, then the split() function is obsolete (a [iCODE],[/iCODE] in your return value would break the data too). Best thing is …

Member Avatar for pritaeas
0
191
Member Avatar for Stefano Mtangoo

Why not get a list of table and columns from mysql, and validate against those (SHOW TABLES and SHOW COLUMNS).

Member Avatar for Stefano Mtangoo
0
198
Member Avatar for utroda
Member Avatar for utroda
0
357
Member Avatar for Dmennite

[url]http://dev.mysql.com/doc/refman/5.0/en/windows-install-archive.html[/url] I didn't know MySql allowed the redistribution of their packages ? Did their license change recently ?

Member Avatar for Dmennite
0
237
Member Avatar for dean8710

Do you want a hash (as shown), or do you want to be able to decrypt it? Also have a look at [URL="http://www.daniweb.com/web-development/php/threads/178241"]this thread[/URL].

Member Avatar for dean8710
0
173
Member Avatar for phorce

[CODE] if(mysql_affected_rows() >= 1) { $json = array(); while ($post = mysql_fetch_array($get_results)) { $year = $post['year']; $month = $post['month']; $day = $post['day']; $json[] = array ('id' => $post['calendar_id'],'title' => "dfssafsaf", 'start' => "$year-$month-$day", 'url' => "http://yahoo.com/"); } echo json_encode($json); } [/CODE]

Member Avatar for pritaeas
0
58
Member Avatar for mshdpotato

Make sure error reporting is on. You appear to do a query before the connect, perhaps that causes it.

Member Avatar for pritaeas
0
127
Member Avatar for TAGEEKS
Member Avatar for ssreevidya.m

[code=sql] DECLARE @RET int DECLARE @ClassType varchar(50) DECLARE @ClassTypeId varchar(50) DECLARE @ClassName varchar(50) DECLARE @SchoolId varchar(50) DECLARE @ClassID varchar(50) DECLARE @BatchId varchar(50) DECLARE @Userid uniqueidentifier DECLARE @ClassCategoryId varchar(50) DECLARE @SchoolClassCategoryId varchar(50) -- TODO: Set parameter values here. EXECUTE @RET = SP_ClassInsertion @ClassType, @ClassTypeId, @ClassName, @SchoolId, @ClassID, @BatchId, @Userid, @ClassCategoryId, @SchoolClassCategoryId …

Member Avatar for ssreevidya.m
0
303
Member Avatar for dress237935
Member Avatar for cwarn23
0
122
Member Avatar for vlowe
Member Avatar for diafol
0
141
Member Avatar for Squit
Member Avatar for hindu times

You should put this before line 153: [CODE] require_once('recaptchalib.php'); $publickey = "your_public_key"; // you got this from the signup page $captcha = recaptcha_get_html($publickey); [/CODE] And change lines 249-253 to: [CODE] ' . $captcha . ' [/CODE] You are trying to execute code within a string, that won't work.

Member Avatar for hindu times
0
219
Member Avatar for jacob21
Member Avatar for jacksantho

The user you created did not get permission to GRANT permissions to other users. Login as sysdba and try the GRANT query again.

Member Avatar for pritaeas
0
3K
Member Avatar for warlord902
Member Avatar for jasperuser

How about the [URL="http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/sample.reference/javascript/index.html"]documentation[/URL].

Member Avatar for jasperuser
0
755

The End.