Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 04-10-2007, 07:14 PM   #1 (permalink)
Contributing Member
 
Arenlor's Avatar
 
Join Date: 01-02-07
Location: PA, USA
Posts: 194
iTrader: 0 / 0%
Latest Blog:
None

Arenlor is liked by somebodyArenlor is liked by somebodyArenlor is liked by somebodyArenlor is liked by somebody
Send a message via ICQ to Arenlor Send a message via AIM to Arenlor Send a message via MSN to Arenlor Send a message via Yahoo to Arenlor
How can I simplify this?

PHP Code:
$sar "UPDATE posts SET post_data = '$data' where post_num =$num";
$sar2 "UPDATE posts SET post_title = '$title' where post_num =$num";
$ras mysql_query($sar);
$ras2 mysql_query($sar2); 
It works, but I know that there HAS to be a way to make it simpler, it's a mysql DB of course. But I'm not sure how to do that any simpler. Thanks for any help.
__________________
Need a page made? Draw a diagram, I suggest using Paint, show the picture with your post, it'll help a lot more than you think. Other questions? Draw a diagram for that too!
Arenlor is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 04-10-2007, 07:30 PM   #2 (permalink)
Inactive
 
Join Date: 04-10-07
Location: www.webfoyers.com
Posts: 68
iTrader: 0 / 0%
Latest Blog:
None

brealmz is liked by somebodybrealmz is liked by somebodybrealmz is liked by somebody
Quote:
Originally Posted by Arenlor View Post
PHP Code:
$sar "UPDATE posts SET post_data = '$data' where post_num =$num";
$sar2 "UPDATE posts SET post_title = '$title' where post_num =$num";
$ras mysql_query($sar);
$ras2 mysql_query($sar2); 
It works, but I know that there HAS to be a way to make it simpler, it's a mysql DB of course. But I'm not sure how to do that any simpler. Thanks for any help.
Code:
UPDATE posts SET post_title = '$title', post_data= '$data' WHERE post_num = '$num'
brealmz is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-10-2007, 07:44 PM   #3 (permalink)
Contributing Member
 
Arenlor's Avatar
 
Join Date: 01-02-07
Location: PA, USA
Posts: 194
iTrader: 0 / 0%
Latest Blog:
None

Arenlor is liked by somebodyArenlor is liked by somebodyArenlor is liked by somebodyArenlor is liked by somebody
Send a message via ICQ to Arenlor Send a message via AIM to Arenlor Send a message via MSN to Arenlor Send a message via Yahoo to Arenlor
Thanks for that, knew it was simple and I was just looking over it.
__________________
Need a page made? Draw a diagram, I suggest using Paint, show the picture with your post, it'll help a lot more than you think. Other questions? Draw a diagram for that too!
Arenlor is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

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


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:00 PM.
© Copyright 2008 V7 Inc

Click Here