erorrs in mysql coding

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

4 replies · 367 views · started 17 years ago · 1 min read

3 participants
godzilla Developer · 119 posts #1

i want to change uid='".$who."'")); into uid='".5."'"));

i meant that i want to put user id after uid instead .$who.

i tried to put but i got string error .

i tried to change

$prs = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE uid='".$who."'"));

into

$prs = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE uid='"5"'"));

i dont want to use $who but i want to use a particular user id after uid.

anybody please help me

Anshul Senior · 296 posts #2

where uid='5' remove " symbols

godzilla Developer · 119 posts #3

u mean this brother

$prs = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE uid='5'"));

alesh Lead · 604 posts #4

godzilla wrote: u mean this brother

$prs = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE uid='5'"));

yes ...!:D

eeeeerrr....

godzilla Developer · 119 posts #5

thanks bro.

it is working now.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close