Current location: Hot Scripts Forums » Programming Languages » PHP » PHP script HELP


PHP script HELP

Reply
  #1 (permalink)  
Old 07-15-03, 07:14 AM
Jerome Jerome is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: On Earth
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb PHP script HELP

hi,

i need some help on the PHP scripting ...

I need to excute the mysql command by just typing the url of the PHP.file so that i can easily add the mysql query .

WHY -- my script is always giving problem , so i got to reload the query ...

here the mysql command , can any one help me to make a installer script ? thks

Quote:

DROP TABLE IF EXISTS nuke_whos_online;
CREATE TABLE nuke_whos_online (
user_id int(11) NOT NULL default '0',
uname varchar(25) NOT NULL default '',
user_from varchar(20) NOT NULL default '',
time varchar(14) NOT NULL default '',
ip varchar(48) NOT NULL default '',
guest int(1) NOT NULL default '0',
module varchar(30) NOT NULL default '',
url varchar(255) NOT NULL default ''
) TYPE=MyISAM;
thks
__________________
Support me by clicking ads
@ http://atomise.blogspot.com
CHEERS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-15-03, 02:23 PM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
there is a seperate forum for this, just a bit down. You;d probably get a faster answer (and maybe also a better one) if you post this there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-15-03, 02:50 PM
Ryan's Avatar
Ryan Ryan is offline
Coding Addict
 
Join Date: May 2003
Location: Virginia
Posts: 391
Thanks: 0
Thanked 8 Times in 3 Posts
Moved to appropriate forum.
__________________
Ryan Huff
iNET Interactive, LLC

http://www.inetinteractive.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 07-16-03, 07:29 PM
Man Down Man Down is offline
HS Staff
 
Join Date: Jun 2003
Location: Maryland
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Try this:

PHP Code:

<?

$server 
'localhost'//MySQL Server
$username 'root'//MySQL Username
$password 'root'//MySQL Password
$database 'database'//MySQL Database Name

mysql_connect($server$username$password);
mysql_select_db($database);
mysql_query('DROP TABLE IF EXISTS nuke_whos_online');
mysql_query("CREATE TABLE nuke_whos_online (
user_id int(11) NOT NULL default '0',
uname varchar(25) NOT NULL default '',
user_from varchar(20) NOT NULL default '',
time varchar(14) NOT NULL default '',
ip varchar(48) NOT NULL default '',
guest int(1) NOT NULL default '0',
module varchar(30) NOT NULL default '',
url varchar(255) NOT NULL default '')"
);

?>
__________________
Man Down
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 07-17-03, 05:12 AM
Chris Boulton Chris Boulton is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: Sydney, Australia
Posts: 208
Thanks: 0
Thanked 0 Times in 0 Posts
Or install phpMyAdmin (http://phpmyadmin.sourceforge.net) and you can run these queries via a point and click interface in your browser.
__________________
Chris Boulton
SurfiOnline!
MyBulletinBoard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 07-17-03, 06:41 AM
Jerome Jerome is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: On Earth
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
the point is by running the phpmyadmin , i will take quite sometime for me to upload the query , by using the script , i just need to point the url and that's all .. thanks Man Down

and thanks to Chirst for your attemp

and sorry to Ryan for the misposting of the article
__________________
Support me by clicking ads
@ http://atomise.blogspot.com
CHEERS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 12-22-09, 02:30 AM
rangasamyajith rangasamyajith is offline
New Member
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
how to store the image in database pls reply and how to store and reterive the data in php

Last edited by rangasamyajith; 12-22-09 at 02:33 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 12-22-09, 07:44 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
It would be best if you created a new topic for this, instead of reopening a 2-year old thread that's unrelated.

Quote:
Originally Posted by rangasamyajith View Post
how to store the image in database pls reply and how to store and reterive the data in php
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error when creating database tables with php script spiroth10 PHP 4 01-06-04 04:59 PM
PHP theme selection script TMD PHP 2 09-22-03 04:43 AM
PHP script required Mickey Job Offers & Assistance 8 09-07-03 04:00 PM
I need help with my first php script NeverMind PHP 4 08-01-03 02:27 PM
30% off Hosting - Free PHP Script Autoinstaller cyberwisdom General Advertisements 0 07-06-03 02:47 PM


All times are GMT -5. The time now is 11:41 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.