Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-07-2009, 10:32 AM
2939195631902 2939195631902 is offline
Contributing Member
 
Join Date: 12-14-08
Posts: 140
iTrader: 0 / 0%
Lightbulb Where can i find a list of common php functions?

Where can i find a list of common php functions and its explanation?

Also:

Lets say a mysql table is stored in $table

Is there a php function that would fetch a row of $table based on the id number or primary key number?

Last edited by 2939195631902; 02-07-2009 at 10:47 AM.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 02-07-2009, 02:41 PM
Owen's Avatar
Owen Owen is offline
Contributing Member
 
Join Date: 04-27-07
Location: Isle of Man
Posts: 188
iTrader: 0 / 0%
You best bet is here: http://www.php.net/manual/en/

There's everything you ever wanted to know about PHP.

Here's how to get a record out of $table:
Quote:
mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("test") or die(mysql_error());

$result = mysql_query("SELECT * FROM $table WHERE id=$id");

echo $result;
Does that help?
 
Reply With Quote
  #3  
Old 02-07-2009, 03:08 PM
2939195631902 2939195631902 is offline
Contributing Member
 
Join Date: 12-14-08
Posts: 140
iTrader: 0 / 0%
It wasn't what i was looking for. I didn't want to connect to mysql again after the data was previously stored in $table because i thought it would cost more bandwidth. However, it was until hrs of searching for the answer i came to realize that what i'm looking for doesn't really exist but connecting to mysql again does not cost any bandwidth because the php pages and mysql are both on the server. It will just take ram and cpu.

Now if i'm wrong about anything i just said, please correct me.
 
Reply With Quote
  #4  
Old 02-07-2009, 05:36 PM
Owen's Avatar
Owen Owen is offline
Contributing Member
 
Join Date: 04-27-07
Location: Isle of Man
Posts: 188
iTrader: 0 / 0%
Don't worry about connecting to MySQL .. It's designed to be the quickest way to pull data to your PHP code
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where i can find a database or list of english names. The more the better! 2939195631902 Coding Forum 7 02-05-2009 03:28 PM
How Do I Find Somebody w/ A List? signature16 Marketing Forum 2 06-01-2007 07:12 AM
functions.php - Decoding? Jason Coding Forum 2 11-14-2006 07:30 AM
functions kwvarga Coding Forum 0 01-24-2004 07:06 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:31 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC