Posts
 
Reputation
Joined
Last Seen
Ranked #154
Strength to Increase Rep
+12
Strength to Decrease Rep
-3
93% Quality Score
Upvotes Received
155
Posts with Upvotes
145
Upvoting Members
78
Downvotes Received
9
Posts with Downvotes
8
Downvoting Members
9
53 Commented Posts
10 Endorsements
Ranked #180
Ranked #80
~307.82K People Reached
Favorite Tags
mysql x 1K
php x 319
sql x 73
seo x 24
Member Avatar for guyinpv

In my experience the fastest method would be: 1) Copy only the structure of the source to the target. 2) Dump the table contents to single CVS (TXT) files. 3) Load the text files with "Load data..."

Member Avatar for Saudi_2
0
4K
Member Avatar for vijiglad
Member Avatar for VernonDozier

In my windows system it's in e:\Program Files\MySQL\MySQL Server 5.1\share\mysql_fix_privilege_tables.sql and on my linux system in /usr/bin/mysql_fix_privilege_tables

Member Avatar for Nishant_3
0
3K
Member Avatar for bkimbriel

You have one form in your HTML and then some input elements outside of the form. They are never sent. For me, the easiest way to transform POST data in a mail text is a post array walk: [ICODE]foreach( $_POST as $key => $value ) $message .= "$key: $value\n"; mail($to, …

Member Avatar for Simon_4
0
6K
Member Avatar for grant.baker

Maybe you could use an arbitrary sorting using the IDs. If the order of posts with the same date does not matter, increase the limit parameter and keep the date until there are no more posts for this date. SELECT * FROM $logbook WHERE Date>='$Date' AND ID!='$ID' ORDER BY Date, …

Member Avatar for raybigto
0
3K
Member Avatar for dipakatcvrca

Add "FIRST" after the column name. [url]http://dev.mysql.com/doc/refman/5.1/de/alter-table.html[/url] [CODE]ALTER TABLE mytable ADD COLUMN xyz(text) FIRST; [/CODE]

Member Avatar for faucon
0
5K
Member Avatar for riahc3

You *can* export the system database (users, rights etc.) with `mysqldump mysql` and import it again, but this may lead to all sort of trouble.

Member Avatar for Manish02
0
233
Member Avatar for puvi

$pdf->Output() writes a PDF file. This cannot contain JavaScript. The browser will not understand your code. For passing variables between scripts use sessions and the $_SESSION array.

Member Avatar for Laura_5
0
4K
Member Avatar for feoperro
Member Avatar for sergeik.rndwork
0
573
Member Avatar for kirtan_thakkar

[CODE]$f = fopen( 'filename.txt', 'a' ); fwrite( $f, 'something' ); fclose( $f ); [/CODE]

Member Avatar for msnadz
0
3K
Member Avatar for Joemeister

along those lines [CODE]$query = mysql( $sql ); while ($array = mysql_fetch_array($query)) echo $array['user_name'] . '<br/>'; [/CODE]

Member Avatar for Webville312
0
1K
Member Avatar for jrotunda85

Did you have any difficulties with your method? If it's not broken, don't fix it. What is "this variable"? What are you doing now in your script? Are you working with sessions or with redirects or with cookies?

Member Avatar for bakhtn
0
2K
Member Avatar for dancks

If you have an account on the server, you can use cronjobs which regularly trigger actions. I recommend that you set up a PHP script which does whatever bookkeeping you need, and that you call it either directly with php <myscript.php> or via the apache server using wget http://<myserver>/<myscript.php> If …

Member Avatar for smantscheff
0
218
Member Avatar for bsewell

You need brackets around your OR clause and no apostrophes around column names: SELECT * FROM stats WHERE (ip LIKE '%192.168.0.1%' OR ip LIKE '%192.168.1.2%') AND topic!='' AND cat!=''

Member Avatar for smantscheff
0
107
Member Avatar for jackbauer24-2

If you want to learn MySQL, forget PHP. Look for a MySQL or plain SQL tutorial which does not use PHP and learn the SQL basics using the command line tool `mysql`.

Member Avatar for jackbauer24-2
0
503
Member Avatar for newprimitive

Show the output of your SHOW CREATE TABLE statement and the piece of code where you try to insert something.

Member Avatar for ffghjk
0
240
Member Avatar for grantcharov
Member Avatar for grantcharov
0
229
Member Avatar for azegurb
Member Avatar for azegurb
0
133
Member Avatar for showman13

select distinct a.mem_id, (select count(b.ref_id) from ref_track b where b.mem_id=a.mem_id) as cnt from ref_track a order by mem_id The downside is that the aggregate function is called for each row of ref_track.

Member Avatar for showman13
0
143
Member Avatar for scottlpool2003

You have to join the two tables: select * from publication p, publication_issue i where i.publication_id = p.id and p.tags like '%news' order by something limit x,y

Member Avatar for smantscheff
0
472
Member Avatar for Riu 2009

The varchar field should have at least 2.000 characters. URLs can be that long. See http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url

Member Avatar for Riu 2009
0
232
Member Avatar for woodenduck

2) is not really a MySQL question. You have to study the login and authorization mechanisms of phpBB and MediaWiki and tweak them so that they point to a common user base. This is exactly what a plugin already does: http://www.mediawiki.org/wiki/Extension:Phpbb_Single_Sign-On

Member Avatar for smantscheff
0
384
Member Avatar for gilgil2

Have a look at mysql events. http://dev.mysql.com/doc/refman/5.1/en/events.html

Member Avatar for chophouse
0
152
Member Avatar for heshanm

Your form variable is named `class_ID`, but the mysql column name is `class_name`. Looks fishy to me.

Member Avatar for smantscheff
0
222
Member Avatar for matiqueen

Probably your forgot to change the delimiter before and after your procedure definition: DELIMITER // CREATE PROCEDURE LoginCorrecto ... ... END // DELIMITER ;

Member Avatar for smantscheff
0
195
Member Avatar for HunainHafeez

From your mysql console, run show variables like "%dir%"; The result will contain a variable named `datadir` which contains the path where you should look for data files.

Member Avatar for HunainHafeez
0
187
Member Avatar for HunainHafeez
Member Avatar for HunainHafeez
Member Avatar for anitg
Member Avatar for anand01

You're trying to get a partial tree as a result. In this setup, you will need a (recursive) (user defined) function which walks all the way up from wtshirt to dress.

Member Avatar for anand01
0
202